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

SIMSBIOHUB-659: Add Pagination to System Alerts on Admin Page #1459

Merged
merged 17 commits into from
Jan 15, 2025

Conversation

mauberti-bc
Copy link
Collaborator

Links to Jira Tickets

Description of Changes

  • Adds pagination for retrieving system alerts on the admin page

@mauberti-bc mauberti-bc added the Ready For Review PR is ready for review label Jan 13, 2025
Copy link

codecov bot commented Jan 13, 2025

Codecov Report

Attention: Patch coverage is 35.00000% with 39 lines in your changes missing coverage. Please review.

Project coverage is 46.07%. Comparing base (6ae74e0) to head (b21753d).
Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
app/src/features/admin/alert/AlertContainer.tsx 0.00% 16 Missing ⚠️
api/src/repositories/alert-repository.ts 39.13% 10 Missing and 4 partials ⚠️
app/src/features/admin/alert/table/AlertTable.tsx 0.00% 8 Missing ⚠️
app/src/hooks/api/useAlertApi.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1459      +/-   ##
==========================================
- Coverage   46.08%   46.07%   -0.02%     
==========================================
  Files         910      911       +1     
  Lines       23752    23792      +40     
  Branches     3500     3507       +7     
==========================================
+ Hits        10947    10963      +16     
- Misses      12189    12211      +22     
- Partials      616      618       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@NickPhura
Copy link
Collaborator

nit: the alerts table allows you to sort on the preview column and the status column, but I don't think either of those are setup to sort. Might be worth adding sortable: false to the datagrid column definitions for those two columns.

@mauberti-bc
Copy link
Collaborator Author

nit: the alerts table allows you to sort on the preview column and the status column, but I don't think either of those are setup to sort. Might be worth adding sortable: false to the datagrid column definitions for those two columns.

Fixed

@mauberti-bc mauberti-bc marked this pull request as ready for review January 14, 2025 19:51
@NickPhura
Copy link
Collaborator

Looks great, just had 1 last comment above the database-model type.

Copy link
Collaborator

@NickPhura NickPhura left a comment

Choose a reason for hiding this comment

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

🐐 🐑

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
4.9% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@NickPhura NickPhura merged commit ef532a3 into dev Jan 15, 2025
20 of 23 checks passed
@NickPhura NickPhura deleted the SIMSBIOHUB-659 branch January 15, 2025 18:03
NickPhura pushed a commit that referenced this pull request Jan 17, 2025
wip

wip: create location and date sections on form

wip: style subcount form

wip: adding measurements to subcounts

add dual autocomplete

subcount form

subcount table on create observation page

fix measurement search

show measurement options in subcount table on create observation page

wip: formik validation

add subcount sign placeholder to create request

wip: environments incorrectly formatted in handlesubmit

fix incorrect key

fix environments on create observations page

fix measurement interfaces

SIMSBIOHUB-659: Add Pagination to System Alerts on Admin Page (#1459)

Add Pagination to System Alerts on Admin Page

---------

Co-authored-by: Nick Phura <[email protected]>

Update CSV Error Import Dialog Styling (#1456)

- update csv import error dialog
- replace failure snackbar & add frontend pagination to csv import errors

BugFix: Fix Type for Capture Attachments (#1460)

- modifying critter index file

---------

Co-authored-by: Macgregor Aubertin-Young <[email protected]>
Co-authored-by: Macgregor Aubertin-Young <[email protected]>

BugFix: Method Attributes SQL (#1462)

- fix sql

Added DualAutocompleteUnitField.tsx to help reduce the size of the DualAutocompleteField.tsx.
Renamed some of the dual autocomplete field props, just to make them more consistent/predictable.
Fixed missing props in create/edit technique vantages (missing category data type prop).
Add formik snackbar error component to observation form.
Addressed a few react missing dependency warnings.

Update missed jsdoc comments.

Update missed jsdoc comments 2.

WIP: Add create observation sampling fields.

Working sampling fields.

Enhancements to sampling fields
NickPhura pushed a commit that referenced this pull request Jan 21, 2025
wip

wip: create location and date sections on form

wip: style subcount form

wip: adding measurements to subcounts

add dual autocomplete

subcount form

subcount table on create observation page

fix measurement search

show measurement options in subcount table on create observation page

wip: formik validation

add subcount sign placeholder to create request

wip: environments incorrectly formatted in handlesubmit

fix incorrect key

fix environments on create observations page

fix measurement interfaces

SIMSBIOHUB-659: Add Pagination to System Alerts on Admin Page (#1459)

Add Pagination to System Alerts on Admin Page

---------

Co-authored-by: Nick Phura <[email protected]>

Update CSV Error Import Dialog Styling (#1456)

- update csv import error dialog
- replace failure snackbar & add frontend pagination to csv import errors

BugFix: Fix Type for Capture Attachments (#1460)

- modifying critter index file

---------

Co-authored-by: Macgregor Aubertin-Young <[email protected]>
Co-authored-by: Macgregor Aubertin-Young <[email protected]>

BugFix: Method Attributes SQL (#1462)

- fix sql

Added DualAutocompleteUnitField.tsx to help reduce the size of the DualAutocompleteField.tsx.
Renamed some of the dual autocomplete field props, just to make them more consistent/predictable.
Fixed missing props in create/edit technique vantages (missing category data type prop).
Add formik snackbar error component to observation form.
Addressed a few react missing dependency warnings.

Update missed jsdoc comments.

Update missed jsdoc comments 2.

WIP: Add create observation sampling fields.

Working sampling fields.

Enhancements to sampling fields
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review PR is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants