Commit a8ffe35
authored
🤖 fix: preserve review state when renaming workspaces (#1044)
The `getReviewStateKey` function was defined locally in
`useReviewState.ts` but not included in
`PERSISTENT_WORKSPACE_KEY_FUNCTIONS`, so review state (which hunks were
marked as read) was not migrated during workspace rename.
**Fix:** Moved `getReviewStateKey` to `storage.ts` and added it to the
migration list.
_Generated with `mux`_1 parent 2696839 commit a8ffe35
File tree
2 files changed
+11
-7
lines changed- src
- browser/hooks
- common/constants
2 files changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 16 | | |
23 | 17 | | |
24 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
195 | 204 | | |
196 | 205 | | |
197 | 206 | | |
| |||
276 | 285 | | |
277 | 286 | | |
278 | 287 | | |
| 288 | + | |
279 | 289 | | |
280 | 290 | | |
281 | 291 | | |
| |||
0 commit comments