feat: organize network settings into tabs #264
Reference in New Issue
Block a user
Delete Branch "worktree-virtual-floating-hamster"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #258
Summary by CodeRabbit
New Features
Improvements
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID:
02bd8d23-012b-465f-b779-e4e016783942📥 Commits
Reviewing files that changed from the base of the PR and between
c8233c6f0fandaa33622750.📒 Files selected for processing (2)
js/desktop/src/features/network-settings.tsxjs/desktop/src/features/network-settings/add-members-dialog.tsx🚧 Files skipped from review as they are similar to previous changes (2)
📝 Walkthrough
Walkthrough
This PR refactors network settings from a single-column layout into a tabbed UI controlled by the URL
sectionquery parameter, adds a newAddMembersDialogcomponent for inviting members by email, and routes newly created networks to the Members tab with a one-shot onboarding flag that opens the invitation dialog automatically.Changes
Network Settings Tabbed UI with Member Invitation Onboarding
js/desktop/src/features/network-settings/add-members-dialog.tsxuseInviteMembersand shows a success toast before closing and resetting state.js/desktop/src/features/network-settings.tsxTabsUI controlled by thesectionURL param (defaults tomembers). Adds one-shotaddOpenonboarding initialized from?add=1that strips the param after mount. Removes inlineInviteForm, moves pending invitations into Members tab, renders Billing in Plan & Billing tab. Updates UI components withSectionHeadingandPanelwrapper for consistent styling. Wires "Add members" button toAddMembersDialog.js/desktop/src/features/network-selector.tsxsection=members&add=1query parameters to trigger the invitation dialog onboarding.Sequence Diagram(s)
Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~25 minutes
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2
❌ Failed checks (1 warning, 1 inconclusive)
#258, with no accessible issue details to validate specific coding requirements against.#258to fully validate that all coding objectives have been met.✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing Touches
📝 Generate docstrings
🧪 Generate unit tests (beta)
worktree-virtual-floating-hamsterComment
@coderabbitai helpto get the list of available commands and usage tips.Actionable comments posted: 1
🧹 Nitpick comments (2)
🤖 Prompt for all review comments with AI agents
🪄 Autofix (Beta)
✅ Autofix completed
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID:
6d1b2267-8eb8-4ac6-b48e-b571052d4d05📥 Commits
Reviewing files that changed from the base of the PR and between
cf94003b3fandb46df94124.📒 Files selected for processing (3)
js/desktop/src/features/network-selector.tsxjs/desktop/src/features/network-settings.tsxjs/desktop/src/features/network-settings/add-members-dialog.tsx@@ -181,7 +156,7 @@ export default function NetworkSettingsPage() {const { networkId } = useParams<{ networkId: string }>();⚠️ Potential issue | 🟡 Minor
🧩 Analysis chain
🏁 Script executed:
Repository: flowy-live/llink
Length of output: 6719
🏁 Script executed:
Repository: flowy-live/llink
Length of output: 24667
Avoid clobbering URL state when stripping
add=1In
js/desktop/src/features/network-settings.tsx(around lines 185-190), the cleanup effect clones the render-timesearchParamsbefore deletingadd; ifsection(tabs) is updated before the effect runs, that newer change can be overwritten. Switch to the functionalsetSearchParams(prev => ...)pattern (likejs/desktop/src/features/network-root.tsx) and deleteaddfromprevinstead of the captured snapshot.🤖 Prompt for AI Agents
✅ Addressed in commit
c8233c6Fixes Applied Successfully
Fixed 2 file(s) based on 1 unresolved review comment.
Files modified:
js/desktop/src/features/network-settings.tsxjs/desktop/tsconfig.jsonCommit:
c8233c6f0f80aac0f9d522748f7fd454db5372c6The changes have been pushed to the
worktree-virtual-floating-hamsterbranch.Time taken:
5m 33s