Skip to content

feat: add optional label to access control groups#1365

Open
eschdeuse wants to merge 1 commit into
hoophq:mainfrom
eschdeuse:feat/access-control-group-label
Open

feat: add optional label to access control groups#1365
eschdeuse wants to merge 1 commit into
hoophq:mainfrom
eschdeuse:feat/access-control-group-label

Conversation

@eschdeuse
Copy link
Copy Markdown

@eschdeuse eschdeuse commented Apr 8, 2026

Summary

  • Add optional label field to access control groups that overrides the displayed name in the UI
  • New DB migration adds label column to user_groups table
  • New PUT /users/groups/:name endpoint to update a group's label
  • GET /users/groups now returns [{name, label}] objects (backward compatible on frontend via dual state)
  • Label field added to both create and edit group forms
  • Group list shows label as heading with technical name as subtitle when label is set

Test plan

  • Create a new group with a label set — verify it shows in the list
  • Create a new group without a label — verify name displays as before
  • Edit an existing group, add a label — verify list and edit page update
  • Edit a group, clear the label — verify it falls back to name
  • Verify other consumers (user forms, access request rules, runbooks) still work (they use :user-groups string list which is backward compatible)

Allow groups to have an optional display label that overrides
the group name in the UI when set. This makes groups with
auto-generated names (UUIDs) more user-friendly.

Backend:
- Add label column to user_groups table (migration 000069)
- Add Label field to UserGroup model
- ListAllGroups now returns objects {name, label} instead of strings
- CreateGroup accepts optional label
- New PUT /users/groups/:name endpoint to update group label

Frontend:
- user-groups-full state stores full group objects with labels
- user-groups (string list) kept for backward compatibility
- Label field on both create and edit forms
- Group list shows label as primary text with name as subtitle
- Edit page heading shows label when set

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 8, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@eschdeuse
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

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.

1 participant