NMS-20124: point the notification bell at the new Notifications page - #8719
NMS-20124: point the notification bell at the new Notifications page#8719joseanesONMS wants to merge 1 commit into
Conversation
|
@marshallmassengill review requested — stacks on #8709 (only the top commit is new here). |
3cca45a to
00941d5
Compare
|
@marshallmassengill @synqotik — ready for review. Since the PR was opened:
Lint clean, UI suite green (2451 passed), backend module builds. Integration note: the CSV export ( |
|
@marshallmassengill @synqotik — dark-mode fix for the notification dialogs. PrimeVue's dialog chrome (panel/header/title) doesn't follow the dark tokens in this build, so the panel stayed white while the content and fields went dark — the earlier text-only fix then left light text on a white panel (no contrast). The notification dialog classes never land on the teleported Heads up: it's a deliberately broad |
There was a problem hiding this comment.
Do not check in this file! These are temporary files.
There was a problem hiding this comment.
Do not check in this file! These are temporary files.
| @@ -1,42 +1,43 @@ | |||
| <template> | |||
There was a problem hiding this comment.
Use OnmsDialog, OnmsTab, etc. here.
| <div class="general-tab"> | ||
| <div class="status-toggle"> | ||
| <OnmsToggleSwitch | ||
| <PToggleSwitch |
| </div> | ||
|
|
||
| <OnmsTable | ||
| <DataTable |
| const guarded = /^[=+\-@\t\r]/.test(value) ? `'${value}` : value | ||
| return `"${guarded.replaceAll('"', '""')}"` | ||
| } | ||
| const csv = [ |
There was a problem hiding this comment.
Use composables/useDownload here as much as possible.
| const headers = Object.keys(rows[0]) | ||
| const escapeHtml = (value: string) => | ||
| value.replaceAll('&', '&').replaceAll('<', '<').replaceAll('>', '>') | ||
| const html = `<!DOCTYPE html> |
There was a problem hiding this comment.
Is there a way to make this a separate Vue component vs. inline html? We should avoid big HTML strings.
| @@ -1,2 +1,2 @@ | |||
| <template> | |||
| <TableCard class="notification-queries-bar"> | |||
| </div> | ||
| <div class="query-forms"> | ||
| <div class="search-row"> | ||
| <IftaLabel> |
| <OnmsIconButton | ||
| variant="outlined" | ||
| :icon="Search" | ||
| <Button |
There was a problem hiding this comment.
Use OnmsButton or OnmsIconButton
| issue shared with the dashboard). The `.open-dark` theme class on <html> IS | ||
| reliable, and teleported dialogs live under <html> too — so key explicit | ||
| readable colours off it for the notification page and its dialogs/tabs. | ||
| --> |
There was a problem hiding this comment.
This should all be removed, don't want a bunch of custom CSS in individual files.
See if the dark mode issue goes away when you update to latest releaset-36.x or develop and use OnmsDialog, etc. If it doesn't then we should have a separate PR to fix that globally.
@joseanesONMS |
d859680 to
978f1c8
Compare
|
@synqotik addressed — rebased onto the current base so the whole diff is now just the bell's own work (the deep-link +
|
259b672 to
c59c2e9
Compare
438cbd5 to
84d6b4b
Compare
933ae39 to
60feb3a
Compare
|
@synqotik @marshallmassengill Ready for another look. Rebased onto the epic (now 36.0.3-SNAPSHOT on release-36.x); the notices container now also hosts the About-Notices dialog and Configure button that arrived with the shared epic changes. Build, lint and store tests are green locally; CI is running. |
Deep-link the top-bar notification bell to the notices page with a query preset so the outstanding/team views open directly, re-applying the preset when it changes without remounting. Carries the supporting notices store and service changes.
60feb3a to
4930198
Compare
|
@synqotik @marshallmassengill Updated and green on the latest epic. Temp files are gone and the container carries the About-Notices dialog + Configure button from the epic. The broader onms-ui wrapper suggestions (OnmsSearchInput/OnmsTabs/OnmsCard, inline-HTML extraction) are the routed-pages restructure, which lands as its own follow-up PR. combined-builds is passing. |
Tickets: NMS-20124 (epic NMS-20100).
Points the top-bar notification bell at the new Notifications page instead of the legacy JSPs, rebased onto the epic.