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>
This commit is contained in:
Heikki Hellgren
2024-05-14 09:55:07 +03:00
parent ef5cb5abf2
commit e49a8106ad
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-notifications': patch
---
Show all notifications by default to match the sidebar item status
@@ -71,7 +71,7 @@ export const NotificationsPage = (props?: NotificationsPageProps) => {
const [pageNumber, setPageNumber] = React.useState(0);
const [pageSize, setPageSize] = React.useState(5);
const [containsText, setContainsText] = React.useState<string>();
const [createdAfter, setCreatedAfter] = React.useState<string>('lastWeek');
const [createdAfter, setCreatedAfter] = React.useState<string>('all');
const [sorting, setSorting] = React.useState<SortBy>(
SortByOptions.newest.sortBy,
);