Skip to content

Closes #92: Implement AnchorKit status severity mapping #92 - #114

Merged
El-swaggerito merged 6 commits into
Axionvera:mainfrom
Promise278:implement-anchorKit-status
Jul 28, 2026
Merged

Closes #92: Implement AnchorKit status severity mapping #92#114
El-swaggerito merged 6 commits into
Axionvera:mainfrom
Promise278:implement-anchorKit-status

Conversation

@Promise278

Copy link
Copy Markdown
Contributor

Closes #92

Summary

New files created:

  • packages/types/src/index.ts — Added SeverityLevel, BadgeTone, RecommendedAction, StatusSeverity types
  • packages/stellar-kit/src/severity.ts — Full severity mapping module with all domain mappings, badge/alert class helpers, and unified lookup
  • packages/stellar-kit/test/fixtures/severity.ts — Test fixtures for severity entries
  • packages/stellar-kit/test/severity.test.ts — 55 tests covering all mappings, badge/alert classes, completeness, and consistency
  • docs/STATUS_SEVERITY_MAPPING.md — Documentation with usage examples, domain tables, and design principles

Files modified:

  • packages/stellar-kit/src/index.ts — Added export * from "./severity"
  • apps/web/components/ui.tsx — Refactored all badge components to use shared severity mapping (removed ~80 lines of inline tone mappings)
  • README.md — Added link to STATUS_SEVERITY_MAPPING.md in docs table

Test results:

  • stellar-kit: 226/226 tests pass
  • validators: 27/27 tests pass
  • types: typecheck passes
  • stellar-kit: typecheck passes

…ling (Closes Axionvera#100)

- Add SeverityLevel, BadgeTone, RecommendedAction, StatusSeverity types to @anchorkit/types
- Create severity.ts with exhaustive mappings for receipt, anchor, readiness, account, and milestone statuses
- Provide badgeClasses() and alertClasses() helpers for consistent Tailwind styling
- Refactor web components to use shared severity mapping instead of inline tone maps
- Add 55 tests covering all mappings, badge/alert classes, completeness, and consistency
- Add STATUS_SEVERITY_MAPPING.md documentation with usage examples and domain tables
@El-swaggerito

Copy link
Copy Markdown
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.

@Promise278

Copy link
Copy Markdown
Contributor Author

\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.

done boss

@El-swaggerito
El-swaggerito merged commit 9303f68 into Axionvera:main Jul 28, 2026
1 check passed
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.

Implement AnchorKit status severity mapping

2 participants