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

feat: add "Refresh" CTA to the "Assigned" table; remove "Product" column from "Spent" table #1077

Merged
merged 4 commits into from
Oct 31, 2023

Conversation

adamstankiewicz
Copy link
Member

@adamstankiewicz adamstankiewicz commented Oct 30, 2023

Description

ENT-7902

  • Adds "Refresh" CTA interaction to the "Assigned" table. Refreshes whatever the current table is displaying.
  • Removes the existing "Product" column from the "Spent" table (confirmed with UX).
refresh_assigned_table_demo.mov

For all changes

  • Ensure adequate tests are in place (or reviewed existing tests cover changes)

Only if submitting a visual change

  • Ensure to attach screenshots
  • Ensure to have UX team confirm screenshots

@adamstankiewicz adamstankiewicz changed the title feat: add assigned table refresh CTA feat: add "Refresh" CTA to the "Assigned" table; remove "Product" column from "Spent" table Oct 30, 2023
Comment on lines -403 to -413
const getCourseProductLineText = (courseProductLine) => {
let courseProductLineText = '';
courseProductLineText = courseProductLine === 'OCM' ? 'Open Courses' : courseProductLine;
return courseProductLineText;
};

const getCourseProductLineAbbreviation = (courseProductLine) => {
let courseProductLineText = '';
courseProductLineText = courseProductLine === 'Open Courses Marketplace' ? 'OCM' : 'Executive Education';
return courseProductLineText;
};
Copy link
Member Author

Choose a reason for hiding this comment

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

No longer used.

Comment on lines -38 to +40
Cell: ({ row }) => `-${formatPrice(row.original.contentQuantity / 100, { maximumFractionDigits: 0 })}`,
accessor: 'amount',
Cell: ({ row }) => `-${formatPrice(row.original.contentQuantity / 100)}`,
Copy link
Member Author

Choose a reason for hiding this comment

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

No change. maximumFractionDigits: 0 is now the default in formatPrice.

Copy link

codecov bot commented Oct 31, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5d2a736) 84.11% compared to head (239dcd0) 84.14%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1077      +/-   ##
==========================================
+ Coverage   84.11%   84.14%   +0.02%     
==========================================
  Files         454      455       +1     
  Lines        9562     9560       -2     
  Branches     1993     1992       -1     
==========================================
+ Hits         8043     8044       +1     
+ Misses       1476     1474       -2     
+ Partials       43       42       -1     
Files Coverage Δ
...redit-management/AssignmentsTableRefreshAction.jsx 100.00% <100.00%> (ø)
...arner-credit-management/BudgetAssignmentsTable.jsx 100.00% <100.00%> (ø)
...credit-management/LearnerCreditAllocationTable.jsx 100.00% <100.00%> (ø)
...learner-credit-management/search/CatalogSearch.jsx 100.00% <100.00%> (ø)
...-credit-management/search/CatalogSearchResults.jsx 94.73% <ø> (ø)
src/utils.js 85.13% <ø> (+1.16%) ⬆️

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

@adamstankiewicz adamstankiewicz merged commit 3aa2e64 into master Oct 31, 2023
6 checks passed
@adamstankiewicz adamstankiewicz deleted the ags/ent-7902 branch October 31, 2023 19:40
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