Feat/trust lookup history#472
Open
Devadakene wants to merge 2 commits into
Open
Conversation
added 2 commits
June 29, 2026 01:15
Documents the 360px/768px contract, per-route grid reflow citing real sources, the layout spacing-token rule, and a manual responsive QA checklist.
…ted history Adds a keyboard-accessible recent-lookups control backed by useLocalStorage that respects the addressDisplay setting and supports clearing.
|
@Devadakene 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! 🚀 |
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.
This PR closes #445
Description
This pull request adds a local, capped, and de-duplicated recent lookups history to the Trust Score page, turning repeated Stellar address checks into a single click.
Key Features
Lookup History Persistence:
useLocalStoragehook under the key'credence:recent-lookups'.localStoragepayloads on load.Keyboard-Accessible Recent Lookups UI:
AddressInputpresenting the recent lookups.<button>elements to guarantee keyboard focusability and activation (via space/Enter).addressDisplaysettings ('short'/'full'/'friendly') fromSettingsContext. If set to'friendly'and the entry matches the currently connected wallet, it renders'My Wallet'.URL & Active State Integration:
?address=parameter for query parameter synchronization, and triggers the score lookup immediately.Files Modified
src/pages/TrustScore.tsx: Added recent lookups state, logic, event handlers, and UI markup.src/pages/TrustScore.css: Styled the lookup history container, list, action buttons, and clear button with accessible focus rings and hover transitions.src/pages/TrustScore.test.tsx: Added comprehensive RTL tests verifying capping/de-duplication ordering, clear actions, selection-triggered lookups, formatting modes, and corrupt fallback handling.