Skip to content

fix(top-bar): resolve menu display issue (missing store changes)#5942

Merged
piggggggggy merged 1 commit intomasterfrom
hotfix-gnb-toolset-menu
Jun 17, 2025
Merged

fix(top-bar): resolve menu display issue (missing store changes)#5942
piggggggggy merged 1 commit intomasterfrom
hotfix-gnb-toolset-menu

Conversation

@piggggggggy
Copy link
Copy Markdown
Member

Skip Review (optional)

  • Minor changes that don't affect the functionality (e.g. style, chore, ci, test, docs)
  • Previously reviewed in feature branch, further review is not mandatory
  • Self-merge allowed for solo developers or urgent changes

Description (optional)

SSIA

Things to Talk About (optional)

Signed-off-by: samuel.park <samuel.park@megazone.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Jun 17, 2025

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

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
console ⬜️ Ignored (Inspect) Jun 17, 2025 7:30am
web-storybook ⬜️ Ignored (Inspect) Jun 17, 2025 7:30am

@github-actions
Copy link
Copy Markdown
Contributor

🎉 @yuda110 has been randomly selected as the reviewer! Please review. 🙏

@github-actions github-actions bot requested a review from yuda110 June 17, 2025 07:31
@github-actions
Copy link
Copy Markdown
Contributor

✅ There are no commits in this PR that require review.

@piggggggggy piggggggggy requested review from Copilot and removed request for yuda110 June 17, 2025 07:49
@piggggggggy piggggggggy added the self_approved/review Pull Request has been reviewed and approved by the author without requiring additional reviewers. label Jun 17, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR replaces user store-based permission checks with authorization store-based ones to resolve issues with menu display.

  • Replace userStore with useAuthorizationStore in multiple components.
  • Update the menu parameter type in TopBar.vue.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
apps/web/src/common/modules/portals/TopNotification.vue Updated computed property for permissions using authorizationStore.
apps/web/src/common/modules/navigations/top-bar/modules/top-bar-toolset/modules/top-bar-notifications/TopBarNotifications.vue Replaced userStore with authorizationStore for isNoRoleUser flag.
apps/web/src/common/modules/navigations/top-bar/modules/top-bar-toolset/modules/top-bar-notice/TopBarNotice.vue Replaced userStore with authorizationStore for isNoRoleUser flag.
apps/web/src/common/modules/navigations/top-bar/modules/top-bar-toolset/modules/top-bar-integration/TopBarIntegration.vue Switched to authorizationStore from userStore for role permissions.
apps/web/src/common/modules/navigations/top-bar/TopBar.vue Changed to authorizationStore and updated the handleOpenMenu parameter type from MenuId to string.
Comments suppressed due to low confidence (2)

apps/web/src/common/modules/navigations/top-bar/TopBar.vue:20

  • There is a typo in the variable name 'athorizationStore'; please rename it to 'authorizationStore' for consistency.
const athorizationStore = useAuthorizationStore();

apps/web/src/common/modules/navigations/top-bar/TopBar.vue:39

  • Changing the parameter type from MenuId to string might reduce the type safety of the menu identifier; if MenuId was previously enforcing specific values, consider retaining its use or documenting the change.
const handleOpenMenu = (menuId: string) => {

Copy link
Copy Markdown
Member

@yuda110 yuda110 left a comment

Choose a reason for hiding this comment

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

Thanks...

@piggggggggy piggggggggy merged commit 28a5684 into master Jun 17, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pass/signedoff self_approved/review Pull Request has been reviewed and approved by the author without requiring additional reviewers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants