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

fix: SonarQube warnings/error #145

Merged
merged 6 commits into from
Jul 11, 2022
Merged

fix: SonarQube warnings/error #145

merged 6 commits into from
Jul 11, 2022

Conversation

eduardoformiga
Copy link
Member

@eduardoformiga eduardoformiga commented Jul 11, 2022

What's the purpose of this pull request?

ported from vtex-sites/nextjs.store#127

image

But also fixes:

Screen Shot 2022-07-11 at 16 08 44

Screen Shot 2022-07-11 at 16 08 01

Checklist

You may erase this after checking them all ;)

Changelog

  • Added an entry in the CHANGELOG.md at the beginning of its due section. The latest version should comes first.
  • Added the PR number with the PR link at the entry in the CHANGELOG.md. E.g., New items in the pull_request_template.md (#12)

PR Description

  • Added a label according to the PR goal - Breaking change, Enhancement, Bug or Chore.
  • Added the component, hook, or pathname in-between backticks (``) - If applicable. E.g., ComponentName component.
  • Identified the function or parameter in the PR - If applicable. E.g., useWindowDimensions hook.

Documentation

  • PR description
  • Added to/Updated the Storybook - if applicable.
  • For documentation changes, ping @ carolinamenezes, @ PedroAntunesCosta or @ Mariana-Caetano to review and update.

@eduardoformiga eduardoformiga added the Chore General tasks. label Jul 11, 2022
@vercel
Copy link

vercel bot commented Jul 11, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
gatsby-store-storybook ✅ Ready (Inspect) Visit Preview Jul 11, 2022 at 9:51PM (UTC)

@eduardoformiga eduardoformiga requested a review from tlgimenes July 11, 2022 18:33
@eduardoformiga eduardoformiga marked this pull request as ready for review July 11, 2022 18:35
@vtex-sites
Copy link

vtex-sites bot commented Jul 11, 2022

Preview is ready

This pull request generated a Preview

👀   Preview: https://sfj-7a99d4f--gatsby.preview.vtex.app
🔬   Go deeper by inspecting the Build Logs
📝   based on commit 7a99d4f

@vtex-sites
Copy link

vtex-sites bot commented Jul 11, 2022

Lighthouse Reports

Here are the Lighthouse reports of this Pull Request

📝 Based on commit 7a99d4f

Lighthouse Report by page
📎   /
📎   /apple-magic-mouse/p
📎   /office

@eduardoformiga eduardoformiga changed the title fix: Sonarqube warning fix: Sonarqube Jul 11, 2022
@eduardoformiga eduardoformiga requested a review from a team July 11, 2022 19:20
@eduardoformiga eduardoformiga changed the title fix: Sonarqube fix: Sonarqube / Integration Tests Jul 11, 2022
@eduardoformiga eduardoformiga changed the title fix: Sonarqube / Integration Tests fix: SonarQube warnings/error Jul 11, 2022
Copy link
Contributor

@filipewl filipewl left a comment

Choose a reason for hiding this comment

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

Thanks for cleaning these warnings!
🧹

src/components/ui/Modal/Modal.tsx Show resolved Hide resolved
@eduardoformiga eduardoformiga merged commit 7a99d4f into main Jul 11, 2022
@eduardoformiga eduardoformiga deleted the fix/sonarqube-warning branch July 11, 2022 22:18
eduardoformiga added a commit that referenced this pull request Jul 12, 2022
* Feat: Adds tokens to `SlideOver` (#145)

* Uses CSS Modules on SlideOver component with themification

* Extracts FilterSliderComponent

* Extracts FilterSlider components and uses CSS Modules and tokens

* Adds CSS Modules to Accordion

* Adds Accordion theming tokens

* Adds Changelog Entry

* Moves styles to accordion component

* Creates Accordion stories

* Adds Accordion stories

* Adds tokens to facets

* Adds tokens to Filter Slider

* Creates Filter Stories

* Removes unused imports from Filter stories

* Adds Filter facet description

* Creates facets stories

* Removes unused import from facets stories

* Crestes FilterSlider stories

* Adds CHANGELOG entry

* Updates Filter related stories with PriceRange changes

* Updates Filter related components links on storybook

* Extracts Navbar related components and uses CSS Modules

* Updates README navbar example

* Adds tokens to navbar

* Adds tokens to navlinks

* Adds tokens to NavbarSlider

* Tweaks navbar module comments

* Adds CHANGELOG entry

* Tweaks tokens spaces

* Creates Navbar stories

* Creates NavbarSlider stories

* Creates NavLinks stories

* Updates navbar related components links

* Adds tokens to cart sidebar

* Adds CHANGELOG entry

* Adds tokens to cart sidebar

* Moves facets mock to own file

* Creates SlideOver stories

* Tweaks breakpoint tokens

* Removes height token

* Removes some tokens

* Updates SlideOver usage stories and props descriptions

* Tweaks bkg color token

Co-authored-by: Renata Motta <[email protected]>

* Removes full width token

* Uses Button with icon to show SlideOver and Navbar

* uses SectionList on SlideOver stories

* Update src/components/cart/CartSidebar/CartSidebar.tsx

Co-authored-by: Victor Hugo Miranda Pinto <[email protected]>

* Update src/components/ui/SlideOver/SlideOver.tsx

Co-authored-by: Victor Hugo Miranda Pinto <[email protected]>

Co-authored-by: Renata Motta <[email protected]>
Co-authored-by: Victor Hugo Miranda Pinto <[email protected]>

* Adds CHANGELOG entry

* Adds overlay css to global layout file

* Adds CHANGELOG entry

Co-authored-by: Renata Motta <[email protected]>
Co-authored-by: Victor Hugo Miranda Pinto <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Chore General tasks.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants