Skip to content

Show settings sections as a collapsible sidebar group - #271

Merged
tnkuehne merged 1 commit into
mainfrom
feat/settings-sidebar-nav
Nov 21, 2026
Merged

tnkuehne merged 1 commit into
mainfrom
feat/settings-sidebar-nav

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

  • The sidebar expands Settings into its sections, using the shadcn-svelte Collapsible and Sidebar.MenuSub components. The group is open while you are on a settings page.
  • Each section has its own path:
    • /settings/company-sign-in, with the setup flow at /settings/company-sign-in/setup
    • /settings/members
    • /settings/agents, still only for installation administrators
    • /settings/administration
  • Each section page has its own title. The tab rows and SettingsTabs are gone.
  • /settings redirects to Company sign-in and keeps its query, so existing links and sign-in callbacks still arrive.
  • The other sidebar items use Sidebar.MenuButton so the group matches them. sidebar-menu-button.svelte now types its props for any element, so it can render a link.

/members and /agents are not redirected. Nothing in the docs, the CLI or the API links to them.

Screenshots

Page Before After
Company sign-in, 1280, light
Members, 1280, light
Administration, 1280, light
Members menu, 390, light
Company sign-in, 1280, dark
Members, 1280, dark
Administration, 1280, dark
Members menu, 390, dark

Tests

  • pnpm typecheck, oxlint --type-aware --deny-warnings and oxfmt --check pass.
  • Playwright e2e: 84 passed, 1 skipped. The 4 cli-login.spec.ts runs could not start because the Rust CLI was not built locally (target/debug/widefleet missing). They do not touch settings.
  • setup.spec.ts opens /settings?section=reporting and checks that the redirect lands on /settings/company-sign-in?section=reporting with Company sign-in marked as current.
  • Checked at 1280 and 390 px in light and dark. Not checked: the collapsed group on non-settings pages at 390 px, and keyboard-only toggling of the group.

RetriggerView in GreptileConfidence Score: 4/5 Tier: plus

The PR appears safe to merge, with non-blocking fixes for navigation without JavaScript and old SSO setup links.

Findings

  1. P2 Settings needs JavaScript ▶
  2. P2 Old setup links break ▶

Summary

Moves settings navigation into a collapsible sidebar group and gives each section its own path.

  • Settings sections now open from a collapsible sidebar group.

Acknowledgments:

  • tnkuehne explicitly chose not to redirect /members and /agents, stating that the docs, CLI, and API do not link to them. Those removed URLs are not findings.
  • tnkuehne states that /settings redirects 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"] --> SignIn
Loading

Reviews (1) · Last reviewed commit: "Show settings sections as a collapsible ..." · Reviewed by Greptile

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.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs fe6cb4e Nov 21 2026, 06:16 PM

@tnkuehne
tnkuehne merged commit 90e4641 into main Nov 21, 2026
15 checks passed
@tnkuehne
tnkuehne deleted the feat/settings-sidebar-nav branch November 21, 2026 18:19
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}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Settings needs JavaScript

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}`;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Old setup links break

The former /settings/sso/setup route has no redirect after this move, so saved wizard links now return 404. If a sign-in test spans an upgrade, it also keeps the old return path. Keep a redirect from the old setup route and preserve its query so the provider and step survive.

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&amp;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&amp;next=%2Fwidefleet%2Fwidefleet%2Fpull%2F273&amp;utm_source=greptile_review&amp;utm_medium=github&amp;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 -->
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