Skip to content

fix(clerk-js): Avoid wrapping NotificationCountBadge of OrgSwitcher with Gate#2147

Merged
nikosdouvlis merged 1 commit into
mainfrom
elef/sdk-953-switcher-badge
Nov 17, 2023
Merged

fix(clerk-js): Avoid wrapping NotificationCountBadge of OrgSwitcher with Gate#2147
nikosdouvlis merged 1 commit into
mainfrom
elef/sdk-953-switcher-badge

Conversation

@panteliselef

Copy link
Copy Markdown
Contributor

Description

In order to see notifications for suggestions and invitations you don't have to have a permission or have an active organization. Previously we incorrectly wrapped this component with Gate. Instead we only want to check if you have have the org:sys_memberships:mananage permission in order to fetch and include in the counter the requests of an active organization.

Before

Screen.Recording.2023-11-13.at.2.11.29.PM.mov

After

Screen.Recording.2023-11-16.at.5.45.02.PM.mov

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Packages affected

  • @clerk/backend
  • @clerk/chrome-extension
  • @clerk/clerk-js
  • @clerk/clerk-expo
  • @clerk/fastify
  • gatsby-plugin-clerk
  • @clerk/localizations
  • @clerk/nextjs
  • @clerk/clerk-react
  • @clerk/remix
  • @clerk/clerk-sdk-node
  • @clerk/shared
  • @clerk/themes
  • @clerk/types
  • build/tooling/chore

@panteliselef
panteliselef requested a review from a team November 16, 2023 15:50
@panteliselef panteliselef self-assigned this Nov 16, 2023
@changeset-bot

changeset-bot Bot commented Nov 16, 2023

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 11e5802

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch

Not sure what this means? Click here to learn what changesets are.

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

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants