Skip to content

Refactor path mark guide into reusable help center system - #1274

Merged
anobaka merged 2 commits into
mainfrom
claude/path-tagging-ux-improvement-ek9lrn
Aug 31, 2026
Merged

Refactor path mark guide into reusable help center system#1274
anobaka merged 2 commits into
mainfrom
claude/path-tagging-ux-improvement-ek9lrn

Conversation

@anobaka

@anobaka anobaka commented Aug 31, 2026

Copy link
Copy Markdown
Owner

Summary

Replaces the single-purpose PathMarkGuideModal with a generalized HelpCenter system that can host multiple topics and guides. The path mark guide is now the first topic in this extensible help center, with support for tabbed sections, concept glossary, and example gallery.

Key Changes

  • Removed: PathMarkGuideModal and usePathMarkGuide (path-mark-specific carousel-based guide)

  • Added: New HelpCenter component system:

    • HelpCenterModal — main modal host with left navigation (topics + concepts) and right content pane
    • HelpCenterButton — reusable "?" entry point to open help at any topic/section
    • useFirstRunHelp — generic first-run detection hook (replaces path-mark-specific version)
    • Topic registry in topics.tsx for easy addition of new guides
  • Path Mark Topic — refactored guide content into three tabbed sections:

    • What Is It — mental model, three mark types, workflow diagram
    • Examples — gallery of 9 real-world scenarios (movies, anime, manga, music) demonstrating different capabilities
    • vs. Typical Tools — comparison table (scraper-style, manual tagging, path marks)
    • Concepts — glossary entries (layer, regex, dynamic properties, etc.) in left navigation
  • Localization: Added comprehensive i18n keys for English and Chinese (helpCenter.json)

  • Shared Components:

    • DirectoryTree — renders sample folder structures with mark highlights (used by diagram, examples, and concepts)
    • PathMarkExample interface — structured example definitions with abilities, mark types, and tree lines
  • Integration: Updated path mark config pages to use new HelpCenterButton and useFirstRunHelp instead of old guide

Implementation Details

  • Help topics are registered in a central topics.tsx registry; new guides simply add an entry
  • Each topic can have an overview (rendered with tabs) and optional concept entries (glossary items in left nav)
  • First-run detection is now generic (useFirstRunHelp(storageKey)) rather than path-mark-specific
  • Example gallery uses a declarative PathMarkExample[] array, making it easy to add or modify scenarios
  • All UI strings are i18n-keyed for multi-language support

https://claude.ai/code/session_019cZsnxTrB8kXtbT2Z5faq3

claude added 2 commits August 30, 2026 15:06
Replace the one-shot 4-slide path mark guide tour with a reusable Help
Center that can be opened anytime from "?" entry points:

- Generic HelpCenter framework (modal host + "?" button + topic
  registry) so other guides can join as topics later; content components
  are container-agnostic for a future standalone page.
- Path mark topic with 4 sections: mental-model intro with a colored
  directory-tree diagram, a 12-recipe example gallery (movies, anime,
  manga, music) covering every capability (any-level matching, regex,
  dynamic properties/libraries, filters, boundary, scope, priority,
  scheduled sync, identity keeping), a comparison table against typical
  media managers, and a concept glossary with deep-link targeting.
- "?" entry points on path-mark-config, path-marks, media library page
  (empty state + bottom hint), MarkConfigModal title (jumps to
  examples), pending-sync modal and path mark settings (jump to the
  sync concept).
- First-run auto-open now shows the help center (same storage key as
  the old guide) and the legacy PathMarkGuide carousel plus its 50
  orphaned locale keys are removed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019cZsnxTrB8kXtbT2Z5faq3
- Left navigation always visible: one overview entry per topic plus a
  grouped list of its concept entries; concepts move out of the fourth
  horizontal tab into the sidebar, each with its own detail page.
- Topic overview keeps 3 horizontal tabs (what-is / examples /
  comparison); modal title simplifies to just "Help Center" since the
  topic name now lives in the navigation.
- Widen the modal from 5xl to 6xl and raise the content height.
- Concept deep links now select the sidebar entry (sync-related "?"
  buttons updated accordingly).

Closes #1273

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019cZsnxTrB8kXtbT2Z5faq3
@anobaka
anobaka merged commit 57de24b into main Aug 31, 2026
2 checks passed
@anobaka
anobaka deleted the claude/path-tagging-ux-improvement-ek9lrn branch August 31, 2026 11:47
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.

2 participants