Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .github/actions/desktop-e2e-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ runs:
id: e2e-test
run: |
# Run tests and capture output to log file
pnpm -F e2e-blackbox test 2>&1 | tee "${{ env.E2E_LOGS_DIR }}/e2e-test-output.log"
pnpm -F e2e-blackbox e2e 2>&1 | tee "${{ env.E2E_LOGS_DIR }}/e2e-test-output.log"
exit ${PIPESTATUS[0]}
env:
APP_BINARY_PATH: ${{ env.APP_BINARY_PATH }}
Expand Down
157 changes: 28 additions & 129 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ tauri-plugin-local-stt = { path = "plugins/local-stt" }
tauri-plugin-misc = { path = "plugins/misc" }
tauri-plugin-network = { path = "plugins/network" }
tauri-plugin-notification = { path = "plugins/notification" }
tauri-plugin-path2 = { path = "plugins/path2" }
tauri-plugin-pdf = { path = "plugins/pdf" }
tauri-plugin-permissions = { path = "plugins/permissions" }
tauri-plugin-settings = { path = "plugins/settings" }
Expand Down
1 change: 1 addition & 0 deletions apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"@hypr/plugin-misc": "workspace:*",
"@hypr/plugin-network": "workspace:*",
"@hypr/plugin-notification": "workspace:*",
"@hypr/plugin-path2": "workspace:*",
"@hypr/plugin-pdf": "workspace:*",
"@hypr/plugin-permissions": "workspace:*",
"@hypr/plugin-settings": "workspace:*",
Expand Down
1 change: 1 addition & 0 deletions apps/desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ tauri-plugin-network = { workspace = true }
tauri-plugin-notification = { workspace = true }
tauri-plugin-opener = { workspace = true }
tauri-plugin-os = { workspace = true }
tauri-plugin-path2 = { workspace = true }
tauri-plugin-pdf = { workspace = true }
tauri-plugin-permissions = { workspace = true }
tauri-plugin-prevent-default = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions apps/desktop/src-tauri/capabilities/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
"permissions:default",
"settings:default",
"sfx:default",
"path2:default",
"pdf:default",
"autostart:default",
{
Expand Down
1 change: 1 addition & 0 deletions apps/desktop/src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ pub async fn main() {
.plugin(tauri_plugin_export::init())
.plugin(tauri_plugin_os::init())
.plugin(tauri_plugin_fs::init())
.plugin(tauri_plugin_path2::init())
.plugin(tauri_plugin_pdf::init())
.plugin(tauri_plugin_process::init())
.plugin(tauri_plugin_misc::init())
Expand Down
6 changes: 4 additions & 2 deletions apps/desktop/src/store/tinybase/localPersister2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ import { SCHEMA, type Schemas } from "@hypr/store";

import { createLocalPersister2 } from "./localPersister2";

vi.mock("@tauri-apps/api/path", () => ({
appDataDir: vi.fn().mockResolvedValue("/mock/data/dir/"),
vi.mock("@hypr/plugin-path2", () => ({
commands: {
base: vi.fn().mockResolvedValue("/mock/data/dir/"),
},
}));

vi.mock("@tauri-apps/plugin-fs", () => ({
Expand Down
4 changes: 2 additions & 2 deletions apps/desktop/src/store/tinybase/localPersister2.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { appDataDir } from "@tauri-apps/api/path";
import { exists, mkdir } from "@tauri-apps/plugin-fs";
import { createCustomPersister } from "tinybase/persisters/with-schemas";
import type { MergeableStore, OptionalSchemas } from "tinybase/with-schemas";

import { commands, type JsonValue } from "@hypr/plugin-export";
import { commands as path2Commands } from "@hypr/plugin-path2";
import { type EnhancedNote, type Session } from "@hypr/store";
import { isValidTiptapContent } from "@hypr/tiptap/shared";

Expand All @@ -28,7 +28,7 @@ export function createLocalPersister2<Schemas extends OptionalSchemas>(
const batchItems: [JsonValue, string][] = [];
const dirsToCreate = new Set<string>();

const dataDir = await appDataDir();
const dataDir = await path2Commands.base();

for (const [id, row] of Object.entries(tables?.enhanced_notes ?? {})) {
// @ts-ignore
Expand Down
Loading