Skip to content

Implement notes/UI improvements - #5

Merged
RickyDane merged 1 commit into
mainfrom
feature/update_note
Jun 21, 2026
Merged

Implement notes/UI improvements#5
RickyDane merged 1 commit into
mainfrom
feature/update_note

Conversation

@RickyDane

Copy link
Copy Markdown
Owner

Bumps version to 0.2.1 and includes latest note update, preview toggle, and search centering changes.

@coderabbitai

coderabbitai Bot commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: bf5e6ad9-b800-4bc4-9f4b-58a6251c8c02

📥 Commits

Reviewing files that changed from the base of the PR and between 4a0f207 and 470ea1f.

⛔ Files ignored due to path filters (1)
  • src-tauri/Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (8)
  • package.json
  • src-tauri/Cargo.toml
  • src-tauri/src/lib.rs
  • src-tauri/tauri.conf.json
  • src/App.tsx
  • src/components/NotesView.tsx
  • src/components/ToolCallsView.tsx
  • src/plugins/notes.tsx

📝 Walkthrough

Summary by CodeRabbit

  • New Features

    • Window now automatically centers on the monitor where your cursor is located
    • Notes editor features a new Preview/Edit toggle for streamlined note editing
    • AI assistant can now update existing notes directly
  • Bug Fixes

    • Improved window positioning behavior during launcher height transitions

Walkthrough

Version bumped to 0.2.1. A new center_main_window Tauri command centers the window on the cursor's monitor, integrated into the frontend resize scheduler via a ref-based flag. A new update_note plugin tool invokes the backend and dispatches a save event. NotesView gains a preview/edit mode toggle driven by isEditMode state.

Changes

Window Centering via center_main_window

Layer / File(s) Summary
center_main_window Rust command and handler registration
src-tauri/src/lib.rs
Implements a new Tauri command that resolves the monitor under the mouse cursor (falling back to primary), computes a centered logical position, and calls set_position; registers it in generate_handler!.
Frontend resize scheduler and centering integration
src/App.tsx
Introduces shouldCenterOnNextResizeRef set on view changes; updates scheduleLauncherResize to early-return when no size change or centering is needed, and calls invoke("center_main_window") instead of appWindow.center().

update_note Tool and NotesView Preview/Edit Mode

Layer / File(s) Summary
update_note tool definition and execution in notesPlugin
src/plugins/notes.tsx
Adds the update_note tool with id/title/content JSON schema; executeTool invokes the backend command, dispatches gquick-note-saved on success, and returns a typed success or error payload.
update_note display in ToolCallsView and chat system prompt
src/components/ToolCallsView.tsx, src/App.tsx
Adds a switch case for update_note in getToolDetails with StickyNote icon and completed/in-progress description strings; adds update_note to toolsDescriptionMap and the Data Management bullet list.
NotesView isEditMode state and preview/edit toggle UI
src/components/NotesView.tsx
Introduces isEditMode state; updates startEdit to accept editDirectly; resets isEditMode on save and cancel; refactors the detail panel to render a Preview/Edit header toggle and swap between Markdown preview and editable form; updates card click (preview mode), edit button (edit mode), and copy/delete handlers to stop propagation.
Version bump to 0.2.1
package.json, src-tauri/Cargo.toml, src-tauri/tauri.conf.json
Bumps the version field from 0.2.0 to 0.2.1 in all three manifest files.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 42.86% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Implement notes/UI improvements' broadly covers the main changes but lacks specificity about the concrete improvements included (version bump, preview toggle, centering).
Description check ✅ Passed The description directly relates to the changeset, mentioning version bump, note updates, preview toggle, and search window centering that are all present in the changes.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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

Comment @coderabbitai help to get the list of available commands and usage tips.

@RickyDane
RickyDane merged commit 163f188 into main Jun 21, 2026
8 checks passed
@RickyDane
RickyDane deleted the feature/update_note branch June 21, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant