加入import功能,给sidepanel加了一点背景UI。#89
Merged
martinhamburger merged 2 commits intoabraxas914:mainfrom Apr 7, 2026
Merged
Conversation
There was a problem hiding this comment.
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_DATArequest that runsimportAllDataand 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.