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: add notification center #416

Merged
merged 37 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
440150c
feat: testing a disabled state to validate notifications project requ…
tibuurcio Sep 12, 2024
80d7fa9
chore(release): 1.31.0-nav-disabled-interactions-poc.1 [skip ci]
mparticle-automation Sep 12, 2024
7b0dd79
chore: attempt of including Drawer inside of GlobalNav
tibuurcio Sep 12, 2024
a829029
chore(release): 1.31.0-nav-disabled-interactions-poc.2 [skip ci]
mparticle-automation Sep 12, 2024
c61d502
chore: updates
Sep 13, 2024
8921b80
chore(release): 1.31.0-nav-disabled-interactions-poc.3 [skip ci]
mparticle-automation Sep 13, 2024
d894c72
chore: remove expandIcon & hrefOptions from the DOM
Sep 13, 2024
1e179fa
fix: avoid nested anchor when child is button
Sep 13, 2024
88ec1b3
chore: remove useMemo
Sep 13, 2024
1db0fa2
Merge branch 'feat/nav-disabled-interactions-poc' of https://github.c…
Sep 13, 2024
9d5239a
chore(release): 1.31.0-nav-disabled-interactions-poc.4 [skip ci]
mparticle-automation Sep 13, 2024
cac24c8
chore: use Popover instead of Drawer
Sep 13, 2024
c8acb0b
Merge branch 'feat/nav-disabled-interactions-poc' of https://github.c…
Sep 13, 2024
c7cbc05
chore(release): 1.31.0-nav-disabled-interactions-poc.5 [skip ci]
mparticle-automation Sep 13, 2024
73c25a5
chore: vertical scroll
Sep 16, 2024
841acb5
Merge branch 'feat/nav-disabled-interactions-poc' of https://github.c…
Sep 16, 2024
e20358f
chore(release): 1.31.0-nav-disabled-interactions-poc.6 [skip ci]
mparticle-automation Sep 16, 2024
601d32b
chore: clean up
Sep 16, 2024
f1a361f
Merge branch 'feat/nav-disabled-interactions-poc' of https://github.c…
Sep 16, 2024
cfc8657
chore(release): 1.31.0-nav-disabled-interactions-poc.7 [skip ci]
mparticle-automation Sep 16, 2024
4703322
fix: add Drawer component back
Sep 16, 2024
3880146
Merge branch 'feat/nav-disabled-interactions-poc' of https://github.c…
Sep 16, 2024
2edf1b5
chore(release): 1.31.0-nav-disabled-interactions-poc.8 [skip ci]
mparticle-automation Sep 16, 2024
78c9bf2
Merge branch 'main' into feat/nav-disabled-interactions-poc
Sep 16, 2024
b3df901
Merge branch 'feat/nav-disabled-interactions-poc' of https://github.c…
Sep 16, 2024
286ac26
fix: version
Sep 16, 2024
33410f4
chore: remove disableInteractions
Sep 16, 2024
0dc2788
chore: updates
Sep 16, 2024
70b5720
chore: update navigation icon
Sep 16, 2024
639373a
fix: use --nav-width
Sep 16, 2024
ffe9f25
fix: typo
Sep 16, 2024
da5abc7
chore: rename notification center component
Sep 16, 2024
f9bf620
chore: updates
Sep 16, 2024
3e0701c
revert: package-lock.json
Sep 16, 2024
b13f095
fix: story freeze
Sep 17, 2024
736aaa2
chore: move stories to global nav
Sep 17, 2024
5c044cd
Merge branch 'main' into feat/nav-disabled-interactions-poc
Sep 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
# [1.31.0-nav-disabled-interactions-poc.8](https://github.com/mParticle/aquarium/compare/v1.31.0-nav-disabled-interactions-poc.7...v1.31.0-nav-disabled-interactions-poc.8) (2024-09-16)

### Bug Fixes

