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

src/apps refactors batch #3773

Merged
merged 2 commits into from
Jun 27, 2023
Merged

src/apps refactors batch #3773

merged 2 commits into from
Jun 27, 2023

Conversation

lkostrowski
Copy link
Member

@lkostrowski lkostrowski commented Jun 20, 2023

closes #...

This PR introduces few refactors, briefly:

  1. Update naming
  2. Rename marketplace -> appstore (no all, some)
  3. Remove some default exports
  4. Cleanup views/routing of this module

There will be more PRs like this, the goal to is to make this part of the codebase more maintainable

This PR is pure refactor, there should be no functional changes introduced

Screenshots

Pull Request Checklist

  1. This code contains UI changes
  2. All visible strings are translated with proper context including data-formatting
  3. Attributes data-test-id are added for new elements
  4. The changes are tested in Chrome/Firefox/Safari browsers and in light/dark mode
  5. Your code works with the latest stable version of the core

Test environment config

API_URI=https://automation-dashboard.staging.saleor.cloud/graphql/
APPS_MARKETPLACE_API_URI=https://apps.staging.saleor.io/api/v2/saleor-apps

Do you want to run more stable tests?

To run all tests, just select the stable checkbox. To speed up tests, increase the number of containers. Tests will be re-run only when the "run e2e" label is added.

  1. stable
  2. giftCard
  3. category
  4. collection
  5. attribute
  6. productType
  7. shipping
  8. customer
  9. permissions
  10. menuNavigation
  11. pages
  12. sales
  13. vouchers
  14. homePage
  15. login
  16. orders
  17. products
  18. app
  19. plugins
  20. translations
  21. navigation
  22. variants
  23. payments

CONTAINERS=1

@lkostrowski lkostrowski requested review from a team, krzysztofzuraw and poulch June 20, 2023 10:07
@github-actions github-actions bot temporarily deployed to refactors-app June 20, 2023 10:08 Inactive
@github-actions github-actions bot temporarily deployed to storybook refactors-app June 20, 2023 10:08 Inactive
@lkostrowski lkostrowski requested review from a team and wojteknowacki June 20, 2023 10:08
@lkostrowski lkostrowski self-assigned this Jun 20, 2023
Copy link
Member

@krzysztofwolski krzysztofwolski left a comment

Choose a reason for hiding this comment

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

LGTM

Remove default exports in apps/views

Rename apps/views components, ensure they have similar convention

Refactor apps indexes files

Rename marketplace mentions to appstore

Rename useMarketplaceApps to useAppstoreApps

Rename some marketplace mentions to appstore

fix test
@changeset-bot
Copy link

changeset-bot bot commented Jun 27, 2023

🦋 Changeset detected

Latest commit: d890bfe

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
saleor-dashboard Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot temporarily deployed to refactors-app June 27, 2023 06:28 Inactive
@github-actions github-actions bot temporarily deployed to storybook refactors-app June 27, 2023 06:28 Inactive
@lkostrowski lkostrowski enabled auto-merge (squash) June 27, 2023 07:07
@lkostrowski lkostrowski merged commit 58a3c26 into main Jun 27, 2023
@lkostrowski lkostrowski deleted the refactors-app branch June 27, 2023 07:29
poulch pushed a commit that referenced this pull request Jun 27, 2023
* Add refactors to apps folder

Remove default exports in apps/views

Rename apps/views components, ensure they have similar convention

Refactor apps indexes files

Rename marketplace mentions to appstore

Rename useMarketplaceApps to useAppstoreApps

Rename some marketplace mentions to appstore

fix test

* Add changeset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

4 participants