Commit Graph

73 Commits

Author SHA1 Message Date
Patrik Oldsberg fc15b77b46 notifications: refactor backend routes to avoid using root route
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-12-10 00:43:57 +01:00
Fredrik Adelöw 22c4ecc6c7 Merge pull request #27571 from mareklibra/FLPATH-1837.clarify.ViewFilter
feat(notifications): rephrase labels of the View filter
2024-11-19 10:24:30 +01:00
Fredrik Adelöw bc33ee6d8e Merge pull request #27567 from mareklibra/FLPATH-1843.menuItem.show.unreadCount
feat(notifications): show count of unread notifications in the left-side MenuItem
2024-11-19 10:24:03 +01:00
Ben Lambert 4af8fb0ce8 Merge pull request #27569 from mareklibra/FLPATH-1840.emphasizeNotificationTitle
feat(notifications): emphasize notification's title
2024-11-15 16:33:14 -07:00
Johan Haals 0adaafc350 Merge pull request #27568 from mareklibra/FLPATH-1841.showTotalInTitle
feat(notifications): add title to the Notifications' table
2024-11-13 09:33:26 +01:00
Marek Libra 3e135f28ef feat(notifications): emphasize notification's title
Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-11-13 09:18:26 +01:00
Marek Libra 418610597a feat(notifications): add title to the Notifications' table
Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-11-13 08:39:15 +01:00
Marek Libra 87ffc1c566 feat(notifications): rephrase labels of the View filter
Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-11-10 14:10:09 +01:00
Marek Libra 3a0731e409 fix(notifications): rename "Created after" to "Sent out"
Based on received users' feedback, the purpose of the field seems to be
more clear this way.

Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-11-10 11:28:46 +01:00
Marek Libra 1d87c431f8 feat(notifications): show count of unread notifications in the left-side MenuItem
Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-11-09 18:39:32 +01:00
Heikki Hellgren 97ba58fa17 feat: add user specific notification settings
The settings can be customized for each origin and each processor
individually. The default Web indicates notifications shown in the
Backstage UI. By default, if there are no settings saved in the
database, all notifications are enabled for all processors.

The origins will populate by time for each user as they receive the
first notification from that origin. Processors are shown as their own
columns.

