(feat) add repo metadata key filter query link#51258
Conversation
|
Codenotify: Notifying subscribers in CODENOTIFY files for diff a82352a...071825e.
|
Bundle size report 📦
Look at the Statoscope report for a full comparison between the commits 071825e and 1004a84 or learn more. Open explanation
|
|
👏🏼 The original intention was that each whole badge was clickable (say, with a darker background color change) — but only linking the text might work when we want to link the value too, and not just the key. Which leads to my next question… Any reason we haven't linked the "value" part of the badge yet? Or is that coming in a follow-up? Feels odd without that. e.g. for "license: mit" we'd link "license" to |
|
Thanks @toolmantim, for the reviews.
I think 2nd makes more sense (with making the whole badge clickable), I will update to follow this logic. But let me know if you think, we should consider 1st point/option too. |
|
@toolmantim, updated to make whole badge clickable and make link filter different based on metadata value presence 042149b5e11faf7fac418252661b494180fca69b. |
|
I'll trust your gut feeling on the two links in the one badge being confusing! And sorry about not being clear on the style! I assumed we would be going with the standard Screen.Recording.2023-05-03.at.4.33.13.pm.movCould we make the whole thing clickable, similar to how it works in the Storybook example? I tried to the change myself, but I think it's too much component rejigging with where the link is defined, so might need to get your help. Also… giving it a go locally… I realised that if you're on a repo root page, I think we should to strip the Screen.Recording.2023-05-03.at.4.41.00.pm.mov |
…t, from .delete-button to .button feat(RepoMetadata.tsx): add MetaContainer component to wrap metadata key and value with optional link to filter by metadata value
…and style it on hover and focus
3f08105 to
071825e
Compare
|
Thanks @toolmantim for the review. Addressed both feedback items. Screen.Recording.2023-05-10.at.16.12.02.mov |
Part of https://github.com/sourcegraph/pr-faqs/issues/96.
Test plan
sg startrepository-metadatafeature flagselect:repo) with metadata. If not, add some via repo root page UIScreenshot
Screen.Recording.2023-04-28.at.18.24.13.mov