Repository navigation
feat(core): fix #153, #155, #159, and #180 reduced motion, storage is… - #301
Merged
BigDella merged 1 commit intoOct 19, 2026
Merged
Conversation
…ocol#159, and Parcel-Protocol#180 reduced motion, storage isolation, bundle budget, and administrative approvals
|
@peacebas 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! 🚀 |
viktorlabs
pushed a commit
to viktorlabs/utix
that referenced
this pull request
Oct 22, 2026
…ocol#159, and Parcel-Protocol#180 reduced motion, storage isolation, bundle budget, and administrative approvals (Parcel-Protocol#301)
Daniel08886
pushed a commit
to Daniel08886/utix
that referenced
this pull request
Oct 22, 2026
…ocol#159, and Parcel-Protocol#180 reduced motion, storage isolation, bundle budget, and administrative approvals (Parcel-Protocol#301)
Wiseman52
pushed a commit
to Wiseman52/utix
that referenced
this pull request
Oct 22, 2026
…ocol#159, and Parcel-Protocol#180 reduced motion, storage isolation, bundle budget, and administrative approvals (Parcel-Protocol#301)
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.
Closes #153
Closes #155
Closes #159
Closes #180
This pull request addresses and resolves four core infrastructure and quality issues across accessibility, test isolation, performance budgeting, and administrative protocol security:
Issue [UI] Add reduced-motion preference coverage #153: Reduced-Motion Preference Coverage
Skeleton,Button,StatusMessage) used continuous animations, transitions, and pulsing shimmers that created a severe barrier for users with vestibular disorders or motion sensitivities. Furthermore, UI tests lacked a standardized utility to detect and respond to user-level motion reduction preferences.prefersReducedMotion(defaultValue = false)and theuseReducedMotion(defaultValue = false)React hook incore/ui/accessibility.ts. UpdatedSkeletonto usemotion-reduce:animate-nonealongsidedata-contract-state="loading"so the loading placeholder maintains its size and shape without perpetual pulsation. UpdatedButtonandStatusMessagewithmotion-reduce:transition-noneandmotion-reduce:transform-nonefor instant visual state changes. Added global CSS rules inapp/globals.cssensuring instant scrolling and zeroed keyframe transitions underprefers-reduced-motion: reduce.Issue [Testing] Add deterministic browser storage isolation #155: Deterministic Browser Storage Isolation
localStorage,sessionStorage) in test environments caused persistent state (selected network, notifications, session tokens) to leak across independent component tests, causing flaky, order-dependent failures that were difficult to reproduce.createIsolatedStorage()incore/testing/render.tsx, providing a memory-backed W3CStorageimplementation withNetworkProvidervia a new optionalstorage?: Storageprop, and exportedresetNetworkStorageListeners()for deterministic test cleanup. Bound isolated storage to bothNetworkProviderandNotificationStorein the sharedrenderFeatureharness.Issue [Performance] Establish feature initial-load performance budgets #159: Feature Initial-Load Performance Budgets
/tools/[slug]), and SDK-heavy tools requiring extensive XDR and Soroban type schemas lacked an objective, documented exception pathway.scripts/bundle-budget.mjswithanalyzeRouteInitialLoad(), which inspects Next.js.next/build-manifest.jsonand evaluates the true disk footprint of shared entrypoint chunks (/_app, polyfills, main chunks, tool shell). Enforces a 220 KB budget with stable tolerances. Establishedscripts/bundle-budget-exceptions.jsonto formally catalog approved exceptions and ceilings for SDK-intensive tools (xdr-inspector,soroban-decoder,transaction-decoder,soroban-spec-viewer). Added the_route_initial_loadbaseline tobundle-baseline.jsonand documented the exception request process indocs/BUNDLE_BUDGET.md.Issue Utix: Implement signed administrative action approvals for high-impact changes #180: Signed Administrative Action Approvals for High-Impact Changes
HighImpactActionand exportedACTION_THRESHOLDSincore/auth/maintainer-approval.tswith multi-maintainer thresholds for ticketing operations. ImplementedverifyProtectedActionApproval(request, manager, options)andexecuteProtectedAction(request, handler, manager, options)withStrKey.isValidEd25519PublicKey) and optional maintainer allowlists.isExpired).computeCanonicalIntentHash).executingand verification against previous execution receipts to guarantee fail-closed replay protection.ApprovalReceiptsealed with a SHA-256 digest and recorded tocore/audit/audit.ts.Changed
core/ui/accessibility.ts: ImplementedprefersReducedMotionanduseReducedMotionhook with SSR fallback and listener cleanup.core/ui/index.ts: Exported accessibility utilities.core/ui/Skeleton.tsx: Addedmotion-reduce:animate-noneclass anddata-contract-state="loading".core/ui/Button.tsx: Addedmotion-reduce:transition-none.core/ui/StatusMessage.tsx: Addedmotion-reduce:transition-none motion-reduce:transform-none.app/globals.css: Added global@media (prefers-reduced-motion: reduce)reset with instant scrolling.docs/REDUCED_MOTION.md: Documented WCAG 2.1 AA defaults and component contracts.core/ui/__tests__/reduced-motion.test.tsx: Added 9 regression tests for reduced-motion detection, dynamic changes, and component rendering.core/testing/render.tsx: ImplementedcreateIsolatedStorage()with in-memory W3CStorageinterface; wired isolated storage intorenderFeature.core/testing/index.ts: ExportedcreateIsolatedStorage.core/network/NetworkProvider.tsx: Injected optionalstorage?: Storageprop with fallback tolocalStorage, and exportedresetNetworkStorageListeners().vitest.config.ts: Added root"__tests__/**/*.test.{ts,tsx}"to test include paths.__tests__/storage-isolation.test.tsx: Added 5 tests for order-dependent hazards, render isolation, explicit fixture sharing, and Storage API compliance.scripts/bundle-budget.mjs: AddedanalyzeRouteInitialLoad(),loadExceptions(), and stable tolerance margin checks; exported helpers for test runners.bundle-baseline.json: Added numeric_route_initial_loadbaseline (180 KB).scripts/bundle-budget-exceptions.json: Documented exception catalog for SDK-heavy tools (xdr-inspector,soroban-decoder,transaction-decoder,soroban-spec-viewer).docs/BUNDLE_BUDGET.md: Documented the 220 KB initial load budget and exception request procedure.__tests__/bundle-initial-load.test.ts: Added 7 tests covering initial load analysis, standard budgets, approved exceptions, and ceiling violations.core/auth/maintainer-approval.ts: Added ticketing and event operations (event_capacity_override,event_cancellation,fraud_lock_quarantine,batch_ticket_burn,organizer_fee_override); exportedACTION_THRESHOLDS; implementedverifyProtectedActionApproval()andexecuteProtectedAction()with Stellar Ed25519 validation and replay protection.docs/MAINTAINER_APPROVAL_FLOW.md: Updated high-impact actions table and added Protected Action Verification API documentation.core/auth/__tests__/signed-administrative-approvals.test.ts: Added 8 tests covering missing approval, pending threshold, expired approval, action/target/parameter mismatch, unauthorized actor, and replay blocking.