Repository navigation
Show settings sections as a collapsible sidebar group - #271
Merged
Merged
Conversation
Settings used two rows of tabs: Organization, Members and Deployment agents, and inside Organization a second row for Company sign-in and Administration. The sidebar now expands Settings into these sections, and each section has its own path under /settings: - /settings/company-sign-in (setup at /settings/company-sign-in/setup) - /settings/members - /settings/agents - /settings/administration /settings redirects to Company sign-in and keeps its query, so existing links and sign-in callbacks still arrive.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | fe6cb4e | Nov 21 2026, 06:16 PM |
Comment on lines
+170
to
+175
| <Collapsible.Root open={active(item)} class="group/collapsible"> | ||
| {#snippet child({ props })} | ||
| <Sidebar.MenuItem {...props}> | ||
| <Collapsible.Trigger> | ||
| {#snippet child({ props })} | ||
| <Sidebar.MenuButton {...props} |
There was a problem hiding this comment.
With JavaScript disabled, administrators on / or /apps cannot open Settings from the sidebar. The group starts closed, and its trigger is now a button instead of the previous link. Keep a native link or <details> fallback, and cover this path in the existing no-JavaScript tests.
Comment on lines
+136
to
+137
| ? `/settings/company-sign-in/setup?provider=${chosen}&step=${id}` | ||
| : `/settings/company-sign-in/setup?step=${id}`; |
There was a problem hiding this comment.
tnkuehne
added a commit
that referenced
this pull request
Nov 22, 2026
Workspace server loads awaited remote queries only to warm them and then discarded the results. SvelteKit serializes remote query results into the HTML of a full page render, but not into `__data.json`. On client-side navigation the server ran each query inside the data request, and the page component then requested the same query again, so every navigation waited for two sequential requests and repeated the database work. The [remote functions docs](https://svelte.dev/docs/kit/remote-functions) await queries in components. The components here already do that, which renders the data on the server for full page loads. Errors thrown by a query during rendering, such as the 404 from `getAppDetails`, set the response status and render `+error.svelte`. Changes: - Remove the discarded prefetches from the home, apps, app, connections, services, API requests, settings administration, company sign-in, agents and members loads. - The app layout no longer depends on the full URL. Its per-section rerun only existed to repeat the removed prefetch; each section query authorizes its own request. Loads that use a query result for a 404, a redirect or returned data (`apps/new`, `services/[service]/*`, `services/requests/[requestId]`, `settings/company-sign-in/setup`, the selected app on `services`) are unchanged here. Validation: - `pnpm check` equivalents: control-plane typecheck, `oxfmt --check`, `oxlint --type-aware --deny-warnings`. - Browser suite before the rebase onto #271: 83 passed, 1 skipped, `setup.spec.ts` failed. It failed again when rerun alone (the first attempt hit `EADDRINUSE` from another local process on port 25430). It passed in the next full run with this change and on unchanged `main`. <!-- greptile_comment --> <!-- greptile_summary --> <h2><a href="https://app.greptile.com/api/retrigger?id=115286350&sig=b5bce9feb5b3158cf87cb876d19e45a53f79fd7c563038a27162271f1fec8151"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a><a href="https://app.greptile.com/-/switch-tenant?tenant=mendra&next=%2Fwidefleet%2Fwidefleet%2Fpull%2F273&utm_source=greptile_review&utm_medium=github&utm_campaign=view_in_greptile"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptileDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"><img alt="View in Greptile" src="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2" align="right"></picture></a>Confidence Score: 5/5</h2> <!-- greptile-impact-verdict --> The PR appears safe to merge. <details open><summary><h3>Summary</h3></summary> Removes discarded query calls from ten workspace server loads so components fetch their own data without repeating those reads. - Workspace pages stop waiting for remote data their components fetch. - App sections stop waiting for a duplicate details query. </details> <!-- greptile_confidence_score:5 --> <sub>Reviews (5) · Last reviewed commit: ["Load page data once per control-plane na..."](cd61a5e) · [Reviewed by Greptile](https://www.greptile.com/?utm_source=greptile_review&utm_medium=github&utm_campaign=review_public&utm_content=widefleet/widefleet)</sub> <!-- /greptile_comment -->
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.
Problem
Settings used two rows of tabs. The first row held Organization, Members and Deployment agents. Inside Organization, a second row switched between Company sign-in and Administration with a
?section=query. The sidebar only said "Settings", so you could not see or reach a section from the navigation, and two of the sections had no path of their own.Change
CollapsibleandSidebar.MenuSubcomponents. The group is open while you are on a settings page./settings/company-sign-in, with the setup flow at/settings/company-sign-in/setup/settings/members/settings/agents, still only for installation administrators/settings/administrationSettingsTabsare gone./settingsredirects to Company sign-in and keeps its query, so existing links and sign-in callbacks still arrive.Sidebar.MenuButtonso the group matches them.sidebar-menu-button.sveltenow types its props for any element, so it can render a link./membersand/agentsare not redirected. Nothing in the docs, the CLI or the API links to them.Screenshots
Tests
pnpm typecheck,oxlint --type-aware --deny-warningsandoxfmt --checkpass.cli-login.spec.tsruns could not start because the Rust CLI was not built locally (target/debug/widefleetmissing). They do not touch settings.setup.spec.tsopens/settings?section=reportingand checks that the redirect lands on/settings/company-sign-in?section=reportingwith Company sign-in marked as current.The PR appears safe to merge, with non-blocking fixes for navigation without JavaScript and old SSO setup links.
Findings
Summary
Moves settings navigation into a collapsible sidebar group and gives each section its own path.
Acknowledgments:
/membersand/agents, stating that the docs, CLI, and API do not link to them. Those removed URLs are not findings./settingsredirects to Company sign-in while retaining its query. The former section selector is not treated as a separate defect.Verification: Source inspection only. Tests and visual capture were not run; the checkout has no installed dependencies or built control-plane app.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart TD Settings["Settings sidebar group"] --> SignIn["/settings/company-sign-in"] Settings --> Members["/settings/members"] Settings --> Agents["/settings/agents — installation admins"] Settings --> Administration["/settings/administration"] SignIn --> Setup["/settings/company-sign-in/setup"] Legacy["/settings + query"] --> SignInReviews (1) · Last reviewed commit: "Show settings sections as a collapsible ..." · Reviewed by Greptile