Skip to content

feat(web): project filter and "Shared with me" on the Packages page - #457

Merged
M0Rf30 merged 1 commit into
openartifact:mainfrom
orcamedia:feat/web-search-project-filters
Nov 9, 2026
Merged

M0Rf30 merged 1 commit into
openartifact:mainfrom
orcamedia:feat/web-search-project-filters

Conversation

@orcamedia

Copy link
Copy Markdown
Contributor

The web UI part of #445, which #454 left as a follow-up: the "Shared with me" preset for project_role=viewer you suggested there, and a project select.

What changes

  • Packages page (SearchControls.vue): a project select listing the caller's projects (GET /api/v1/projects, by display name, sorted with compareText) and a Shared with me toggle styled like Flagged only. Both are URL state, ?project=NAME&shared=1, through useSearch like format and repo; a project named in the URL but not in the list stays selectable, as for repositories.
  • Name search only. The two controls are hidden while the mode is Checksum, and fetchRows sends 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 client (api/search.ts): project and projectRoles (ProjectMemberRole[], one project_role per role) for search() and searchPackageGroups(), not for searchChecksum().
  • Palette: shell.palette.tooBroad now names project: too.
  • i18n: search.filter.project, search.filter.allProjects, search.filter.shared and the changed hint in every locale (i18n:check passes). "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: docs/getting-started/web-ui.md (Packages filters, palette hint).

Tests

  • api/__tests__/search.test.ts: project and repeated project_role on the grouped and plain searches.
  • pages/packages/__tests__/PackagesPage.test.ts: the select lists the caller's projects by display name and the request carries project and project_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 build with check-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

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]>
@M0Rf30
M0Rf30 merged commit ce3cf1b into openartifact:main Nov 9, 2026
22 checks passed
@M0Rf30 M0Rf30 mentioned this pull request Nov 9, 2026
@orcamedia
orcamedia deleted the feat/web-search-project-filters branch November 11, 2026 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants