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 career link to user dropdown #152

Merged
merged 2 commits into from
Jun 5, 2023

Conversation

krishatcher
Copy link
Contributor

@krishatcher krishatcher commented May 22, 2023

Add an item to the User Dropdown with the text "Career" and a "New" badge.

This link will only display if the User is NOT an Enterprise user and the CAREER_LINK_URL variable is populated.

2U Internal Ticket: CAMS-1
Screenshot 2023-05-22 at 4 23 06 PM
Screenshot 2023-05-22 at 4 22 56 PM

@codecov
Copy link

codecov bot commented May 22, 2023

Codecov Report

Patch coverage: 94.11% and project coverage change: -0.22 ⚠️

Comparison is base (4643e0b) 95.97% compared to head (23d11b1) 95.75%.

❗ Current head 23d11b1 differs from pull request most recent head ef9de4b. Consider uploading reports for the commit ef9de4b to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #152      +/-   ##
==========================================
- Coverage   95.97%   95.75%   -0.22%     
==========================================
  Files         170      165       -5     
  Lines        1489     1436      -53     
  Branches      274      255      -19     
==========================================
- Hits         1429     1375      -54     
- Misses         55       56       +1     
  Partials        5        5              
Impacted Files Coverage Δ
src/App.jsx 64.00% <ø> (ø)
...rc/containers/LearnerDashboardHeader/BrandLogo.jsx 100.00% <ø> (ø)
...rs/LearnerDashboardHeader/ExpandedHeader/index.jsx 100.00% <ø> (ø)
src/containers/LearnerDashboardHeader/messages.js 100.00% <ø> (ø)
...shboardHeader/CollapsedHeader/CollapseMenuBody.jsx 88.88% <66.66%> (ø)
src/config/index.js 100.00% <100.00%> (ø)
...s/LearnerDashboardHeader/CollapsedHeader/index.jsx 100.00% <100.00%> (ø)
...eader/ExpandedHeader/AuthenticatedUserDropdown.jsx 100.00% <100.00%> (ø)
src/containers/LearnerDashboardHeader/hooks.js 100.00% <100.00%> (ø)
src/containers/LearnerDashboardHeader/index.jsx 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

fix: addressing linter errors

chore: update tests snapshot

chore: add career link to user dropdown to header variant

chore: remove header and rename header variant to be header

chore: only enterprise user should see the link

chore: only non-enterprise student should see the item

feat: upgraded to node v18, added .nvmrc and updated workflows (#151)
@leangseu-edx leangseu-edx force-pushed the kh/add-career-link-to-user-dropdown branch from 23d11b1 to a86107e Compare June 5, 2023 15:48
@leangseu-edx leangseu-edx merged commit e43a49b into master Jun 5, 2023
@leangseu-edx leangseu-edx deleted the kh/add-career-link-to-user-dropdown branch June 5, 2023 15:50
@krishatcher krishatcher restored the kh/add-career-link-to-user-dropdown branch June 6, 2023 18:37
@krishatcher krishatcher deleted the kh/add-career-link-to-user-dropdown branch June 6, 2023 18:43
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