Feat: Websites can be organized into hierarchical groups#4371
Open
SniperCZE wants to merge 11 commits into
Open
Feat: Websites can be organized into hierarchical groups#4371SniperCZE wants to merge 11 commits into
SniperCZE wants to merge 11 commits into
Conversation
|
@SniperCZE is attempting to deploy a commit to the Umami Software Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
Greptile SummaryThis PR adds hierarchical website groups across the database, API, and UI. The main changes are:
Confidence Score: 4/5The grouped selector and bulk user/team cleanup paths need fixes before merging.
src/components/input/WebsiteSelect.tsx, src/queries/prisma/user.ts, src/queries/prisma/team.ts Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[WebsiteGroup rows] --> B[Website tree APIs]
B --> C[Website tree table]
B --> D[Grouped WebsiteSelect]
A --> E[Website groupId assignments]
F[Single group delete] --> G[Reparent children and websites]
H[User/team delete] --> I[Bulk delete groups]
I --> J[Dangling groupId or nested-delete failure]
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
A[WebsiteGroup rows] --> B[Website tree APIs]
B --> C[Website tree table]
B --> D[Grouped WebsiteSelect]
A --> E[Website groupId assignments]
F[Single group delete] --> G[Reparent children and websites]
H[User/team delete] --> I[Bulk delete groups]
I --> J[Dangling groupId or nested-delete failure]
Reviews (1): Last reviewed commit: "Groups can be deleted even when members ..." | Re-trigger Greptile |
… hierarchical-groups
Author
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.
Summary
Websites can be organized into hierarchical groups with custom names. A group can contain other groups and/or websites. Each website can belong to at most one group, or to no group at all (group_id is NULL by default).
Groups use the same ownership model as websites: they belong either to a user or to a team, never both.
What changed
Database
API
Permissions
UI
Translations
Testing
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.