Closed alex-nax closed 3 months ago
[!NOTE] Currently processing new changes in this PR. This may take a few minutes, please wait...
Commits
Files that changed from the base of the PR and between 24a33353d404ff846acfaabd70251587bf147db5 and 0461d01198e8f3002987c864ef7c0d9579dab8ca.Files ignored due to path filters (4)
* `spaceward/public/images/bnr-governance.png` is excluded by `!**/*.png` * `spaceward/public/images/chorus.png` is excluded by `!**/*.png` * `spaceward/public/images/dsrv.png` is excluded by `!**/*.png` * `spaceward/public/images/graph-example.png` is excluded by `!**/*.png`Files selected for processing (28)
* spaceward/src/App.tsx (2 hunks) * spaceward/src/components/ui/icons-assets.tsx (1 hunks) * spaceward/src/features/assets/Assets.tsx (1 hunks) * spaceward/src/features/assets/SignTransactionModal.tsx (1 hunks) * spaceward/src/features/governance/CantVoteModal.tsx (1 hunks) * spaceward/src/features/governance/DetailsModal.tsx (1 hunks) * spaceward/src/features/governance/ItemCard.tsx (1 hunks) * spaceward/src/features/governance/ItemRow.tsx (1 hunks) * spaceward/src/features/governance/VoteModal.tsx (1 hunks) * spaceward/src/features/governance/VotesListModal.tsx (1 hunks) * spaceward/src/features/intents/Intent.tsx (4 hunks) * spaceward/src/features/intents/util/code.test.ts (2 hunks) * spaceward/src/features/intents/util/code.ts (1 hunks) * spaceward/src/features/staking/DetailsModal.tsx (1 hunks) * spaceward/src/features/staking/RedelegateModal.tsx (1 hunks) * spaceward/src/features/staking/StakeModal.tsx (1 hunks) * spaceward/src/features/staking/StakingHeading.tsx (1 hunks) * spaceward/src/features/staking/ValidatorRow.tsx (1 hunks) * spaceward/src/features/staking/hooks.ts (1 hunks) * spaceward/src/features/staking/types.ts (1 hunks) * spaceward/src/features/staking/util.ts (1 hunks) * spaceward/src/layouts/sidebar.tsx (2 hunks) * spaceward/src/lib/math.ts (1 hunks) * spaceward/src/pages/Governance.tsx (1 hunks) * spaceward/src/pages/Staking.tsx (1 hunks) * spaceward/src/pages/index.ts (1 hunks) * spaceward/src/utils/common.ts (1 hunks) * spaceward/tailwind.config.ts (2 hunks)______________ < Bugs begone! > -------------- \ \ (\__/) (•ㅅ•) / づ
The changes introduced several new components and functionalities related to staking and governance in the Spaceward application. These include new pages for staking and governance, various modal components for voting, staking, and displaying details, as well as new icons and utility functions. Additionally, the Tailwind configuration was updated with new color definitions and box shadow styles.
File Path | Change Summary |
---|---|
spaceward/src/App.tsx |
Added routes for StakingPage and GovernancePage . |
spaceward/src/components/ui/icons-assets.tsx |
Added new SVG icons and corresponding rendering functions. |
spaceward/src/features/assets/Assets.tsx |
Removed code related to wallet address display. |
spaceward/src/features/governance/... |
Introduced new components: CantVoteModal , DetailsModal , ItemCard , ItemRow , VoteModal , VotesListModal . |
spaceward/src/features/intents/Intent.tsx |
Refactored reducer function to use commonReducer . |
spaceward/src/features/intents/util/code.test.ts |
Added a new test for tokenization functionality. |
spaceward/src/features/intents/util/code.ts |
Adjusted normalize function to exclude an additional character in the value string. |
spaceward/src/features/stake/StakeModal.tsx |
Introduced StakeModal component with new props and transaction handling. |
spaceward/src/features/staking/... |
Added new components and functionalities for staking, including DetailsModal , RedelegateModal , StakingHeading , ValidatorRow , and hooks. |
spaceward/src/pages/Staking.tsx |
Introduced StakingPage component for handling staking functionality. |
spaceward/src/pages/index.ts |
Added export statement for StakingPage . |
spaceward/src/utils/common.ts |
Introduced common utility functions for handling actions and reducers. |
spaceward/tailwind.config.ts |
Updated Tailwind configuration with new colors and box shadow styles. |
sequenceDiagram
participant User
participant App
participant StakingPage
participant GovernancePage
participant StakeModal
participant DetailsModal
participant RedelegateModal
participant VoteModal
participant VotesListModal
User ->> App: Navigate to /staking
App ->> StakingPage: Render StakingPage
StakingPage ->> StakeModal: Open Stake Modal
User ->> StakeModal: Submit Stake Transaction
StakeModal ->> StakingPage: Update Staking Info
User ->> App: Navigate to /governance
App ->> GovernancePage: Render GovernancePage
GovernancePage ->> DetailsModal: Open Details Modal
User ->> DetailsModal: Interact with Proposal Details
DetailsModal ->> VoteModal: Open Vote Modal
User ->> VoteModal: Submit Vote
VoteModal ->> GovernancePage: Update Voting Info
GovernancePage ->> VotesListModal: Open Votes List Modal
User ->> VotesListModal: View Votes List
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Hey @alex-nax and thank you for opening this pull request! 👋🏼
It looks like you forgot to add a changelog entry for your changes. Make sure to add a changelog entry in the 'CHANGELOG.md' file.
fix(spaceward): refs clean-23-05
feat(spaceward): Add stake page
staking wip
Summary by CodeRabbit
New Features
StakingPage
andGovernancePage
with routes for/staking
and/governance
.CantVoteModal
,DetailsModal
,GovernanceCard
,GovernanceRow
,VoteModal
, andVotesListModal
components for governance functionalities.StakeModal
,DetailsModal
,RedelegateModal
,StakingHeading
, andValidatorRow
components for staking functionalities.Bug Fixes
Assets
component.Style
tailwind.config.ts
with new color definitions and box shadow styles for improved UI consistency.Refactor
IntentComponent
to usecommonReducer
.Tests
code.test.ts
.Chores
common.ts
.