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

🐛 Assessment settings table columns empty #1391

Merged
merged 4 commits into from
Sep 25, 2023

Conversation

ibolton336
Copy link
Member

@ibolton336 ibolton336 commented Sep 22, 2023

Closes https://issues.redhat.com/browse/MTA-1317
Screenshot 2023-09-22 at 1 25 39 PM

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.

@codecov
Copy link

codecov bot commented Sep 22, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (e893ec8) 41.31% compared to head (2336967) 41.31%.

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           
Flag Coverage Δ
client 41.31% <ø> (ø)
server ∅ <ø> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
client/src/app/api/models.ts 100.00% <ø> (ø)

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

Copy link
Member

@sjd78 sjd78 left a 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.

>
{questionnaire.dateImported}
{formattedDate}
Copy link
Member

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.

Signed-off-by: ibolton336 <ibolton@redhat.com>
Copy link
Member

@sjd78 sjd78 left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants