test: add tdd tests for groups administration #372
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
0a2aa3bad0
commit
f05fae3ea3
6 changed files with 962 additions and 4 deletions
|
|
@ -304,9 +304,9 @@ lib/
|
|||
- Add/remove groups inline
|
||||
- Link to group detail page
|
||||
|
||||
### Group Detail View (`/groups/:id`)
|
||||
### Group Detail View (`/groups/:slug`)
|
||||
|
||||
**Route:** `/groups/:id` - Group detail page (uses UUID, slug can be used for future `/groups/:slug` routes)
|
||||
**Route:** `/groups/:slug` - Group detail page (uses slug for URL-friendly routing)
|
||||
|
||||
**Features:**
|
||||
- Display group name and description
|
||||
|
|
@ -315,7 +315,7 @@ lib/
|
|||
- Edit group button
|
||||
- Delete group button (with confirmation)
|
||||
|
||||
**Note:** Currently uses UUID for routing. Slug is available for future URL-friendly routes (`/groups/:slug`).
|
||||
**Note:** Uses slug for routing to provide URL-friendly, readable group URLs (e.g., `/groups/board-members`).
|
||||
|
||||
### Accessibility (A11y) Considerations
|
||||
|
||||
|
|
@ -1106,7 +1106,7 @@ Groups include automatic slug generation, following the same pattern as CustomFi
|
|||
- Automatically generated from the `name` attribute on create
|
||||
- Immutable after creation (don't change when name is updated)
|
||||
- Unique and URL-friendly
|
||||
- Available for future route enhancements (e.g., `/groups/:slug` instead of `/groups/:id`)
|
||||
- Used for routing (e.g., `/groups/:slug` for group detail pages)
|
||||
|
||||
The implementation reuses the existing `GenerateSlug` change from CustomFields, ensuring consistency across the codebase.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue