Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Move analytics link to editor navigation #3481

Merged
merged 9 commits into from
Aug 1, 2024

Conversation

ianjon3s
Copy link
Contributor

@ianjon3s ianjon3s commented Jul 31, 2024

What does this PR do?

  • Places an analytics menu item in the new editor navigation
  • Replicates logic for determining whether or not an analytics link is present and makes menu item active/inactive accordingly
  • Removes analytics link from sidebar icon group

Example with analytics link (manually set):
https://3481.planx.pizza/testing/flow-with-analytics-link

Example without analytics link:
https://3481.planx.pizza/testing/flow-without-analytics-link

Copy link

github-actions bot commented Jul 31, 2024

Removed vultr server and associated DNS entries

@ianjon3s
Copy link
Contributor Author

@ianjon3s ianjon3s marked this pull request as ready for review July 31, 2024 13:30
@ianjon3s ianjon3s requested a review from a team July 31, 2024 13:32
Copy link
Contributor

@DafyddLlyr DafyddLlyr left a comment

Choose a reason for hiding this comment

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

A few small comments - looking good though! Super nice to start removing icons from the top right panel 🧹 🗑️

editor.planx.uk/src/components/EditorNavMenu.tsx Outdated Show resolved Hide resolved
editor.planx.uk/src/components/EditorNavMenu.tsx Outdated Show resolved Hide resolved
editor.planx.uk/src/components/EditorNavMenu.tsx Outdated Show resolved Hide resolved
editor.planx.uk/src/components/EditorNavMenu.tsx Outdated Show resolved Hide resolved
@ianjon3s ianjon3s requested a review from DafyddLlyr August 1, 2024 09:25
Copy link
Contributor

@DafyddLlyr DafyddLlyr left a comment

Choose a reason for hiding this comment

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

One very minor comment, but happy to merge as-is! ✅

})<{ isActive: boolean; disabled?: boolean }>(
({ theme, isActive, disabled }) => ({
shouldForwardProp: (prop) => prop !== "isActive",
})<{ isActive: boolean }>(({ theme, isActive }) => ({
Copy link
Contributor

Choose a reason for hiding this comment

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

As disabled is an IconButton prop, you should still be able to access it here.

})<{ isActive: boolean }>(({ theme, isActive, disabled }) => ({

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yes, I've updated, allows a consistent use of the prop with the CSS

@ianjon3s ianjon3s merged commit 04be3f4 into main Aug 1, 2024
12 checks passed
@ianjon3s ianjon3s deleted the ian/analytics-link-to-nav branch August 1, 2024 10:50
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.

2 participants