Skip to content

feat(ui): show global/org registries in repo/org registries tab#6296

Closed
mendarb wants to merge 1 commit into
woodpecker-ci:mainfrom
mendarb:feat/show-global-org-registries
Closed

feat(ui): show global/org registries in repo/org registries tab#6296
mendarb wants to merge 1 commit into
woodpecker-ci:mainfrom
mendarb:feat/show-global-org-registries

Conversation

@mendarb

@mendarb mendarb commented Mar 22, 2026

Copy link
Copy Markdown

Closes #5950

Summary

Replicates the existing pattern used for secrets to also show global and organization-level registries in the repository and organization registries tabs as read-only entries with level badges.

Changes

  • Repo registries tab (Registries.vue): Now loads registries from repo, org, and global levels using the usePagination each parameter (same pattern as Secrets.vue). Deduplicates by address with repo-level taking priority, and sorts by level then address.
  • Org registries tab (OrgRegistries.vue): Now loads registries from org and global levels. Global registries are shown as read-only with a badge.
  • RegistryList component (RegistryList.vue): Added a Badge component to indicate when a registry comes from the global or organization level (matching the existing SecretList.vue pattern). Edit/delete buttons are hidden for read-only (inherited) registries.
  • Locale (en.json): Added global_level_registry and org_level_registry translation keys.

How it works

This follows the exact same approach already used for secrets:

  1. The usePagination hook's each parameter iterates through levels (repo → org → global)
  2. A computed property deduplicates entries by address, giving priority to the most specific level
  3. Inherited (non-repo) registries are marked as edit: false and shown as read-only
  4. The RegistryEdit component already supports readonly mode, so clicking a read-only registry shows its details without allowing edits

Testing

  • pnpm typecheck passes
  • pnpm build passes

Replicates the existing pattern used for secrets to also show global and
organization-level registries in the repository and organization
registries tabs as read-only entries with level badges.

Changes:
- Repo registries tab now loads and displays org and global registries
- Org registries tab now loads and displays global registries
- RegistryList component shows a badge indicating the registry level
- Added locale keys for global/org registry labels

Closes woodpecker-ci#5950
@qwerty287

Copy link
Copy Markdown
Contributor

#6291

@qwerty287 qwerty287 closed this Mar 22, 2026
@woodpecker-bot

Copy link
Copy Markdown
Contributor

⚠️ Author was flagged as AI agent

The user mendarb was flagged as AI agent by AgentScan due to the following reasons:

Signal Points Detail
Severe fork surge 70 23 repos forked within 24 hours

Review with extra care.

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.

UI: show global/org registries in org/repo registries tab

4 participants