Merge pull request #234 from MeshJS/feature/add-proxy-api-and-ci-testing
Feature/add-proxy-api-and-ci-testing
Feature/add-proxy-api-and-ci-testing
- Updated proxy lifecycle scenarios to include support for hierarchical wallets alongside legacy and SDK wallets. - Modified README documentation to reflect changes in wallet type coverage for proxy full lifecycle scenarios. - Improved error handling in proxy setup finalization to ensure valid transaction hashes. - Added unit tests to validate new hierarchical wallet functionality in proxy management. - Adjusted existing tests to ensure comprehensive coverage of all wallet types in proxy lifecycle processes.
* refactor: remove unused recharts and busboy deps; relocate swagger CSS - Delete src/components/ui/chart.tsx (recharts wrapper, zero consumers) - Remove recharts from dependencies - Remove busboy and @types/busboy (formidable is the actual uploader) - Move swagger-ui CSS imports out of _app.tsx into api-docs.tsx * refactor(react): use signer address as stable key in ReviewSignersCard Replaces array index with signer address (which is unique and stable across reorder/edit) on both desktop TableRow and mobile card view, preventing form-state misalignment when signers are removed or reordered. * ci: add PR checks workflow, basic security headers, env comment - Add .github/workflows/pr-checks.yml (lint/typecheck/test/build, continue-on-error initially) - Add basic security headers in next.config.js (X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy). CSP and HSTS intentionally omitted. - Add comment to src/env.js explaining why NextAuth env vars are commented (PrismaAdapter only, no providers configured) * chore: add typecheck, format, format:check scripts Used by .github/workflows/pr-checks.yml and developer workflow. - typecheck: tsc --noEmit - format: prettier --write . - format:check: prettier --check . * chore: refresh package-lock.json after recharts/busboy removal Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * fix: keep swagger-overrides.css in _app.tsx (Next requires global CSS at root) Reverts only the swagger-overrides.css move from commit 4abe300. The swagger-ui-react/swagger-ui.css import (from node_modules) remains local to api-docs.tsx, so the original goal of keeping that bundle out of every page is still achieved. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Reverts only the swagger-overrides.css move from commit 4abe300. The swagger-ui-react/swagger-ui.css import (from node_modules) remains local to api-docs.tsx, so the original goal of keeping that bundle out of every page is still achieved. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Used by .github/workflows/pr-checks.yml and developer workflow. - typecheck: tsc --noEmit - format: prettier --write . - format:check: prettier --check .
- Add .github/workflows/pr-checks.yml (lint/typecheck/test/build, continue-on-error initially) - Add basic security headers in next.config.js (X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy). CSP and HSTS intentionally omitted. - Add comment to src/env.js explaining why NextAuth env vars are commented (PrismaAdapter only, no providers configured)
Replaces array index with signer address (which is unique and stable across reorder/edit) on both desktop TableRow and mobile card view, preventing form-state misalignment when signers are removed or reordered.
- Delete src/components/ui/chart.tsx (recharts wrapper, zero consumers) - Remove recharts from dependencies - Remove busboy and @types/busboy (formidable is the actual uploader) - Move swagger-ui CSS imports out of _app.tsx into api-docs.tsx
- Updated unit test command in package.json to include additional proxy-related tests. - Added new steps for proxy row recovery and orphan adoption in CI workflows. - Enhanced README documentation for proxy bot API, clarifying required parameters and transaction flows. - Improved API descriptions to reflect changes in handling DRep registration and proxy transactions. - Adjusted test cases to validate new lifecycle steps for proxy management.
- Expanded unit test command in package.json to include additional proxy-related tests. - Increased timeout for the multisig smoke workflow to accommodate longer execution times. - Added new proxy bot cleanup instructions to the README for better user guidance. - Implemented new scenarios in CI for proxy lifecycle management, including smoke tests and full lifecycle coverage. - Introduced retry logic in HTTP requests to improve resilience against transient errors.
- Introduced new API endpoints for managing proxies, including listing confirmed proxies, setting up proxy transactions, finalizing proxy setups, and spending proxies. - Updated the README documentation to reflect the new proxy bot API functionality. - Enhanced the test script to include a new test for proxy-related functionality.
Bot api test suite
Bot api test suite
Bot api test suite