Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

Simplify configuration and sidebar navigation - #3680

Merged
trunk-io[bot] merged 3 commits into
mainfrom
posthog-code/fix-configure-nav-regression
Jul 22, 2026
Merged

Simplify configuration and sidebar navigation#3680
trunk-io[bot] merged 3 commits into
mainfrom
posthog-code/fix-configure-nav-regression

Conversation

@k11kirky

@k11kirky k11kirky commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Problem

Configuration destinations were duplicated in the main navigation, while sidebar customization was hidden behind a More dropdown.

Why: Keep configuration destinations grouped in one place and make the primary navigation simpler and more predictable.

Changes

Screenshot 2026-07-22 at 10 24 01 AM
  • Keep Agents, Skills, and MCP Servers exclusively under Configure
  • Remove the More dropdown and place Search directly beneath Home
  • Move sidebar visibility and ordering controls to Experience → Sidebar

How did you test this?

  • 57 focused sidebar and settings tests pass
  • Biome passes on the changed sidebar and settings files

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog Code

Generated-By: PostHog Code
Task-Id: 884159da-252c-4037-ab49-c6178d27732e
@trunk-io

trunk-io Bot commented Jul 22, 2026

Copy link
Copy Markdown

😎 Merged directly without going through the merge queue, as the queue was empty and the PR was up to date with the target branch - details.

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit af048df.

Generated-By: PostHog Code
Task-Id: 884159da-252c-4037-ab49-c6178d27732e
@k11kirky k11kirky changed the title Fix duplicate configuration navigation Simplify configuration and sidebar navigation Jul 22, 2026
@k11kirky
k11kirky marked this pull request as ready for review July 22, 2026 08:23
@greptile-apps

greptile-apps Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor
Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 1
packages/ui/src/features/sidebar/components/CustomizeSidebarDialog.tsx:67
**Unavailable Items Remain Configurable**

This page now lists every customizable item, but `SidebarNavSection` still gates Contexts, Activity, and Loops with runtime feature state. When one of those features is unavailable, selecting its checkbox persists a visible override while the sidebar continues to omit it, so the control appears to succeed but has no effect.

Reviews (1): Last reviewed commit: "Simplify sidebar customization" | Re-trigger Greptile

const items = orderedNavItems(previewOrder ?? navItemOrder).filter(
({ id }) => available?.[id] !== false,
);
const items = orderedNavItems(previewOrder ?? navItemOrder);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Unavailable Items Remain Configurable

This page now lists every customizable item, but SidebarNavSection still gates Contexts, Activity, and Loops with runtime feature state. When one of those features is unavailable, selecting its checkbox persists a visible override while the sidebar continues to omit it, so the control appears to succeed but has no effect.

Rule Used: When implementing new features, ensure that the UI... (source)

Learned From
PostHog/posthog#32595
PostHog/posthog#32677

Prompt To Fix With AI
This is a comment left during a code review.
Path: packages/ui/src/features/sidebar/components/CustomizeSidebarDialog.tsx
Line: 67

Comment:
**Unavailable Items Remain Configurable**

This page now lists every customizable item, but `SidebarNavSection` still gates Contexts, Activity, and Loops with runtime feature state. When one of those features is unavailable, selecting its checkbox persists a visible override while the sidebar continues to omit it, so the control appears to succeed but has no effect.

**Rule Used:** When implementing new features, ensure that the UI... ([source](https://app.greptile.com/posthog-org-19734/-/custom-context?memory=5d57f0af-0be1-44de-8885-055f27e2885f))

**Learned From**
[PostHog/posthog#32595](https://github.com/PostHog/posthog/pull/32595)
[PostHog/posthog#32677](https://github.com/PostHog/posthog/pull/32677)

How can I resolve this? If you propose a fix, please make it concise.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in af048df. Sidebar settings now apply the same availability rules as the sidebar for Loops, Channels, and Activity, with regression coverage for unavailable features.

@k11kirky k11kirky added the Stamphog This will request an autostamp by stamphog on small changes label Jul 22, 2026
Generated-By: PostHog Code
Task-Id: 884159da-252c-4037-ab49-c6178d27732e

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Contained frontend navigation/settings reorg with no auth, billing, API, schema, dependency, or CI surface touched; the one substantive review concern (unavailable items staying configurable) was fixed in the current head with matching regression tests and acknowledged by the bot reviewer's 👍.

  • 👍 on the PR from greptile-apps[bot].
Gate mechanics and policy version
Gate Result
prerequisites all clear
deny-list no deny categories matched
size 329L, 8F substantive, 618L/13F incl. docs/generated/snapshots — within ceiling
tier T1-agent / T1d-complex (618L, 13F, single-area, unknown)
stamphog 2.0.0b3 .stamphog/policy.yml @ f1563f9 · reviewed head af048df

@k11kirky k11kirky added Create Release This will trigger a new release and removed Create Release This will trigger a new release labels Jul 22, 2026
@k11kirky

Copy link
Copy Markdown
Contributor Author

/truck merge

@k11kirky

Copy link
Copy Markdown
Contributor Author

/trunk merge

@trunk-io
trunk-io Bot merged commit 7f1dbba into main Jul 22, 2026
38 checks passed
@trunk-io
trunk-io Bot deleted the posthog-code/fix-configure-nav-regression branch July 22, 2026 09:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Stamphog This will request an autostamp by stamphog on small changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants