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

refactor: enable children on navbar switcher #2863

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

massao
Copy link
Contributor

@massao massao commented Sep 9, 2024

Purpose of PR

In some use cases we don't have space and environment, in those cases we pass a string that will appear on the switcher

Preview

image

@massao massao requested review from damann and a team as code owners September 9, 2024 12:23
Copy link

vercel bot commented Sep 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
forma-36 ✅ Ready (Inspect) Visit Preview Sep 9, 2024 0:27am

Copy link

changeset-bot bot commented Sep 9, 2024

⚠️ No Changeset found

Latest commit: f2fb659

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

💥 An error occurred when fetching the changed packages and changesets in this PR
Some errors occurred when validating the changesets config:
The package "@contentful/f36-components" depends on the ignored package "@contentful/f36-avatar", but "@contentful/f36-components" is not being ignored. Please add "@contentful/f36-components" to the `ignore` option.
The package "@contentful/f36-components" depends on the ignored package "@contentful/f36-image", but "@contentful/f36-components" is not being ignored. Please add "@contentful/f36-components" to the `ignore` option.
The package "@contentful/f36-components" depends on the ignored package "@contentful/f36-header", but "@contentful/f36-components" is not being ignored. Please add "@contentful/f36-components" to the `ignore` option.

Copy link
Collaborator

@Lelith Lelith left a comment

Choose a reason for hiding this comment

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

lgtm!

@damann
Copy link

damann commented Sep 9, 2024

Hey Massao, I strongly recommend removing that behavior as it’s a bit misleading. The label 'Account Settings' should be shown in the page header. I'm working on a proposal that will eliminate the need to change the main navigation for different settings areas (org, space, account). In the meantime, I suggest we use the breadcrumb in the header to display the 'Account Settings' label and remove it from the main navigation.

@Lelith
Copy link
Collaborator

Lelith commented Sep 9, 2024

@damann the string is not hardcoded in there, it only allows us to also hand over strings.

@massao massao merged commit 57fc08c into next Sep 9, 2024
12 of 14 checks passed
@massao massao deleted the refactor/navbar-switcher-enable-children-CFISO-1817 branch September 9, 2024 12:50
@damann
Copy link

damann commented Sep 9, 2024

@damann the string is not hardcoded in there, it only allows us to also hand over strings.

Thanks. That’s fine, but there shouldn’t be any text in that place that resembles the environment switcher. I hadn’t specified this earlier as I only came across it recently, and it got buried under other priorities 🙇. As mentioned, I’m working on a better alternative, but for now, the interim solution should be to remove or hide it.

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.

3 participants