feat(ui): Foundation layer — metadata, types, API client, UI primitives [UI #1–4]#177
Merged
Tinna23 merged 4 commits intoStellarCommons:mainfrom Mar 24, 2026
Merged
Conversation
…I primitives - UI StellarCommons#1: Update app metadata, layout, and global styles - UI StellarCommons#2: Create shared TypeScript types mirroring Rust backend shapes - UI StellarCommons#3: Create API client module with typed fetch functions and proxy routes - UI StellarCommons#4: Build shared UI primitives — Card, Pill, Label, AddressChip, TabSwitcher
|
@demilade18-git Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Contributor
|
Hey @demilade18-git, clean job so far, but a little fix, To fix it, run this on your branch: cd packages/core
cargo fmt
git add -A
git commit -m "style: fix rustfmt formatting"
git push
|
Tinna23
approved these changes
Mar 24, 2026
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 complete foundation layer for the Stellar Explain frontend.
All four issues are addressed in this PR as they form a single cohesive dependency chain —
each piece builds directly on the previous one.
Changes
UI #1 — App metadata, layout, and global styles
layout.tsxwith correct title and descriptionnext/font/googleglobals.csswith base CSS variable structuresuppressHydrationWarningto<body>UI #2 — Shared TypeScript types
src/types/index.tsas the single source of truthTransactionExplanation,AccountExplanation,PaymentExplanation,HealthResponse,ApiError,Tab,PillVariantUI #3 — API client module
src/lib/api.tswith typed fetch functions for all endpointssrc/lib/errors.tswithisApiError,getErrorMessage,getFriendlyErrorMessage/api/tx/[hash],/api/account/[address],/api/healthAbortControllertimeout to all proxy routes.env.local.exampledocumenting all required variablesUI #4 — Shared UI primitives
Card.tsx— base card wrapper with dark glass stylingPill.tsx— status pill withsuccess,fail,default,warningvariantsLabel.tsx— small uppercase metadata labelAddressChip.tsx— truncated address (first 6…last 6) with copy-to-clipboardTabSwitcher.tsx— Transaction / Account tab toggleHow to test
Closes
Closes #149
Closes #150
Closes #151
Closes #152