- add Drawer component back ([4703322](https://github.com/mParticle/aquarium/commit/4703322b2cd0d836b0e2e63a7b7661f85ff32533))

# [1.31.0-nav-disabled-interactions-poc.7](https://github.com/mParticle/aquarium/compare/v1.31.0-nav-disabled-interactions-poc.6...v1.31.0-nav-disabled-interactions-poc.7) (2024-09-16)

# [1.31.0-nav-disabled-interactions-poc.6](https://github.com/mParticle/aquarium/compare/v1.31.0-nav-disabled-interactions-poc.5...v1.31.0-nav-disabled-interactions-poc.6) (2024-09-16)

# [1.31.0-nav-disabled-interactions-poc.5](https://github.com/mParticle/aquarium/compare/v1.31.0-nav-disabled-interactions-poc.4...v1.31.0-nav-disabled-interactions-poc.5) (2024-09-13)

# [1.31.0-nav-disabled-interactions-poc.4](https://github.com/mParticle/aquarium/compare/v1.31.0-nav-disabled-interactions-poc.3...v1.31.0-nav-disabled-interactions-poc.4) (2024-09-13)

### Bug Fixes

- avoid nested anchor when child is button ([1e179fa](https://github.com/mParticle/aquarium/commit/1e179fad102726029691f12582f5d7e0a4beed16))

# [1.31.0-nav-disabled-interactions-poc.3](https://github.com/mParticle/aquarium/compare/v1.31.0-nav-disabled-interactions-poc.2...v1.31.0-nav-disabled-interactions-poc.3) (2024-09-13)

# [1.31.0-nav-disabled-interactions-poc.2](https://github.com/mParticle/aquarium/compare/v1.31.0-nav-disabled-interactions-poc.1...v1.31.0-nav-disabled-interactions-poc.2) (2024-09-12)

# [1.31.0-nav-disabled-interactions-poc.1](https://github.com/mParticle/aquarium/compare/v1.30.3...v1.31.0-nav-disabled-interactions-poc.1) (2024-09-12)

### Bug Fixes

- add more icon ([#403](https://github.com/mParticle/aquarium/issues/403)) ([3abc3b7](https://github.com/mParticle/aquarium/commit/3abc3b71916ab5a7db3c4f93e06ad2bd5845e1bf))

### Features

- testing a disabled state to validate notifications project requirements ([440150c](https://github.com/mParticle/aquarium/commit/440150c3458d88873a058ad2755f73f59ca45e4b))

## [1.30.3](https://github.com/mParticle/aquarium/compare/v1.30.2...v1.30.3) (2024-09-10)

### Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json
danielsiemens marked this conversation as resolved.
Show resolved Hide resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions src/components/navigation/GlobalNavigation/GlobalNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ import {
import { NavigationItem } from 'src/components/navigation/GlobalNavigation/NavigationItem'
import { useNewExperienceReminder } from 'src/hooks/NewExperienceReminder/useNewExperienceReminder'
import { HomeButton } from 'src/components/navigation/GlobalNavigation/HomeButton'
import {
NotificationCenter,
type INotificationCenterProps,
} from 'src/components/navigation/GlobalNavigation/NotificationCenter'

export interface NotificationActions {
onClose?: () => void
onPreferencesClick?: () => void
}

export interface IGlobalNavigationProps {
logo: IGlobalNavigationLogo
Expand All @@ -46,6 +55,7 @@ export interface IGlobalNavigationProps {
* This will be removed once all the apps updated.
*/
minimapOptions?: ISuiteSelectorOptions
notificationCenter?: INotificationCenterProps
}

export const GlobalNavWidth = 90 as const
Expand All @@ -69,6 +79,12 @@ export const GlobalNavigation = ({ showSuiteLogo = true, ...props }: IGlobalNavi
<NavigationList items={props.tools} />
</div>
<div>
{props.notificationCenter && (
<NotificationCenter
options={props.notificationCenter.options}
actions={props.notificationCenter.actions}
/>
)}
<NavigationList items={props.management} />
{props.orgs ? (
<WorkspaceSelector
Expand Down
Loading
Loading