-
Notifications
You must be signed in to change notification settings - Fork 43
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
🐛 Assessment settings table columns empty #1391
🐛 Assessment settings table columns empty #1391
Conversation
e9ef638
to
d567a24
Compare
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1391 +/- ##
=======================================
Coverage 41.31% 41.31%
=======================================
Files 138 138
Lines 4330 4330
Branches 1035 1035
=======================================
Hits 1789 1789
Misses 2453 2453
Partials 88 88
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I just have a few suggestions.
client/src/app/pages/assessment-management/assessment-settings/assessment-settings-page.tsx
Outdated
Show resolved
Hide resolved
client/src/app/pages/assessment-management/assessment-settings/assessment-settings-page.tsx
Outdated
Show resolved
Hide resolved
client/src/app/pages/assessment-management/assessment-settings/assessment-settings-page.tsx
Outdated
Show resolved
Hide resolved
> | ||
{questionnaire.dateImported} | ||
{formattedDate} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another good candidate for a helper component.
598438b
to
8ae3892
Compare
Signed-off-by: ibolton336 <ibolton@redhat.com>
096fa6f
to
65eeaeb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes https://issues.redhat.com/browse/MTA-1317
This pull request addresses the issue of empty columns in the Assessment settings table by making the following changes:
Updated Models: Modified the Questionnaire model in client/src/app/api/models.ts to include the createTime field, which is now used for the "Date imported" column in the Assessment settings table.
Date Formatting: Utilized the dayjs library to format the date from the createTime field into a human-readable format ("YYYY-MM-DD HH:mm:ss") for display in the table.
Thresholds Display: Modified the rendering of thresholds in the "Rating" column to display each color and its percentage.
These changes should resolve the issue of empty columns and ensure that the table displays the relevant data correctly.