Skip to content

Feat/311 cancel circle UI - #372

Open
Venrable18 wants to merge 2 commits into
crackedstudio:mainfrom
Venrable18:feat/311-cancel-circle-ui
Open

Feat/311 cancel circle UI#372
Venrable18 wants to merge 2 commits into
crackedstudio:mainfrom
Venrable18:feat/311-cancel-circle-ui

Conversation

@Venrable18

Copy link
Copy Markdown
Contributor

Title: feat(cancel): wire cancel-circle UI, SDK wrapper, locales (#311)

Description: This PR wires the cancel_circle contract call into the UI and SDK:

Added cancelCircle wrapper to packages/client/src/contract.ts and include cancelled in CircleView.

Added admin-only cancel control to app/src/App.tsx with confirmation and sync.

Showed refund info in app/src/components/FundingList.tsx when cancelling is relevant.

Add locale strings for cancellation in app/src/locales/en.ts and app/src/locales/es.ts.

Update mocks/@sharibo/client.ts to include cancelCircle and the cancelled/contributors fields for tests.
Notes:

I updated the test mock so UI tests won't fail due to missing fields.

Closes #311.

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.

Wire a cancel-circle control into the UI

1 participant