Skip to content

加入import功能,给sidepanel加了一点背景UI。#89

Merged
martinhamburger merged 2 commits intoabraxas914:mainfrom
martinhamburger:main
Apr 7, 2026
Merged

加入import功能,给sidepanel加了一点背景UI。#89
martinhamburger merged 2 commits intoabraxas914:mainfrom
martinhamburger:main

Conversation

@martinhamburger
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings April 7, 2026 05:40
@martinhamburger martinhamburger merged commit c4109fd into abraxas914:main Apr 7, 2026
3 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a JSON import pathway to complement existing export functionality, and refreshes sidepanel Settings UI with more “card/surface” styling (borders, shadows, and grouped Support rows).

Changes:

  • Add “Import JSON” flow in the Data Management panel (file picker → confirm → import → refresh overview).
  • Extend messaging/types/service plumbing to support a new IMPORT_DATA request that runs importAllData and triggers vector re-indexing.
  • UI polish: Settings support section gets a grouped shell + reveal panel; various surfaces gain consistent background/border/shadow styling.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
frontend/src/style.css Adds/adjusts surface styles (borders/backgrounds/shadows) and introduces settings support shell/reveal styles.
frontend/src/sidepanel/pages/SettingsPage.tsx Refactors/rewraps Settings UI markup and applies new support-shell layout/classes.
frontend/src/sidepanel/components/DataManagementPanel.tsx Adds “Import JSON” control and import handling logic (confirm, call importData, feedback).
frontend/src/offscreen/index.ts Adds IMPORT_DATA request handling (calls importAllData, triggers vectorization).
frontend/src/lib/types/index.ts Adds ImportDataResult type and updates formatting.
frontend/src/lib/services/storageService.ts Adds importData(content) service that sends IMPORT_DATA to offscreen and emits VESTI_DATA_UPDATED.
frontend/src/lib/messaging/protocol.ts Adds IMPORT_DATA to request/response typing and maps it to ImportDataResult.
frontend/src/background/index.ts Adds IMPORT_DATA handling in the offscreen-target handler and kicks off vectorization after import.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants