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

CARDS-2618: Replace Livetable with MaterialReactTable in administration screens #1868

Open
wants to merge 16 commits into
base: dev
Choose a base branch
from

Conversation

veronikaslc
Copy link
Contributor

@veronikaslc veronikaslc commented Jan 6, 2025

CARDS-2618: Replace Livetable with MaterialReactTable in administration screens

Affected Administration components:

  • Subject types
  • Clinics
  • Statistics
  • Questionnaires

Dataflow change:
On the Subject types page the newly created subjet type immediately appears in the table after successful creation

@marta- marta- requested a review from sashaandjic January 7, 2025 22:49
@marta- marta- added the Test me! Ready for testing label Jan 7, 2025
@marta-

This comment was marked as resolved.

Comment on lines +71 to +90
<Box sx={{ display: 'flex', flexWrap: 'nowrap', float: 'right'}}>
<EditButton
entryType={entryType}
entryPath={row.original["@path"]}
admin
/>
<ExportButton
entryPath={row.original["@path"]}
entryName={row.original.title}
entityData={row.original}
entryType={entryType}
size="medium"
/>
<DeleteButton
entryPath={row.original["@path"]}
entryName={row.original.title}
onComplete={dialogSuccess}
entryType={entryType}
admin
/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a way to generate the buttons in the AdminResourceListing component like we used to do with the LiveTable?

Copy link
Contributor Author

@veronikaslc veronikaslc Jan 8, 2025

Choose a reason for hiding this comment

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

I'd rather not. We have custom onClick, onComplete actions tailored to each component. Also we have just 2 places of makeActions now. For development convenience it is easier to see and change what each button do in the component for now. New Admin pages don't appear that often.

…on screens

Addressed codereview comments: better naming for props in use
…on screens

Addressed codereview comments: refactoring EditButton code
@veronikaslc

This comment was marked as resolved.

@veronikaslc

This comment was marked as resolved.

@marta-

This comment was marked as resolved.

…on screens

Addressed codereview comments: Custom filtering for Clinics page, exact match of names
…on screens

Addressed codereview comments: Better exact mach filtering for all tables except custom filtering
…on screens

Addressed codereview comments: Enabling sorting
…on screens

Addressed codereview comments: Diplay description as formatted text
@marta-

This comment was marked as resolved.

…on screens

Addressed codereview comments: Disable sorting for certain columns
@veronikaslc

This comment was marked as resolved.

veronikaslc and others added 4 commits January 8, 2025 22:22
…on screens

Addressed codereview comments: Better column names
…on screens

Addressed codereview comments: Added pattern column to the Subject types table
…on screens


Removed duplicated line

Co-authored-by: Marta Girdea <[email protected]>
…on screens

Addressed codereview comments: Fixed typo
veronikaslc and others added 3 commits January 8, 2025 22:44
…on screens


Better styling for table questionnaire description

Co-authored-by: Marta Girdea <[email protected]>
…on screens

Addressed codereview comments: Correct sorting in stat table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Test me! Ready for testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants