Skip to content

feat(clerk-js): Notify admins for pending requests in OrganizationSwitcher#1670

Merged
panteliselef merged 5 commits intomainfrom
ORG-188
Sep 1, 2023
Merged

feat(clerk-js): Notify admins for pending requests in OrganizationSwitcher#1670
panteliselef merged 5 commits intomainfrom
ORG-188

Conversation

@panteliselef
Copy link
Copy Markdown
Contributor

Type of change

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

Packages affected

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

Description

  • npm test runs as expected.
  • npm run build runs as expected.

This PR is an improvement for the notification badge in OrganizationSwitcher

  • Include the number of pending requests in the active organization in switcher (for organization admins)
  • Add the same number to the "Requests" tab in OrganizationProfile
Screen.Recording.2023-09-01.at.12.21.06.PM.mov

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Sep 1, 2023

🦋 Changeset detected

Latest commit: de2c146

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

@panteliselef panteliselef self-assigned this Sep 1, 2023
@panteliselef panteliselef changed the title Org 188 feat(clerk-js): Notify admins for pending requests in OrganizationSwitcher Sep 1, 2023
Copy link
Copy Markdown
Member

@chanioxaris chanioxaris left a comment

Choose a reason for hiding this comment

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

Great job, animations looks smooth to me 💯

const NotificationCountBadgeManageButton = () => {
const { membership } = useCoreOrganization();
const { organizationSettings } = useEnvironment();
const isAdmin = membership?.role === 'admin';
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.

Irrelevant to this PR, but that's a nice candidate to introduce a HasRole() method on the MembershipResource

@clerk-cookie
Copy link
Copy Markdown
Collaborator

This PR has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@clerk clerk locked as resolved and limited conversation to collaborators Sep 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants