Skip to content

fix(raycast-import): fix Settings Backup button and surface parse errors (#1097) - #1098

Merged
Xoshbin merged 1 commit into
mainfrom
fix/1097-raycast-import-backup-and-errors
Nov 20, 2026
Merged

Xoshbin merged 1 commit into
mainfrom
fix/1097-raycast-import-backup-and-errors

Conversation

@Xoshbin

@Xoshbin Xoshbin commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner
  • Update BackupTab to emit asyar:run-command instead of the obsolete open-raycast-import event
  • Accept empty JSON array ([]) exports as an empty ImportBundle
  • Display parse errors inline in the Raycast importer wizard

What changed

  • Before (issue / current behavior):
  • After (fix / new behavior):

Affected areas

  • Launcher UI / UX (visuals, interactions, keyboard shortcuts, settings)
  • SDK / Extensions (asyar-sdk, extension runtime, IPC contracts, manifest)
  • Rust Backend / Platform (Tauri commands, search, storage, OS integration)
  • Docs / Tooling / Other (docs, CI, build scripts, locales)

Manual smoke test & Validation

  • I manually smoke-tested this in the running app (pnpm dev) and visually verified the fix/feature works.

AI usage

  • AI tools helped produce this change.
  • I ran the asyar-contribution skill (.agents/skills/asyar-contribution/SKILL.md), followed it, and reviewed every generated line.

Boundaries

  • Zero-hardcoded-strings i18n policy respected (if UI strings were added/changed).
  • Third-party extension compatibility preserved (no breaking changes to published extension contracts without deprecation/boundary adapter).
  • Hot paths remain fast and unblocked (window reveal, keystroke search, and 120 FPS UI responsiveness).
  • pnpm check:ci (or the relevant inner-loop checks) passes locally.

…ors (#1097)

- Update BackupTab to emit `asyar:run-command` instead of the obsolete `open-raycast-import` event
- Accept empty JSON array (`[]`) exports as an empty ImportBundle
- Display parse errors inline in the Raycast importer wizard
@github-actions github-actions Bot added the bug Something isn't working label Nov 20, 2026
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Raycast import action now emits the importer command. Empty JSON arrays parse as empty snippet bundles. Parse failures are stored in importer state and displayed in the file-selection view.

Changes

Raycast import

Layer / File(s) Summary
Launch the Raycast importer
asyar-launcher/src/routes/settings/tabs/BackupTab.svelte, asyar-launcher/src/routes/settings/tabs/BackupTab.test.ts
The Backup tab emits and awaits asyar:run-command with the Raycast importer command ID. The test checks the emitted event and command ID.
Handle empty JSON arrays
asyar-launcher/src-tauri/src/raycast_import/mod.rs
An empty array now returns an empty bundle with SnippetsJson source. The test checks the source and empty collections.
Store and display parse errors
asyar-launcher/src/built-in-features/raycast-import/raycastImportState.svelte.ts, asyar-launcher/src/built-in-features/raycast-import/DefaultView.svelte, asyar-launcher/src/built-in-features/raycast-import/raycastImportState.svelte.test.ts
The importer state captures parse errors and clears them when a file is chosen, parsing starts, or state resets. The pick view displays the error. Tests check capture and clearing behavior.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related issues

  • Issue 1097: The changes address the reported inactive import action and the rejection of empty JSON arrays. The provided context does not confirm whether a full Raycast 1.13.1.0 export now imports successfully.
Merge Risk: Minimal · up to 12dae

The Backup tab's Raycast import button now triggers the importer command, empty JSON array exports are accepted, and parse errors appear inline. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the two real changes: fixing the Settings Backup button and surfacing parse errors in the Raycast importer. The summary shows both. It also omits the empty-array ([]) import change, …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title names the two real changes: fixing the Settings Backup button and surfacing parse errors in the Raycast importer. The summary shows both. It also omits the empty-array ([]) import change, which is a minor part of the PR, so the title is specific and accurate.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between edf2ef6 and 12daee4.

Files selected for processing: 6

  • asyar-launcher/src-tauri/src/raycast_import/mod.rs
  • asyar-launcher/src/built-in-features/raycast-import/DefaultView.svelte
  • asyar-launcher/src/built-in-features/raycast-import/raycastImportState.svelte.test.ts
  • asyar-launcher/src/built-in-features/raycast-import/raycastImportState.svelte.ts
  • asyar-launcher/src/routes/settings/tabs/BackupTab.svelte
  • asyar-launcher/src/routes/settings/tabs/BackupTab.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@Xoshbin
Xoshbin merged commit 05ac087 into main Nov 20, 2026
18 of 29 checks passed
@Xoshbin
Xoshbin deleted the fix/1097-raycast-import-backup-and-errors branch November 20, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant