feat: implement issuer asset registration UI - #142
Open
peterexcel494-oss wants to merge 1 commit into
Open
Conversation
Closes #54 - Add /register-asset page with wallet guard (src/pages/register-asset.tsx) - Add multi-step AssetRegistrationForm: input → review → receipt - Add ReviewStep component with read-only metadata summary before signing - Add RegistrationReceipt component (SuccessReceipt + ErrorReceipt states) - Add centralised SDK integration module (src/lib/aegisSdk.ts) - Add client-side metadata validation (src/lib/validateAssetMetadata.ts) - Add development fixtures with mock asset data (src/fixtures/assetFixtures.ts) - Add issuer assumptions docs (docs/issuer-assumptions.md) - Update Navbar to include Register Asset navigation link All acceptance criteria met: ✓ Asset registration page implemented ✓ Metadata validation included (inline field errors) ✓ Review screen before signing ✓ SDK integration centralised in src/lib/aegisSdk.ts ✓ Receipt and error states included ✓ Docs explain issuer assumptions (no legal verification implied)
Contributor
| \nThis PR is currently blocked by merge conflicts.\n\nPlease update the branch with the latest main branch and resolve the conflicts before it can be merged. |
Contributor
| \nGitHub has not finished calculating whether this PR can be merged cleanly.\n\nThe auto-merge automation will skip this PR for now. Re-run the automation later. |
Contributor
Author
|
@El-swaggerito please kindly review and merged the PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the full issuer-facing asset registration UI as described in issue #54.
Closes #54
Changes
New Pages
src/pages/register-asset.tsx— Registration page with wallet guard and step indicatorNew Components
src/components/AssetRegistrationForm.tsx— Multi-step form (input → review → receipt)src/components/ReviewStep.tsx— Read-only metadata summary before signingsrc/components/RegistrationReceipt.tsx—SuccessReceipt(tx hash + contract ID) andErrorReceipt(with retry) statesNew Library Modules
src/lib/validateAssetMetadata.ts— Client-side validation for all metadata fields with inline error feedbacksrc/lib/aegisSdk.ts— Centralised SDK integration; all contract calls route throughregisterAsset()(mock implementation, ready for real SDK drop-in)New Fixtures
src/fixtures/assetFixtures.ts— Pre-filled dev fixtures (FIXTURE_REAL_ESTATE,FIXTURE_TREASURY) andASSET_TYPE_OPTIONSDocs
docs/issuer-assumptions.md— Explains issuer responsibilities, validation rules, SDK integration, and the multi-step flowUpdated
src/components/Navbar.tsx— Added "Register Asset" navigation linkAcceptance Criteria
src/lib/aegisSdk.tsNotes
@aegis/sdkpackage is not yet published.aegisSdk.tsuses a mock that simulates latency and a ~10% error rate so all UI states can be exercised locally.npm run buildcompiles with zero TypeScript errors.