Later, if it makes sense, allow users to also disable/enable
notifications based on notification topic.

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-10-18 10:38:36 +03:00
Fredrik Adelöw 5532438535 Merge pull request #26237 from mareklibra/FLPATH-1612.minSeverity
fix: change severity filter label to "Min severity"
2024-09-10 11:28:13 +02:00
David Weber 4a53dd0384 fix: implement icon in backend and show icon in table if available
Signed-off-by: David Weber <david.weber@w3tec.ch>
Signed-off-by: David Weber <david.weber.schenker@gmail.com>
2024-09-03 17:24:30 +02:00
Marek Libra 653f60b8fe fix: change severity filter label to "Min severity"
Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-08-27 13:10:05 +02:00
Marek Libra b58e452caf Mark broadcast notifications in the list
Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-08-15 09:59:48 +02:00
Heikki Hellgren 80b84f77e5 fix: notification reload on navigation
this fixes issue when notifications are always reloaded when navigating
in the portal.

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-08-08 14:41:15 +03:00
Fredrik Adelöw c718c157c4 Merge pull request #24557 from drodil/notification_mark_read2
feat: allow setting notification read also from web notifications
2024-08-07 13:31:17 +02:00
Camila Belo b82aff92aa refactor(test-utils): deprecate the isDockerDisabledForTests function
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-07-10 17:06:00 +02:00
Camila Belo 95a3a0b91c refactor(test-utils): rename setupRequestMockHandlers to setupMswHandler
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-07-10 15:45:49 +02:00
Marek Libra 3bf0697eb8 Hide NotificationsPage toolbar for empty list
Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-06-20 10:23:18 +02:00
Heikki Hellgren aa2d3e302a feat: make default functionality to mark notification read when opening link
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-05-30 21:15:15 +03:00
Heikki Hellgren a880e941aa fix: change notification hooks to internal
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-05-30 15:45:42 +03:00
Heikki Hellgren 0410fc9ce6 feat: allow setting notification read from web/snackbar
when opening link from snackbar or web notification, the notification
can be automatically set as read like in the notifications page

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-05-30 15:45:42 +03:00
Marek Libra 6d196b4506 fix: Avoid infinite loop in the NotificationsSidebarItem title counter
Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-05-23 11:26:40 +02:00
Heikki Hellgren 7f0268486a fix: do not show scrollbars in notification description if not needed
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-05-15 08:47:57 +03:00
Heikki Hellgren e49a8106ad fix: show all notifications by default in notifications page
to prevent confusion with sidebar item showing that you have new
notifications but the table not showing any because the default filter
is for last week only

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-05-14 09:55:14 +03:00
Heikki Hellgren 42eaf63a75 feat: increase default and allow changing snackbar auto hide duration
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-05-03 12:49:24 +03:00
Heikki Hellgren f6633ca8d2 feat: allow setting notification as read automatically when opening link
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-04-26 08:06:15 +03:00
Marek Libra f730c0b54f feat(notifications): added Mark All Read bulk action
The user can newly mark all unread messages as read at one click.

Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-04-24 12:20:02 +02:00
Marek Libra bd900b7e0e Merge pull request #24412 from drodil/notifications_snackbar
feat: allow showing notifications as snackbars in the UI
2024-04-24 10:24:32 +02:00
Marek Libra 137cee2198 Merge pull request #24477 from mareklibra/skipEmptyDescription
patch(notifications): skip rendering empty descriptions
2024-04-23 14:59:29 +02:00
Marek Libra a42a19b087 patch(notifications): skip rendering empty descriptions
Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-04-23 14:45:40 +02:00
Heikki Hellgren 64e089e5b3 fix: review comments on snackbar handling
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-04-23 15:42:33 +03:00
Heikki Hellgren bfcb2f1281 feat: allow showing notifications as snackbars in the UI
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-04-23 15:41:51 +03:00
Marek Libra 41d5c56e18 Merge pull request #24414 from drodil/fix_notification_title
fix: infinite loop in notification title counter
2024-04-23 14:34:54 +02:00
Heikki Hellgren e1c7d6e4b7 fix: infinite loop in notification title counter
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-04-23 14:51:08 +03:00
Heikki Hellgren 1bc3b86858 fix: web notifications to show in foreground + duplicates prevented
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-04-23 14:48:34 +03:00
Marek Libra 4bfb02ed70 Merge pull request #24450 from drodil/notifications_page_props
feat: allow overriding notifications page properties
2024-04-23 13:39:38 +02:00
Marek Libra 0f2d377de6 Merge pull request #24381 from mareklibra/fix.long.descriptions
fix(notifications): limit size of notfcation on NotificationsPage
2024-04-23 13:39:01 +02:00
Heikki Hellgren e6bf85f0cf feat: allow overriding notifications page properties
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-04-22 18:23:36 +03:00
Marek Libra fcda449a9c fix(notifications): limit size of notfcation on NotificationsPage
The grid item size is limited so notifications with very long
descriptions do not occupy all the space.

Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-04-19 12:18:48 +02:00
drodil 42171594db Update plugins/notifications/src/components/NotificationsSideBarItem/NotificationsSideBarItem.tsx
Co-authored-by: Marek Libra <marek.libra@gmail.com>
Signed-off-by: drodil <heiccih@gmail.com>
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-04-18 14:38:10 +03:00
Heikki Hellgren f793112df9 feat: allow defining custom class name + other props for notifications sidebar item
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-04-18 14:32:23 +03:00
Patrik Oldsberg d1d4ddccab Merge pull request #23537 from mareklibra/FLPATH-1005.severity.followUp
chore: use colors from theme for notification's severity
2024-04-14 17:59:22 +02:00
Marek Libra 376d5ef797 chore: use colors from theme for notification's severity
Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-04-02 10:34:29 +02:00
Marek Libra ec40998df3 feat: add bulk actions to the Notifications page
Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-03-21 12:11:12 +01:00
Aditya Kumar 6a2fe4b657 Add ESLint Rule to Notifications Plugin
Signed-off-by: Aditya Kumar <aditya.kumar60@infosys.com>
2024-03-21 11:27:07 +05:30
Tomasz Szuba e8f026a300 Use esm exports from react-use library
Signed-off-by: Tomasz Szuba <tszuba@box.com>
2024-03-19 19:53:04 +00:00
Marek Libra cd96173afb fix: use camelCase for createdAfter in the Notifications URL
Instead of the former created_after.

Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-03-14 13:13:24 +01:00
Marek Libra bf90f64641 fix: use orderField instead of sort,sortOrder for notifications
To unify with the Catalog API.

Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-03-14 13:04:46 +01:00