2026-03-25 10:37:52 +01:00
|
|
|
/** A single pinned-property config item from a Type's `_pinned_properties` list. */
|
|
|
|
|
export interface PinnedPropertyConfig {
|
|
|
|
|
key: string
|
|
|
|
|
icon: string | null
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-14 18:54:27 +01:00
|
|
|
export interface VaultEntry {
|
|
|
|
|
path: string
|
|
|
|
|
filename: string
|
|
|
|
|
title: string
|
|
|
|
|
isA: string | null
|
|
|
|
|
aliases: string[]
|
|
|
|
|
belongsTo: string[]
|
|
|
|
|
relatedTo: string[]
|
|
|
|
|
status: string | null
|
2026-03-18 01:56:33 +01:00
|
|
|
// Note: owner and cadence are now stored in the generic `properties` map,
|
|
|
|
|
// accessed via entry.properties?.Owner and entry.properties?.Cadence
|
2026-02-21 16:36:06 +01:00
|
|
|
archived: boolean
|
2026-02-21 16:52:28 +01:00
|
|
|
trashed: boolean
|
|
|
|
|
trashedAt: number | null
|
2026-02-14 18:54:27 +01:00
|
|
|
modifiedAt: number | null
|
2026-02-15 12:54:11 +01:00
|
|
|
createdAt: number | null
|
2026-02-14 18:54:27 +01:00
|
|
|
fileSize: number
|
2026-02-17 17:14:29 +01:00
|
|
|
snippet: string
|
2026-02-26 20:50:29 +01:00
|
|
|
wordCount: number
|
2026-02-17 19:08:42 +01:00
|
|
|
/** Generic relationship fields: any frontmatter key whose value contains wikilinks. */
|
|
|
|
|
relationships: Record<string, string[]>
|
2026-02-21 13:23:10 +01:00
|
|
|
/** Phosphor icon name (kebab-case) for Type entries, e.g. "cooking-pot" */
|
|
|
|
|
icon: string | null
|
|
|
|
|
/** Accent color key for Type entries: "red" | "purple" | "blue" | "green" | "yellow" | "orange" */
|
|
|
|
|
color: string | null
|
2026-02-21 17:27:19 +01:00
|
|
|
/** Display order for Type entries in sidebar (lower = higher). null = use default order. */
|
|
|
|
|
order: number | null
|
2026-03-02 02:01:21 +01:00
|
|
|
/** Custom sidebar section label for Type entries, overriding auto-pluralization. */
|
|
|
|
|
sidebarLabel: string | null
|
2026-03-02 08:37:06 +01:00
|
|
|
/** Markdown template for Type entries. Pre-fills new notes created with this type. */
|
|
|
|
|
template: string | null
|
2026-03-03 11:22:04 +01:00
|
|
|
/** Default sort preference for the note list of this Type. Format: "option:direction". */
|
|
|
|
|
sort: string | null
|
2026-03-05 15:26:21 +01:00
|
|
|
/** Default view mode for the note list of this Type: "all", "editor-list", or "editor-only". */
|
|
|
|
|
view: string | null
|
2026-03-06 21:33:47 +01:00
|
|
|
/** Whether this Type is visible in the sidebar. Defaults to true when absent. */
|
|
|
|
|
visible: boolean | null
|
2026-02-25 15:04:49 +01:00
|
|
|
/** All wikilink targets found in the note content. Extracted from [[target]] patterns. */
|
|
|
|
|
outgoingLinks: string[]
|
2026-03-03 02:31:18 +01:00
|
|
|
/** Custom scalar frontmatter properties (non-relationship, non-structural). */
|
|
|
|
|
properties: Record<string, string | number | boolean | null>
|
2026-03-25 10:37:52 +01:00
|
|
|
/** Pinned properties config for Type entries. Parsed from `_pinned_properties` frontmatter. */
|
|
|
|
|
pinnedProperties: PinnedPropertyConfig[]
|
2026-02-14 18:54:27 +01:00
|
|
|
}
|
2026-02-14 19:35:10 +01:00
|
|
|
|
2026-02-27 18:17:47 +01:00
|
|
|
export type NoteStatus = 'new' | 'modified' | 'clean' | 'pendingSave' | 'unsaved'
|
2026-02-24 15:54:24 +01:00
|
|
|
|
2026-02-14 20:53:52 +01:00
|
|
|
export interface GitCommit {
|
|
|
|
|
hash: string
|
2026-02-15 12:54:11 +01:00
|
|
|
shortHash: string
|
2026-02-14 20:53:52 +01:00
|
|
|
message: string
|
|
|
|
|
author: string
|
|
|
|
|
date: number // unix timestamp
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-26 20:14:46 +01:00
|
|
|
export interface LastCommitInfo {
|
|
|
|
|
shortHash: string
|
|
|
|
|
commitUrl: string | null
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-15 12:54:11 +01:00
|
|
|
export interface ModifiedFile {
|
|
|
|
|
path: string
|
|
|
|
|
relativePath: string
|
|
|
|
|
status: 'modified' | 'added' | 'deleted' | 'untracked' | 'renamed'
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-22 13:38:18 +01:00
|
|
|
export interface Settings {
|
|
|
|
|
anthropic_key: string | null
|
|
|
|
|
openai_key: string | null
|
|
|
|
|
google_key: string | null
|
2026-02-22 17:40:20 +01:00
|
|
|
github_token: string | null
|
2026-02-23 19:56:30 +01:00
|
|
|
github_username: string | null
|
feat: auto-pull vault changes from Git (background sync + conflict handling) (#79)
* feat: add auto-pull vault sync with conflict handling
- Add git_pull, has_remote, get_conflict_files to Rust backend
- Add GitPullResult type and auto_pull_interval_minutes to Settings
- Create useAutoSync hook (pull on launch, focus, periodic interval)
- Update StatusBar with real sync status indicator
- Add pull interval setting to SettingsPanel
- Add mock handler for git_pull
- Update existing tests for new Settings field
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* test: add tests for git pull, settings, and useAutoSync hook
- Add Rust tests: has_remote, git_pull (no_remote, up_to_date, updated),
get_conflict_files, parse_updated_files, GitPullResult serialization
- Add frontend tests: useAutoSync (mount pull, focus pull, conflict,
error, manual trigger, concurrent prevention, no_remote)
- Fix existing settings tests for new auto_pull_interval_minutes field
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* design: add auto-pull-vault wireframes
Frames showing: sync idle, syncing, conflict indicator,
settings sync section, and conflict toast notification.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: add auto_pull_interval_minutes to all Settings literals
Fix build error and test fixtures missing the new field.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: cargo fmt
* ci: re-trigger CI after flaky test
* ci: retrigger after disk space cleanup
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 01:55:16 +01:00
|
|
|
auto_pull_interval_minutes: number | null
|
2026-03-25 16:05:13 +01:00
|
|
|
telemetry_consent: boolean | null
|
|
|
|
|
crash_reporting_enabled: boolean | null
|
|
|
|
|
analytics_enabled: boolean | null
|
|
|
|
|
anonymous_id: string | null
|
2026-02-23 19:56:30 +01:00
|
|
|
}
|
|
|
|
|
|
feat: auto-pull vault changes from Git (background sync + conflict handling) (#79)
* feat: add auto-pull vault sync with conflict handling
- Add git_pull, has_remote, get_conflict_files to Rust backend
- Add GitPullResult type and auto_pull_interval_minutes to Settings
- Create useAutoSync hook (pull on launch, focus, periodic interval)
- Update StatusBar with real sync status indicator
- Add pull interval setting to SettingsPanel
- Add mock handler for git_pull
- Update existing tests for new Settings field
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* test: add tests for git pull, settings, and useAutoSync hook
- Add Rust tests: has_remote, git_pull (no_remote, up_to_date, updated),
get_conflict_files, parse_updated_files, GitPullResult serialization
- Add frontend tests: useAutoSync (mount pull, focus pull, conflict,
error, manual trigger, concurrent prevention, no_remote)
- Fix existing settings tests for new auto_pull_interval_minutes field
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* design: add auto-pull-vault wireframes
Frames showing: sync idle, syncing, conflict indicator,
settings sync section, and conflict toast notification.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: add auto_pull_interval_minutes to all Settings literals
Fix build error and test fixtures missing the new field.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: cargo fmt
* ci: re-trigger CI after flaky test
* ci: retrigger after disk space cleanup
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 01:55:16 +01:00
|
|
|
export interface GitPullResult {
|
|
|
|
|
status: 'up_to_date' | 'updated' | 'conflict' | 'no_remote' | 'error'
|
|
|
|
|
message: string
|
|
|
|
|
updatedFiles: string[]
|
|
|
|
|
conflictFiles: string[]
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-07 00:31:46 +01:00
|
|
|
export interface GitPushResult {
|
|
|
|
|
status: 'ok' | 'rejected' | 'auth_error' | 'network_error' | 'error'
|
|
|
|
|
message: string
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-19 09:51:06 +01:00
|
|
|
export type SyncStatus = 'idle' | 'syncing' | 'error' | 'conflict' | 'pull_required'
|
|
|
|
|
|
|
|
|
|
export interface GitRemoteStatus {
|
|
|
|
|
branch: string
|
|
|
|
|
ahead: number
|
|
|
|
|
behind: number
|
|
|
|
|
hasRemote: boolean
|
|
|
|
|
}
|
feat: auto-pull vault changes from Git (background sync + conflict handling) (#79)
* feat: add auto-pull vault sync with conflict handling
- Add git_pull, has_remote, get_conflict_files to Rust backend
- Add GitPullResult type and auto_pull_interval_minutes to Settings
- Create useAutoSync hook (pull on launch, focus, periodic interval)
- Update StatusBar with real sync status indicator
- Add pull interval setting to SettingsPanel
- Add mock handler for git_pull
- Update existing tests for new Settings field
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* test: add tests for git pull, settings, and useAutoSync hook
- Add Rust tests: has_remote, git_pull (no_remote, up_to_date, updated),
get_conflict_files, parse_updated_files, GitPullResult serialization
- Add frontend tests: useAutoSync (mount pull, focus pull, conflict,
error, manual trigger, concurrent prevention, no_remote)
- Fix existing settings tests for new auto_pull_interval_minutes field
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* design: add auto-pull-vault wireframes
Frames showing: sync idle, syncing, conflict indicator,
settings sync section, and conflict toast notification.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: add auto_pull_interval_minutes to all Settings literals
Fix build error and test fixtures missing the new field.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: cargo fmt
* ci: re-trigger CI after flaky test
* ci: retrigger after disk space cleanup
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 01:55:16 +01:00
|
|
|
|
2026-02-23 19:56:30 +01:00
|
|
|
export interface DeviceFlowStart {
|
|
|
|
|
device_code: string
|
|
|
|
|
user_code: string
|
|
|
|
|
verification_uri: string
|
|
|
|
|
expires_in: number
|
|
|
|
|
interval: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface DeviceFlowPollResult {
|
|
|
|
|
status: 'pending' | 'complete' | 'expired' | 'error'
|
|
|
|
|
access_token: string | null
|
|
|
|
|
error: string | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface GitHubUser {
|
|
|
|
|
login: string
|
|
|
|
|
name: string | null
|
|
|
|
|
avatar_url: string
|
2026-02-22 17:40:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface GithubRepo {
|
|
|
|
|
name: string
|
|
|
|
|
full_name: string
|
|
|
|
|
description: string | null
|
|
|
|
|
private: boolean
|
|
|
|
|
clone_url: string
|
|
|
|
|
html_url: string
|
|
|
|
|
updated_at: string | null
|
2026-02-22 13:38:18 +01:00
|
|
|
}
|
|
|
|
|
|
feat: full-text search with qmd backend and SearchPanel UI (Cmd+Shift+F) (#64)
* feat: add search backend (qmd CLI) and design file
- Add search.rs: qmd integration for keyword (BM25), semantic (vsearch),
and hybrid search modes via CLI JSON output
- Register search_vault Tauri command in lib.rs
- Design file with 3 frames: empty, results, no-results states
- Fix pre-existing test failures: install @tauri-apps/plugin-opener,
add mock in test setup
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add SearchPanel UI with Cmd+Shift+F shortcut
- SearchPanel component: full-text search overlay with keyword/semantic
mode toggle, debounced search (200ms), arrow key navigation, result
count + elapsed time display, note type badges from vault entries
- Cmd+Shift+F shortcut registered in useAppKeyboard
- Mock search_vault handler in mock-tauri for browser dev mode
- SearchResult/SearchResponse types in types.ts
- Tests: 15 new tests for SearchPanel + 2 for keyboard shortcut
- scrollIntoView mock in test setup for jsdom compatibility
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: correct SearchPanel imports for Tauri/browser dual-mode
Use invoke from @tauri-apps/api/core and mockInvoke from mock-tauri
with a searchCall wrapper, fixing the TypeScript build error.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: make test_detect_collection_fallback robust when qmd not installed
* fix: reset localStorage between App tests to prevent view mode state leak
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 17:09:50 +01:00
|
|
|
export interface SearchResult {
|
|
|
|
|
title: string
|
|
|
|
|
path: string
|
|
|
|
|
snippet: string
|
|
|
|
|
score: number
|
|
|
|
|
noteType: string | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface SearchResponse {
|
|
|
|
|
results: SearchResult[]
|
|
|
|
|
elapsedMs: number
|
|
|
|
|
query: string
|
|
|
|
|
mode: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SearchMode = 'keyword' | 'semantic' | 'hybrid'
|
|
|
|
|
|
2026-03-20 21:00:19 +01:00
|
|
|
/** Vault-wide UI configuration stored in ui.config.md at vault root. */
|
2026-03-05 15:26:21 +01:00
|
|
|
export interface VaultConfig {
|
|
|
|
|
zoom: number | null
|
|
|
|
|
view_mode: string | null
|
2026-03-17 11:41:35 +01:00
|
|
|
editor_mode: string | null
|
2026-03-05 15:26:21 +01:00
|
|
|
tag_colors: Record<string, string> | null
|
|
|
|
|
status_colors: Record<string, string> | null
|
|
|
|
|
property_display_modes: Record<string, string> | null
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-05 16:27:29 +01:00
|
|
|
export interface PulseFile {
|
|
|
|
|
path: string
|
|
|
|
|
status: 'added' | 'modified' | 'deleted'
|
|
|
|
|
title: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface PulseCommit {
|
|
|
|
|
hash: string
|
|
|
|
|
shortHash: string
|
|
|
|
|
message: string
|
|
|
|
|
date: number
|
|
|
|
|
githubUrl: string | null
|
|
|
|
|
files: PulseFile[]
|
|
|
|
|
added: number
|
|
|
|
|
modified: number
|
|
|
|
|
deleted: number
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-19 06:41:40 +01:00
|
|
|
export type SidebarFilter = 'all' | 'archived' | 'trash' | 'changes' | 'pulse' | 'inbox'
|
|
|
|
|
|
|
|
|
|
export type InboxPeriod = 'week' | 'month' | 'quarter' | 'all'
|
feat: reorganize menu bar with Go, Note, and Vault menus
Add missing command palette commands to menu bar and reorganize into
logical groups: File, Edit, View, Go, Note, Vault, Window. New menus
expose navigation filters, note actions, vault management, themes, and
git operations. Context-sensitive items (archive, trash, diff, raw
editor, commit, conflicts) are greyed out when not applicable.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 14:13:54 +01:00
|
|
|
|
2026-02-14 19:35:10 +01:00
|
|
|
export type SidebarSelection =
|
feat: reorganize menu bar with Go, Note, and Vault menus
Add missing command palette commands to menu bar and reorganize into
logical groups: File, Edit, View, Go, Note, Vault, Window. New menus
expose navigation filters, note actions, vault management, themes, and
git operations. Context-sensitive items (archive, trash, diff, raw
editor, commit, conflicts) are greyed out when not applicable.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 14:13:54 +01:00
|
|
|
| { kind: 'filter'; filter: SidebarFilter }
|
2026-02-14 19:35:10 +01:00
|
|
|
| { kind: 'sectionGroup'; type: string }
|
|
|
|
|
| { kind: 'entity'; entry: VaultEntry }
|