Commit 7101474
feat: v0.3 persistence — collections, history, session restore
Introduces a JSON store at $OS_CONFIG_DIR/hypr/store.json:
- Collections: create/rename/delete collections; save named requests to
them via a dialog; load saved requests into the active tab with one click.
- History: every send is recorded (method, URL, status, duration); capped
at 200 entries; click to restore URL into the active tab; clear-all.
- Session restore: open tabs (method, URL, headers, params, body, auth,
settings) are persisted on each action and restored on launch.
- Sidebar: collapsible left panel with Collections + History sections.
- Fix: method and URL are now per-tab (were previously shared across tabs).
- 5 new store tests (34 total); all existing tests still pass.
- 10 new bound Go methods for the store; App.Store field non-fatally
initialized so the app still runs if the config dir is unavailable.1 parent a161b76 commit 7101474
11 files changed
Lines changed: 1699 additions & 449 deletions
File tree
- frontend
- src
- components
- lib
- wailsjs/go/main
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
10 | 37 | | |
11 | 38 | | |
12 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
37 | 45 | | |
38 | 46 | | |
39 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
0 commit comments