Skip to content

Implement UI audit improvements and harden dev asset checks#397

Merged
KillariDev merged 9 commits into
mainfrom
t3code/61cf71c5
Jun 25, 2026
Merged

Implement UI audit improvements and harden dev asset checks#397
KillariDev merged 9 commits into
mainfrom
t3code/61cf71c5

Conversation

@KillariDev

@KillariDev KillariDev commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Implemented the UI audit pass across the Preact app: route/page heading hierarchy, tab/navigation labels, state copy, transaction/action wording, and accessible error handling.
  • Improved security-pool workflows by separating overview/read errors from liquidation submission errors so load failures stay inline and liquidation errors remain in the modal.
  • Added Open Oracle helper text and ARIA descriptions for technical create-form fields, plus route-level regression coverage for those descriptions.
  • Tightened simulation and Web3 UX: compacted the simulation banner, shortened QA account labels while preserving full address values, improved copyable address/amount hit targets, and clarified no-data contract read errors.
  • Hardened development asset validation by expanding import-map/static-import coverage, adding the browser-native isows vendor mapping used by viem, and restoring generated-artifact policy checks as a testable script.
  • Added focused tests for page titles/header behavior, tab navigation, error notices, Open Oracle guidance, security-pool error routing, simulation banner labels, shared asset/import-map coverage, and generated-artifact policy failures.

Testing

  • bun test ui/ts/tests/errorNotice.test.tsx ui/ts/tests/securityPoolsOverviewSection.test.tsx ui/ts/tests/liquidationModal.test.tsx ui/ts/tests/simulationBanner.test.tsx ui/ts/tests/errors.test.ts ui/ts/tests/openOracleSection.integration.test.tsx
  • bun test ui/build/sharedAssets.test.ts
  • clean-output shared-assets simulation with ui/js and ui/vendor temporarily moved aside
  • bun test scripts/check-generated-artifacts.test.ts
  • bun run tsc
  • bun run test (1433 pass, 11 skip, 0 fail after merging origin/main)
  • bun run format
  • bun run check
  • bun run knip
  • bun run check:generated-clean
  • git diff --check

Review notes

  • Merged latest origin/main and resolved the only conflict in scripts/check-generated-artifacts.mts by keeping the exported/testable checker while preserving CLI behavior.
  • Final project reviewer pass after merge: no High, Medium, or Low findings; score 96.

- Replace repository-wide generated-artifact cleanliness check with generation + explicit output/track validation script
- Add new artifact verification and tests to ensure required generated files exist and remain untracked
- Update vendor and build/test coverage for new dependency entrypoints (notably isows/viem) and related UI import-map/runtime resolution
- Apply accessibility/UX updates across header, controls, simulation banner, and copyable elements with new tests
# Conflicts:
#	scripts/check-generated-artifacts.mts
@KillariDev KillariDev changed the title Add generated-artifact freshness checks and simplify CI verification flow Implement UI audit improvements and harden dev asset checks Jun 24, 2026
- Switch create form fields to user-facing decimal input modes and guidance text
- Add decimal parsing/formatting helpers for fee percentages and token/ERC-ETH amounts
- Parse form submission through token-decimal-aware conversion path using token1 decimals from-chain
- Update open-oracle tests and integration route assertions for new input semantics
- In `solidity/ts/tests/peripherals/receiveGuards.test.ts`, wrap unauthorized send tx in `writeContractAndWait` to ensure transaction lifecycle is awaited
- Keeps the receive-guards assertion behavior unchanged while using the shared simulator helper for consistency
@KillariDev

Copy link
Copy Markdown
Collaborator Author

/review

@KillariDev KillariDev merged commit b084bc5 into main Jun 25, 2026
1 check passed
@KillariDev KillariDev deleted the t3code/61cf71c5 branch June 25, 2026 06:41
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.

1 participant