Improve settings #168
No reviewers
Labels
No labels
bug
dependencies
docker
documentation
duplicate
enhancement
good first issue
help wanted
invalid
javascript
question
rust
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: andras/vault-link#168
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "asch/explore"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request introduces Docker healthcheck support for the local client CLI and removes telemetry and error reporting dependencies from the Obsidian plugin. It also adds an option to enable telemetry in the CLI and plugin settings, improves connection status reporting, and updates some package dependencies.
Docker healthcheck and CLI improvements:
healthcheck.jsscript and Docker healthcheck configuration to the CLI Dockerfile, allowing containers to report healthy status based on sync connection. The CLI now writes connection status to a health file for the healthcheck to read. (frontend/local-client-cli/Dockerfile,frontend/local-client-cli/src/cli.ts,frontend/local-client-cli/src/healthcheck.ts,frontend/local-client-cli/webpack.config.js) [1] [2] [3] [4] [5]--healthCLI argument and health file handling in argument parsing and main logic. (frontend/local-client-cli/src/args.ts,frontend/local-client-cli/src/cli.ts) [1] [2] [3] [4] [5]--enable-telemetryCLI option and passed it into client settings. (frontend/local-client-cli/src/args.ts,frontend/local-client-cli/src/cli.ts) [1] [2] [3] [4]Obsidian plugin telemetry and error reporting:
frontend/obsidian-plugin/package.json,frontend/obsidian-plugin/src/vault-link-plugin.ts,frontend/package-lock.json) [1] [2] [3] [4] [5]frontend/obsidian-plugin/src/views/settings/settings-tab.ts) [1] [2]Dependency updates and code improvements:
reconcile-textdependency version and removed unused dependencies (virtual-scroller, Plausible) from package files. (frontend/obsidian-plugin/package.json,frontend/package-lock.json) [1] [2] [3] [4] [5] [6]frontend/local-client-cli/src/cli.ts,frontend/obsidian-plugin/src/views/settings/settings-tab.ts) [1] [2]Let me know if you want more details about any specific change!
Pull Request Overview
This pull request adds Docker healthcheck support to the CLI and introduces opt-in telemetry for both the CLI and Obsidian plugin, while removing hardcoded telemetry from the plugin. It also includes cache management improvements and dependency updates.
Key changes:
Reviewed Changes
Copilot reviewed 17 out of 19 changed files in this pull request and generated 3 comments.
Show a summary per file
Files not reviewed (1)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
@ -119,6 +136,21 @@ async function main(): Promise<void> {nativeLineEndings: process.platform === "win32" ? "\r\n" : "\n"The setInterval creates an untracked timer that will continue running indefinitely. Consider storing the timer reference and clearing it during cleanup or process termination to prevent potential resource leaks.
@ -0,0 +1,66 @@#!/usr/bin/env nodeThe type guard always returns true for any non-null object, failing to validate the actual structure of NetworkConnectionStatus. This will pass invalid objects that lack required properties like isSuccessful, isWebSocketConnected, or serverMessage, leading to runtime errors when those properties are accessed on line 44.
The tooltip repeats the exact same text as the description (setDesc). Tooltips should provide additional context or clarification, not duplicate the description verbatim. Either remove the tooltip or provide supplementary information.