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

🔀 Merge dev into backend #4479

Merged
merged 10 commits into from
Jul 19, 2023
Merged

🔀 Merge dev into backend #4479

merged 10 commits into from
Jul 19, 2023

Conversation

thesan
Copy link
Member

@thesan thesan commented Jul 19, 2023

No description provided.

IlyaSmiyukha and others added 10 commits June 23, 2023 10:01
Co-authored-by: ilya Smiyukha <ilya.smiyukha@touchcast.com>
* Add modal and transaction support in page stories

* Mock chain numbers as Codec instead of BNs

* Simplify mocking balances

* Improve the `MockApi` type

* Mock transaction results with `TxMock`

* Move the Pages section to the top menu

* Mock the `api.tx.proposalsEngine.vote` transaction

* Always redirects to the current story

* Improve TxMock

* Use a single spy for `onCall` and `onSend`
Because Storybook actions are converted to jest.fn
* Add a story for `VoteForProposalModal`

* Make CKEditor usable in tests

* Rewrite test args rather than merging objects

* Render modals in a container within the canvas

* Add some of VoteforProposalModal tests to the stories

* Fix failing tests

* Simplify mocking balances

* Render the modal container outside of the router

* Add an id to the "Slash Proposal" toggle

* Finalize the VoteForProposalModal Happy cases

* Add failure cases

* Remove the previous VoteforProposalModal tests

* Remove unnecessary `toBeDefined`

* Fix the failing tests
* Update SetCouncilBudgetIncrement

* Update AddNewProposalModal.test.tsx

* AddNewProposalModal.test.tsx
* Include the OnBoardingProvider in all stories

* Mock a wallet

* Mock local storage

* Reorganize storybook nav

* Add SideBar stories

* Remove the spy function in the local storage mock

* Test the on boarding flow

* Test the buy membership modal

* Remove the old BuyMembershipModal tests

* Test localStorage state

* Remove the old OnBoardingModal test

* Simplify some stories from `ProposalPreview`

* Warn about missing QN queries

* Add the OnBoardingOverlay into the sidebar stories

* Reassign the Sidebar stories to App

* Remove the OnboardingOverlay story

* Move the BountiesHeader component out of the App folder

* Replace OnBoardingOverlay tests

* Run the App stories as part of the CI

* Move the App section first

* Fix type error

* Fix stories when mocks is undefined
* Enable linking stories with the Router

* Create current and past proposal stories

* Fix the `RecursivePartial` type

* Improve the type of mock resolvers

* Warn of missing chain data

* Generate current proposals

* Generate past proposals

* Reorganize the proposal stories in the navigation

* Simplify api mocks code
* Reduce fee re-calculation in `AddNewProposalModal`

* Fix the "warningAccepted" logic
* Reduce fee re-calculation in `AddNewProposalModal`

* Fix the "warningAccepted" logic

* Fix the proposal `WarningModal`

* Test the signal proposal flow

* Add "General parameters" tests

* Add "Funding Request" and "Set Referral Cut" tests

* Fix race condition during form validation

* Fix incomplete tests

* Use one story per proposal type

* Add the "Decrease Working Group Lead Stake" test

* Add "Terminate Working Group Lead" test

* Don't initialize number inputs with a 0

* Add Create Working Group Lead Opening test

* Add the Set Working Group Lead Reward test

* Add the Set Max Validator Count test

* Add the Cancel Working Group Lead Opening test

* Add the Set Council Budget Increment test

* Add the Set Councilor Reward test

* Add the Set Membership Lead Invitation Quota test

* Add the Fill Working Group Lead Opening test

* Add the Set Initial Invitation Count test

* Add the Set Initial Invitation Balance test

* Add the Set Membership Price test

* Add the Update Working Group Budget test

* Add the Runtime Upgrade test

* Complete the AddNewProposalHappy test

* Test not enough funds case

* Add transaction failure tests

* Remove the "UI: AddNewProposalModal" test suite

* Fix tests failing in Playwright

* Simplify expected tx parameters amounts

* Fix failing "unit" tests
@vercel
Copy link

vercel bot commented Jul 19, 2023

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

Name Status Preview Updated (UTC)
dao ✅ Ready (Inspect) Visit Preview Jul 19, 2023 8:00am
pioneer-2 ✅ Ready (Inspect) Visit Preview Jul 19, 2023 8:00am
pioneer-2-storybook ✅ Ready (Inspect) Visit Preview Jul 19, 2023 8:00am

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.

3 participants