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 display name in heading of catalog tab #1074

Merged
merged 31 commits into from
Oct 31, 2023
Merged

Conversation

katrinan029
Copy link
Contributor

@katrinan029 katrinan029 commented Oct 27, 2023

Description

The “Catalog” tab needs to have an appropriate heading displayed in the tab’s contents.

JIRA Ticket

Solution

Render the displayName from the policy display_name field.

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

@katrinan029 katrinan029 changed the base branch from master to knguyen2/ENT-7594 October 27, 2023 21:58
@katrinan029 katrinan029 marked this pull request as ready for review October 27, 2023 21:59
@katrinan029 katrinan029 changed the base branch from knguyen2/ENT-7594 to knguyen/ENT-7594 October 27, 2023 22:00

return (
<section>
<FormattedMessage
id="catalogs.enterpriseCatalogs.header"
defaultMessage="Budget associated catalog"
defaultMessage={subsidyAccessPolicy?.displayName || 'Overview'}
Copy link
Member

Choose a reason for hiding this comment

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

nit: could likely remove the ? from subsidyAccessPolicy?.displayName given we can assume the subsidyAccessPolicy exists if this component is rendered (similar to line 16 above).

Base automatically changed from knguyen/ENT-7594 to master October 30, 2023 19:34
@codecov
Copy link

codecov bot commented Oct 30, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5d2a736) 84.11% compared to head (5447599) 84.11%.

❗ Current head 5447599 differs from pull request most recent head 7be9007. Consider uploading reports for the commit 7be9007 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1074   +/-   ##
=======================================
  Coverage   84.11%   84.11%           
=======================================
  Files         454      454           
  Lines        9562     9563    +1     
  Branches     1993     1994    +1     
=======================================
+ Hits         8043     8044    +1     
  Misses       1476     1476           
  Partials       43       43           
Files Coverage Δ
...learner-credit-management/search/CatalogSearch.jsx 100.00% <100.00%> (ø)

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

@katrinan029 katrinan029 merged commit ff9bba7 into master Oct 31, 2023
4 checks passed
@katrinan029 katrinan029 deleted the knguyen2/ENT-7592 branch October 31, 2023 15:23
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