feat(ui): marketplace recent-used chips — localStorage top-5 dedup, click to reuse, clear button (v1.20 D) - #67
Merged
Conversation
…lick to reuse, clear button (v1.20 D)
This was referenced Aug 17, 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
Item D of rant
2026-08-17T20:46:57(UI/UE 第五轮多角度深化, v1.20): 市场「最近使用」 — recently-used model chips on the Marketplace.#mk-recent) under the marketplace toolbar (above the table): label +.chipscontainer + 清空 button; hidden when emptyatp-recent-models: JSON array of model ids, max 5, deduped with most-recent-first (markRecentUsed→ filter out existing,unshiftto front, truncate to 5;getRecentIdstry/catch for corrupt/legacy data).chippill style (model name +titlewith provider; hover accent highlight);renderRecent()skips ids no longer inD.MARKETopenChat— same primary action as the "使用 / 消费" button; guests get the "请先登录" toast)renderMarketplace()→renderRecent()), plus immediate refresh right after a use (openChat→markRecentUsed+renderRecent)Rant reference (verbatim)
Verification
node --check ui/js/app.js✓, CSS braces balanced ✓cargo test✓ (1 passed),cargo fmt --check✓docs/user-stories.mdv1.20 entry (C marked feat(ui): table density toggle — comfortable/compact radio, localStorage, site-wide .density-compact (v1.20 C) #66, D added),ui/README.md「市场最近使用约定」sectionProgress on rant 20:46:57: A (#63) + B (#65) + C (#66) + D (#67) merged; remaining E–G.