Skip to content

feat: public nav pinned/collapse, duplicate tag/desc merge & AI secret card overflow fix - #75

Merged
WangEn merged 5 commits into
mainfrom
feat/public-pins-dup-merge-ai-layout
Nov 23, 2026
Merged

WangEn merged 5 commits into
mainfrom
feat/public-pins-dup-merge-ai-layout

Conversation

@WangEn

@WangEn WangEn commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Delivers Public Navigation Station Pinned Favorites (★ 置顶常用) & Collapsible Category Memory, Duplicate Review One-Click Unique Tag / Missing Description Merge on Archive (with full atomic-style Undo), and fixes the Settings → AI Service (Worker 密钥状态) right-column card overflow and initial sync badge copy.

Key Highlights

  1. Settings → AI Service (/app/settings/ai) Layout & Sync Badge Fix

    • Explicit minmax(0, ...) grid tracks and min-width: 0 bounds across .ai-service-grid, .ai-secret-card, .ai-status-row, .ai-secret-cmd, and .ai-quick-link, plus @media (max-width: 960px) single-column collapse so the Worker Secret card never overflows at any breakpoint.
    • Replaced redundant bilingual badge copy (已配置 Ready) with concise pure-language labels (已就绪 / Ready) and fixed updatedAt === null header state (默认配置 / Default / Local).
  2. Public Navigation Station Pinned Favorites & Collapsible Category Memory (/ & /app/settings/public)

    • Added pinnedBookmarkIds (capped at MAX_PUBLIC_PINNED_BOOKMARKS = 24, deduplicated and order-preserving) to PublicPageSettings and /api/settings/public-page.
    • Extracted PublicSiteConfigCard.tsx and added a ★ 置顶常用区 (Pinned Favorites) reorder/unpin panel + per-row ★ 置顶 toggles in PublicPageSettings.tsx.
    • Added the top ★ 置顶常用 (Pinned) section, clickable collapsible category headers persisted locally per visitor (dockmarkPublicCollapsedV1, with automatic temporary expand during active search/category filter), and 全部收起 / 全部展开 toolbar control in PublicPage.tsx.
  3. Duplicate Review One-Click Tag & Description Merge (DuplicateReviewPage.tsx & DuplicateCandidateCard.tsx)

    • /api/library/duplicates now returns active #tags on candidate members, highlighting unique tags on each side.
    • Extracted DuplicateCandidateCard.tsx with computeDuplicateMerge (case-insensitive tag deduplication, 12-tag cap, missing description adoption) and a per-card merge checkbox before archiving, backed by full Undo restoring both the archived bookmark and the keeper's pre-merge tags/description.

Verification

  • npm run check:extension-version
  • npm run typecheck & npm run build
  • npm run package:extension / package:extension:newtab / package:extension:firefox
  • npm run deploy:source-dry-run & npm run deploy:dry-run
  • npm run smoke:chromium / smoke:chromium:newtab / smoke:chromium:web-shell (including headless Chromium zero-overflow assertions on .ai-secret-card across 1280/900/720/390px)

@WangEn
WangEn merged commit efdbc62 into main Nov 23, 2026
4 checks passed
@WangEn
WangEn deleted the feat/public-pins-dup-merge-ai-layout branch November 23, 2026 11:10
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