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: improved approval flow #1576

Closed
wants to merge 9 commits into from
Closed

Conversation

cazala
Copy link
Member

@cazala cazala commented Sep 21, 2021

No description provided.

* feat: use label for supply in rarity dropdown

* refactor: make modalSaga a generator

* refactor: decouple modal logic from item save saga

* feat: save published items

* fix: wrong this on lambda

* chore: configure tests

* chore: fix circular dep

* chore: added tests for saveItemRequest

* chore: added tests for savePublishedItemRequest

* chore: use call instead of matchers

* ci: commented out coveralls report

* ci: uncommented coveralls report
@vercel
Copy link

vercel bot commented Sep 21, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/decentraland/builder/BcnCdGYds62bBnmhLXEkVpdFKeKx
✅ Preview: https://builder-git-feat-improved-approval-flow-decentraland1.vercel.app

@coveralls
Copy link

coveralls commented Sep 21, 2021

Pull Request Test Coverage Report for Build 1321017561

  • 216 of 366 (59.02%) changed or added relevant lines in 38 files are covered.
  • 5 unchanged lines in 4 files lost coverage.
  • Overall coverage increased (+4.7%) to 10.063%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/components/Modals/index.ts 0 1 0.0%
src/modules/item/utils.ts 14 15 93.33%
src/components/CollectionDetailPage/CollectionAction/UnderReview/index.ts 0 2 0.0%
src/components/CollectionDetailPage/CollectionAction/index.ts 0 2 0.0%
src/components/CollectionProvider/CollectionProvider.container.ts 0 2 0.0%
src/components/CollectionStatus/index.ts 0 2 0.0%
src/components/ItemStatus/index.ts 0 2 0.0%
src/components/Modals/PushCollectionChangesModal/index.ts 0 2 0.0%
src/components/Modals/SellCollectionModal/SellCollectionModal.container.ts 0 2 0.0%
src/modules/committee/sagas.ts 0 2 0.0%
Files with Coverage Reduction New Missed Lines %
src/components/CollectionProvider/CollectionProvider.container.ts 1 0%
src/modules/common/store.ts 1 0%
src/modules/item/export.ts 1 46.48%
src/modules/modal/sagas.ts 2 0%
Totals Coverage Status
Change from base Build 1291647472: 4.7%
Covered Lines: 1069
Relevant Lines: 9267

💛 - Coveralls

cazala and others added 2 commits September 29, 2021 18:38
* chore: fix eslint typescript errors

* chore: import order

* feat: show status indicator for collections and items

* chore: rename file

* chore: added tests

* chore: remove thing

* chore: added another test

* fix: type

* refactor: use && instead of ternary

Co-authored-by: Fernando Zavalia <24811313+fzavalia@users.noreply.github.com>
* chore: fix eslint typescript errors

* chore: import order

* feat: show status indicator for collections and items

* refactor: CollectionAction component to simplify CollectionDetailPage

* refactor: Remove useMemo

* refactor: mergeProps so collectionId does not have to be provided

* feat: Add push changes button when collection is dirty

* feat: Add push collection changes modal (wip)

* feat: Add curation reducer, actions and types

* feat: Add curation saga and fetch curations request

* feat: Can't push a curation if there is one pending

* feat: Push curation

* refactor: More readable if structure

* chore: Add text

* feat: Fetch single curation request

* fix: canChangedBePushed and areChangesUnderReview

* chore: Update text

* chore: Update popup style for under review pushes

* feat: Fetch curations when committee member request succeeds

* feat: Display collection in curation list that were requested for review

* refactor: Update curation type

* feat: Show approve button on collections that have curation

* feat: Add reject and approve curation actions sagas and reducers

* feat: Display buttons in item editor according to the review type

* feat: Add disable button to item editor when you want to set available to false

* fix: ReviewModal

* feat: Don't show approve button on rejected curation

* refactor: CollectionAction types + selectors

* chore: Add new translations to item_editor in chinese and spanish

* chore: Add push_collection_changes_modal translations for es and zh

* chore: Add collection_detail_page translations for es and zh

* chore: Add collection_row translations for es and zh

* chore: Remove unused authorizations from CollectionDetailPage

* chore: Rename ExtCollection

* feat: Status takes into consideration under review because of curation

* fix: selector tests

* fix: Fix CollectionItem state

* chore: Add curation selectors tests

* chore: Add curation reducer tests

* chore: Add some curation sagas tests

* chore: Add push curation saga tests

* refactor: Abstract mock builder

* chore: Remove disabled button and update some texts

* feat: Show orb on mint items modal

* feat: Show dirty item as under review when a curation is ongoing

* feat: Show warning when one of the items you are minting has changes to be approved

* feat: Show warning when trying to sell a collection with items with pending reviews

* fix: Item selectors test

* refactor: Move UnderReview component to separate files

Co-authored-by: Juan Cazala <juancazala@gmail.com>
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.

None yet

3 participants