Skip to content

feat(insights): Remove Projects from Insights navigation#112535

Open
gggritso wants to merge 2 commits intomasterfrom
georgegritsouk/dain-1468-remove-projects-from-insights-navigation
Open

feat(insights): Remove Projects from Insights navigation#112535
gggritso wants to merge 2 commits intomasterfrom
georgegritsouk/dain-1468-remove-projects-from-insights-navigation

Conversation

@gggritso
Copy link
Copy Markdown
Member

@gggritso gggritso commented Apr 8, 2026

The much beleaguered "Projects" page is being slowly shuffled out. Here's the current (strange) state:

  • "Projects" is (mysteriously) available from the logo dropdown, even though everything else in there goes to settings pages, and there is such a thing as project settings!
  • "Projects" also shows up in the Insights secondary navigation. Why? Got dumped there during the last sidebar re-shuffle, I think
  • Project pages live on the path /insights/projects, we moved them there from their old home at /projects

The Product™ has decided that the "Projects" page and the actual per-project pages are not wanted anymore. The use-case for them is better covered with Dashboards and/or Project Settings in the sidebar, we even added some analytics about it.

Since the sidebar is getting a big shuffle in the near future when "Monitors" appears, we'll also take that opportunity to remove "Projects" from the Insights secondary menu. (We're actually going to remove "Insights" menu completely, but one things at a time). Things are still a bit weird, but it's an intermediate state we're okay with for now. Soon, we will delete these pages altogether, but for now:

  1. "Projects" are available as a link in the logo menu item, that link goes to /projects/. /insights/projects/ now redirects to /projects/
  2. "Projects" is removed from the Insights secondary sidebar completely! Sorry y'all
  3. Projects now has its own secondary menu. Otherwise, if someone has their secondary menu pinned and they land on /projects/ what would show up there? Now it has the list of pinned projects, which is helpful
  4. There's no primary menu item associated with projects, which is a bit weird, but there it is

This is all gated behind the Workflow UI flag since we're going to roll out with them!

e.g.,

Screenshot 2026-04-08 at 4 07 30 PM Screenshot 2026-04-08 at 4 06 40 PM

…low-engine-ui flag

Move Projects out of the Insights sidebar into their own standalone
secondary navigation, accessible from the logo nav at /projects/.
When the workflow-engine-ui flag is enabled, /projects/ serves content
directly and /insights/projects/ redirects back.

Extract shared ProjectsNavigationItems component to deduplicate the
"All Projects" link and starred projects list between both sidebars.

Refs DAIN-1468
Co-Authored-By: Claude <noreply@anthropic.com>
@linear-code
Copy link
Copy Markdown

linear-code bot commented Apr 8, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 8, 2026
Remove the /insights/projects/ test case from the route inference
table since projects now have their own nav group with no primary
nav button.

Co-Authored-By: Claude <noreply@anthropic.com>
@gggritso
Copy link
Copy Markdown
Member Author

gggritso commented Apr 8, 2026

@cursor review

Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit baa4036. Configure here.


const redirectPath = organization.features.includes('workflow-engine-ui')
? reverseRedirect
: forwardRedirect;
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.

Spurious redirect warning logged on canonical project URLs

Medium Severity

Unconditionally calling both useRedirectNavigationV2Routes hooks causes the internally-fired useLogUnexpectedNavigationRedirect to log false 'Unexpected navigation redirect' warnings to Sentry. This occurs when the discarded hook's oldPathPrefix matches the current canonical URL, generating monitoring noise that may obscure legitimate issues.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit baa4036. Configure here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is somewhat of a bummer but doesn't feel that important? Not sure! It's a very rare situation that we have two of those redirect hook in the same place, due to this conditional redirect!

@gggritso gggritso requested a review from malwilley April 8, 2026 21:50
@gggritso gggritso marked this pull request as ready for review April 8, 2026 21:50
@gggritso gggritso requested a review from a team as a code owner April 8, 2026 21:50
oldPathPrefix: '/projects/',
newPathPrefix: '/insights/projects/',
});
const reverseRedirect = useRedirectNavigationV2Routes({
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@JonasBa you were trying to remove this redirect hook - do you think we should use something else for this particular behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants