Repository navigation
feat(web): project filter and "Shared with me" on the Packages page - #457
Merged
M0Rf30 merged 1 commit intoNov 9, 2026
Merged
Conversation
The Packages page gets a project select (the caller's projects, by display name) and a "Shared with me" toggle, which sends project_role=viewer, the preset agreed in openartifact#445. Both live in the URL (?project=NAME&shared=1) like the format and repository filters, and apply to the name search only: they are hidden for a checksum lookup, which the server answers without them. The palette's "too many matches" hint now also names project:. New strings in every locale, with "Project" and "All projects" taken from each locale's existing wording. docs/getting-started/web-ui.md describes the filters. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The web UI part of #445, which #454 left as a follow-up: the "Shared with me" preset for
project_role=vieweryou suggested there, and a project select.What changes
SearchControls.vue): a project select listing the caller's projects (GET /api/v1/projects, by display name, sorted withcompareText) and a Shared with me toggle styled like Flagged only. Both are URL state,?project=NAME&shared=1, throughuseSearchlikeformatandrepo; a project named in the URL but not in the list stays selectable, as for repositories.fetchRowssends them with the grouped search only, since the server answers checksum lookups without project filters. Showing them there would look applied when it isn't.api/search.ts):projectandprojectRoles(ProjectMemberRole[], oneproject_roleper role) forsearch()andsearchPackageGroups(), not forsearchChecksum().shell.palette.tooBroadnow namesproject:too.search.filter.project,search.filter.allProjects,search.filter.sharedand the changed hint in every locale (i18n:checkpasses). "Project" and "All projects" reuse each locale's existing words (artifact.aside.project,dashboard.projects.all); "Shared with me" is new in each language, so native speakers may want to check it.docs/getting-started/web-ui.md(Packages filters, palette hint).Tests
api/__tests__/search.test.ts:projectand repeatedproject_roleon the grouped and plain searches.pages/packages/__tests__/PackagesPage.test.ts: the select lists the caller's projects by display name and the request carriesprojectandproject_role=viewer; choosing them writes?project=and?shared=1; a URL project outside the list stays selectable; a checksum lookup hides both controls and sends neither. The request and checksum tests fail if the filters stop being sent or the controls show in checksum mode.Checked locally:
bun run typecheck,bun test(2503 pass),i18n:check,bun run buildwithcheck-bundle-size(186 KB gzipped). I also looked at the page at 1366px in English, German and Japanese and at 390px: the controls wrap within the filter bar without horizontal scrolling.🤖 Generated with Claude Code