Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ jobs:
unzip -Z1 "$STANDARD" | grep -qx "manifest.json"
unzip -Z1 "$NEWTAB" | grep -qx "manifest.json"
unzip -Z1 "$NEWTAB" | grep -qx "newtab.html"
unzip -Z1 "$NEWTAB" | grep -qx "newtab.js"
unzip -Z1 "$NEWTAB" | grep -qx "newtab-auth.js"
unzip -Z1 "$NEWTAB" | grep -qx "newtab-app.js"
unzip -Z1 "$NEWTAB" | grep -qx "newtab-theme.js"
unzip -Z1 "$NEWTAB" | grep -qx "newtab.css"
unzip -p "$STANDARD" manifest.json | node -e 'let data=""; process.stdin.on("data", c => data += c); process.stdin.on("end", () => { const m=JSON.parse(data); if (m.chrome_url_overrides) process.exit(1); });'
unzip -p "$NEWTAB" manifest.json | node -e 'let data=""; process.stdin.on("data", c => data += c); process.stdin.on("end", () => { const m=JSON.parse(data); if (m.chrome_url_overrides?.newtab !== "newtab.html") process.exit(1); if (m.name !== "Dockmark New Tab") process.exit(1); });'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/extension-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ jobs:
unzip -Z1 "$STANDARD" | grep -qx "manifest.json"
unzip -Z1 "$NEWTAB" | grep -qx "manifest.json"
unzip -Z1 "$NEWTAB" | grep -qx "newtab.html"
unzip -Z1 "$NEWTAB" | grep -qx "newtab.js"
unzip -Z1 "$NEWTAB" | grep -qx "newtab-auth.js"
unzip -Z1 "$NEWTAB" | grep -qx "newtab-app.js"
unzip -Z1 "$NEWTAB" | grep -qx "newtab-theme.js"
unzip -Z1 "$NEWTAB" | grep -qx "newtab.css"
unzip -p "$STANDARD" manifest.json | node -e 'let data=""; process.stdin.on("data", c => data += c); process.stdin.on("end", () => { const m=JSON.parse(data); if (m.chrome_url_overrides) process.exit(1); });'
unzip -p "$NEWTAB" manifest.json | node -e 'let data=""; process.stdin.on("data", c => data += c); process.stdin.on("end", () => { const m=JSON.parse(data); if (m.chrome_url_overrides?.newtab !== "newtab.html") process.exit(1); if (m.name !== "Dockmark New Tab") process.exit(1); });'
Expand Down
2 changes: 1 addition & 1 deletion GEMINI.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ TypeScript ^7.0.2 + React ^19.2.8 + Vite ^8.2.2 + Cloudflare Workers & D1 (Wrang

<directory>
apps/ - Deployable web app, Cloudflare Worker API, and browser extensions (2 subdirectories: web/, extension/)
packages/ - Shared domain contracts, settings normalization, i18n, search, and URL policy (1 subdirectory: core/)
packages/ - Shared domain contracts, settings normalization, i18n, Pinyin/command search, and URL policy (1 subdirectory: core/)
scripts/ - Release packaging, Cloudflare deploy/migration helpers, and Chromium smoke suites (14 scripts)
docs/ - Architecture, API, security, roadmap, and Firefox validation specifications (1 subdirectory: brand/)
</directory>
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@ Dockmark is web-first: bookmarks, reusable Workspaces, temporary Sessions and co

The Web app resolves the favicon dynamically so it follows the active System / Light / Dark appearance. The static SVG above documents the canonical mark: dark mode uses the `#0a0f0c` Dockmark surface with the soft green mark, while light mode uses the paired `#f4f7f5` surface with dark green ink.

> Status: **v1.6.0** — bilingual **English (`en`) & Simplified Chinese (`zh-CN`)** localization synced across Web, Extension Popup, New Tab, and AI organization, paired with a compact tool-grade UI overhaul (Spotlight launcher dashboard, category/collection filter pills, state-aware 3-tab extension workbench with searchable Open Tabs, reviewed capture Inbox, Smart Collections, Duplicate Review, Change Journal, and Firefox MV3 support). Browser sync remains review-gated: no silent background bookmark mutation.
> Status: **v1.6.1** — customizable **Personal Navigation Station** Public Page, dedicated **Settings → AI Service** provider management, upgraded **Duplicate Review** (SPA hash-route safety & 1-click Keep/Archive with Change Journal undo), zero-dependency **Pinyin initial search**, and a **modular WXT TypeScript New Tab** bundle — built on Dockmark's bilingual **English (`en`) & Simplified Chinese (`zh-CN`)** Spotlight launcher, reviewed capture Inbox, Smart Collections, Change Journal, and Chrome/Firefox MV3 extensions. Browser sync remains review-gated: no silent background bookmark mutation.

## What's New in v1.6.1

- **Personal Navigation Station (Public Page)**: Customize your public homepage (`/`) from **Settings → Public Page** (`/api/settings/public-page`) with a custom site title/subtitle, default layout (`grid`, `compact`, or `list`), search bar + external web search engine switcher (`Filter`, `Google`, `Bing`, `GitHub`, `DuckDuckGo`, `百度`), category navigation pills, and new-tab behavior. Visitors can switch layout, theme, and language locally without mutating owner data.
- **Dedicated Settings → AI Service (`/app/settings/ai`)**: Configure OpenAI-compatible AI providers in one central panel with 6 one-click presets (`OpenAI`, `DeepSeek`, `OpenRouter`, `SiliconFlow`, `Gemini`, `Groq`), D1-synced non-secret endpoint/model/timeout settings (`/api/settings/ai`), live `DOCKMARK_AI_API_KEY` Worker secret diagnostics, and quick links to Inbox AI Triage and Bookmarks Organize.
- **Duplicate Review Archive/Undo & SPA Hash-Route Safety**: Duplicate detection preserves distinct SPA hash routes (e.g. `#/login` vs `#/monitoring`) while collapsing plain document anchors (`#section-1` vs `#section-2`). Compare pairs side-by-side with URL diff highlighting, filter by evidence type or Pinyin search, jump directly to **Locate in Library** (`/app/bookmarks?q=...`), and run 1-click **Keep A · Archive B** / **Keep B · Archive A** with inline Change Journal undo.
- **Zero-Dependency Pinyin Initial Search**: Match Chinese bookmark, workspace, collection, tab, and `#tag` titles by Hanzi initials (e.g. typing `zhzl` finds `知乎专栏`) consistently across Web Launcher, Bookmark Library, Public Page, New Tab, and Extension Popup Open Tabs.
- **Modular WXT TypeScript New Tab & UI Polish**: Replaced the 7 legacy hand-patched New Tab scripts with a single WXT-compiled TypeScript bundle (`newtab-app.js` from `apps/extension/entrypoints/newtab-app.ts` + `lib/newtab/*.ts`) sharing `@dockmark/core`, paired with customizable launcher shortcuts (`⌘K` / `⌘J` / `Alt+K` + `/` focus), outer-only `:focus-within` composite search bars (zero inner focus outline), and unified custom `<select>` styling.

## Bilingual UI & Redesigned Workspace (v1.6.0)

Expand Down
30 changes: 15 additions & 15 deletions apps/extension/GEMINI.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,38 @@
> L2 | Parent: ../../GEMINI.md

Member list
package.json: Extension workspace package manifest (`@dockmark/extension` v1.6.0), WXT build/zip scripts for Chrome, New Tab variant, and Firefox MV3.
wxt.config.ts: WXT MV3 manifest generator for Chrome and Firefox; sets `default_locale: "en"`, localized `__MSG_*__` descriptions, optional `bookmarks`/host permissions, `Alt+Shift+D` command, and `d` omnibox keyword.
package.json: Extension workspace package manifest (`@dockmark/extension` v1.6.1), WXT build/zip scripts for Chrome, New Tab variant, and Firefox MV3.
wxt.config.ts: WXT MV3 manifest generator for Chrome and Firefox; sets version `1.6.1`, `default_locale: "en"`, localized `__MSG_*__` descriptions, optional `bookmarks`/host permissions, `Alt+Shift+D` command, and `d` omnibox keyword.
tsconfig.json: TypeScript compiler configuration extending `.wxt/tsconfig.json`.
entrypoints/background.ts: MV3 service worker handling Web bridge registration, tab activation, Workspace/Session restore, native bookmark sync/writeback, and local health dispatch.
entrypoints/newtab-app.ts: WXT unlisted script bundle (`newtab-app.js`) wiring New Tab state, keyboard shortcuts (`launcherShortcut`, `slashFocus`), storage/tab listeners, and Playwright smoke hooks without adding `chrome_url_overrides` to the Standard manifest.
entrypoints/popup/index.html: HTML shell for the 384px extension popup workbench.
entrypoints/popup/main.tsx: State-aware React 19 popup workbench with header status pill, setup wizard / 3-tab daily segmented views (Capture + searchable Open Tabs, Multi-Tab, Sessions), and settings drawer toggle.
entrypoints/popup/api.ts: Popup domain types, storage keys, URL/monogram helpers, Bearer-authenticated `requestJson`, and best-effort remote appearance/locale sync.
entrypoints/popup/OpenTabsPanel.tsx: Real-time filterable Open Tabs list with host monograms, `Current`/`Switch` pills, and keyboard navigation across all open tabs.
entrypoints/popup/OpenTabsPanel.tsx: Real-time filterable Open Tabs list with Pinyin initial search (`@dockmark/core`), outer-only focus search box with `×` clear button, host monograms, `Current`/`Switch` pills, and keyboard navigation.
entrypoints/popup/SessionsPanel.tsx: Sessions tab view for saving the current window as a cloud Session and restoring recent cloud Sessions.
entrypoints/popup/SetupWizard.tsx: Two-step onboarding card for connecting the Dockmark server origin and exchanging a one-time pairing code.
entrypoints/popup/SettingsDrawer.tsx: Collapsible settings view housing Theme/Language segmented controls, server reconnect, device unpair, and optional native bookmarks toggle.
entrypoints/popup/SettingsDrawer.tsx: Collapsible settings view housing Theme/Language segmented controls, browser shortcut guide (`Alt+Shift+D` / Omnibox `d` + `chrome://extensions/shortcuts` link), server reconnect, device unpair, and optional native bookmarks toggle.
entrypoints/popup/ReviewedCapture.tsx: Multi-tab capture review panel with normalized URL dedup summary (`New`/`Existing`/`Repeated`), batch selection, and Inbox save.
entrypoints/popup/style.css: Compact dark/light forest-sage styling for the 384px popup workbench.
entrypoints/popup/style.css: Compact dark/light forest-sage styling for the 384px popup workbench, composite tab search input, and shortcut guide chips.
entrypoints/local-health-permission/index.html: HTML shell for the single-host local health permission prompt.
entrypoints/local-health-permission/main.ts: Scoped local/private hostname permission prompt with light/dark theme detection and EN/zh-CN localization.
entrypoints/local-health-permission/style.css: Dark/light forest-sage styling for the local health permission page.
lib/ext-locale.ts: Shared extension theme (`dockmarkAppearanceV1`) and locale (`dockmarkLocaleV1`) persistence, DOM application, and `browser.storage.local` reactive sync built on `@dockmark/core`.
lib/local-health.ts: Local/private bookmark HTTP probe runner that gates host checks behind single-hostname `optional_host_permissions`.
lib/launcher-access.ts: Global `Alt+Shift+D` launcher opener and `d + Space` omnibox search over cached local snapshots.
lib/newtab/types.ts: New Tab storage constants, snapshot/result/DOM/state contracts, and pure URL/tag/monogram helpers.
lib/newtab/i18n.ts: Bilingual EN/zh-CN New Tab copy catalog, `window.dockmarkI18n` / `DOCKMARK_NEWTAB_I18N` runtime, and `browser.storage.onChanged` locale sync built on `@dockmark/core`.
lib/newtab/state.ts: Shared reactive New Tab state container, DOM element resolver, and `Object.defineProperties` global bridge preserving Playwright smoke hooks.
lib/newtab/search.ts: Unified local-first command search engine supporting Pinyin initials (`@dockmark/core`), `#tag` filters, `@Collection` browsing, `!` bang shortcuts, Sessions, Workspaces, Open Tabs, and canonical 8-result Web Launcher ranking.
lib/newtab/render.ts: DOM renderers for connection/offline status, topbar controls, search clear button, Category/`@Collection` filter pills, bookmark/workspace cards, and command results.
lib/newtab/sync.ts: Bearer-authenticated API transport, single-pass cloud snapshot hydration, open-tab loading, Workspace/Session restore, and local snapshot clearing.
public/dockmark-bridge.js: Content script bridging trusted Dockmark Web pages to `background.ts` via `window.postMessage`.
public/_locales/en/messages.json: English MV3 manifest localization catalog (`extDescription`, `cmdOpenLauncher`, `newtabDescription`).
public/_locales/zh_CN/messages.json: Simplified Chinese MV3 manifest localization catalog (`extDescription`, `cmdOpenLauncher`, `newtabDescription`).
public/newtab.html: Local-first New Tab launcher page with compact topbar, Spotlight command bar, syntax hints, filterable Bookmarks panel, and Workspaces panel.
public/newtab.css: Compact dark/light forest-sage styling for the New Tab launcher, domain monograms, filter pills, and workspace mode indicators.
public/newtab-theme.js: Head-loaded theme bootstrapper synchronizing `dockmarkAppearanceV1` across `localStorage` and `chrome.storage.local`.
public/newtab-i18n.js: Head-loaded EN/zh-CN localization runtime (`window.dockmarkI18n`) synchronizing `dockmarkLocaleV1` and translating static/dynamic New Tab copy.
public/newtab-auth.js: Fetch wrapper injecting `Authorization: Bearer` for paired `/api/*` requests and routing `#manage` clicks to `/app`.
public/newtab.js: Core New Tab launcher state, snapshot rendering, Category/`@Collection` filter pills, theme/locale quick toggles, and command execution.
public/newtab-library-cache.js: Single-pass cloud refresh override caching bookmarks, tags, Smart Collections, Inbox IDs, Sessions, appearance, and locale atomically.
public/newtab-search.js: Local-first `#tag` filtering, Smart Collection search, and `@Collection` browsing layer over `buildResults`.
public/newtab-ux.js: Bare `!` bang suggestions, Session search/restore, Shift/Ctrl+Enter open modifiers, `/` focus shortcut, and launcher focus messaging.
public/newtab-parity.js: Canonical Web Launcher result ranking, eight-result cap with default Search slot, localized result-kind badges, and Escape-to-blur.
public/newtab.html: Local-first New Tab launcher shell loading `newtab-theme.js` in `<head>` and WXT-compiled `newtab-app.js` at the end of `<body>`, with composite command bar, `×` clear button, syntax hints, filterable Bookmarks, and Workspaces.
public/newtab.css: Compact dark/light forest-sage styling for the New Tab launcher, outer-focus composite command bar, domain monograms, filter pills, and workspace mode indicators.
public/newtab-theme.js: Head-loaded zero-FOUC theme and locale attribute bootstrapper synchronizing `dockmarkAppearanceV1` across `localStorage` and `chrome.storage.local`.
public/newtab-icon.svg: Adaptive light/dark `D·` SVG favicon for extension pages.
public/icons/: Packaged PNG extension icons (`dockmark-16.png`, `dockmark-32.png`, `dockmark-48.png`, `dockmark-128.png`).

Expand Down
Loading
Loading