Bug-1948879: Add links to docs and source in the Banner#995
Bug-1948879: Add links to docs and source in the Banner#995moijes12 wants to merge 8 commits intomozilla:mainfrom
Conversation
✅ Deploy Preview for mozilla-perfcompare ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@kala-moz I did run npm run fix-all and the tests run locally. Is there anything I need to do to fix it? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #995 +/- ##
=======================================
Coverage 96.46% 96.47%
=======================================
Files 104 105 +1
Lines 3028 3034 +6
Branches 694 695 +1
=======================================
+ Hits 2921 2927 +6
Misses 106 106
Partials 1 1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@moijes12 as julien mentioned in the bug, we should wait for padenot to respond with what he expects to see how we should resolve the bug. |
|
@moijes12 Can we move this out of drafts? Paul has responded to the bug, saying he'll be fine with whatever the team chooses to do. For now, that's putting the link to the docs in the top banner. |
|
@kala-moz I am moving this back for review. However, as per discussion on the PerfCompare channel, Greg had asked us to remove the banner completely and place the docs button near the mode toggle button. |
|
@moijes12 I recommend making those changes to remove the banner and add docs under the toggle button to start and we can review the changes with all of that together. |
Added links to PerfCompare docs and GitHub source in the Banner.
Update snapshots
Fix snapshots.
Added a shared `NavBarLink` component for the below: - Docs - Contact - Source
|
@gmierz @kala-moz I am working on udpdating the main page. Below is a screenshot (this is being refined further)
Please feel free to provide your views on the screenshot so that I can make the changes accordingly ? Would you want me to use any particular text color etc. ? I will look into the code for more guidance on this. The Banner will eventually go away and I will make it optional so that it is displayed only if any message needs to be displayed. Thanks for the opportunity :) |
…the header Made the below changes to add new links to urls that were previously in Banner * Created a new NavBarLink component as a single reusable component for Links in the Header * Updated the PerfCompareHeader component to add a new Box with NavBarLinks - Docs, Source, File Bug, Matrix * Updated the Strings to contain the required strings for tooltip The Link font styles are kept identical to the Dark Mode switch label styles to ensure a consistent UX. The Link is also theme aware.
Made the below changes to remove the banner: * Updated the PerfCompareHeader to remove the Banner in the `<Alert />` component * Removed the `Banner` component * Updated the tests for `App.tsx` to check for all links and their correct tooltip
Updated the tests for rendering page by: * Made the test for checking heading more specific * Checked for entire Perfcompare tagline text
Executed linter and updated snapshots



Background
We have Bug-1948879 requesting links to the documentation for PerfCompare. Also, we need to remove the Banner in the PerfCompare page header.
Changes done in this PR
Fixes Bug-1948879