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: display retired badge on retired budgets #1163

Merged
merged 3 commits into from
Jan 24, 2024

Conversation

adamstankiewicz
Copy link
Member

@adamstankiewicz adamstankiewicz commented Jan 23, 2024

Description

Ticket: https://2u-internal.atlassian.net/browse/ENT-8303

Changes

  • Retired budgets have an info variant Badge on the budget cards in the overview page route and no date displayed. The CTA is using the outline-primary button variant.
image
  • Retired budgets have an info variant Badge on the budget detail page and no date displayed.
image
  • Retired budgets display last in the sort order.

image

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

<Badge variant={badgeVariant}>{ status }</Badge>
<span className="small">{term} { formatDate(date) }</span>
<Badge variant={badgeVariant}>{status}</Badge>
{(term && date) && (
Copy link
Member Author

Choose a reason for hiding this comment

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

Only render the term/date if present

@adamstankiewicz adamstankiewicz force-pushed the ags/retired-admin-budgets branch from cf79c5e to 276f384 Compare January 23, 2024 22:00
@adamstankiewicz adamstankiewicz marked this pull request as ready for review January 23, 2024 22:01
Copy link

codecov bot commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1e6ddd6) 85.39% compared to head (079aaa3) 85.41%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1163      +/-   ##
==========================================
+ Coverage   85.39%   85.41%   +0.02%     
==========================================
  Files         496      496              
  Lines       10712    10720       +8     
  Branches     2247     2253       +6     
==========================================
+ Hits         9148     9157       +9     
+ Misses       1522     1521       -1     
  Partials       42       42              

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

@adamstankiewicz adamstankiewicz merged commit f8e7304 into master Jan 24, 2024
5 checks passed
@adamstankiewicz adamstankiewicz deleted the ags/retired-admin-budgets branch January 24, 2024 13:18
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.

3 participants