Commit bbf6254
committed
feat: Implement centralized artificial state management for UI feedback
- Added `createArtificialStateManager` to manage loading and error states.
- Updated `useUIState` hook to utilize the artificial state manager for immediate UI feedback.
- Enhanced `injected.ts` to handle cleanup of subscriptions and manage state updates.
- Refactored `PopupApp` to integrate new `usePopupData` hook and pass tab ID to `useUIState`.
- Removed obsolete `state-sync.ts` and `storage-manager.ts` files.
- Introduced new storage management system with tab-scoped storage for isolation.
- Implemented action queue for storage operations to handle asynchronous updates.
- Added cleanup mechanisms for inactive tabs and improved subscription management.
- Updated message types to include icon updates for better communication between scripts.1 parent b75ee0c commit bbf6254
File tree
33 files changed
+1749
-803
lines changed- public
- src
- background
- components
- layout
- query
- content
- hooks
- injected
- popup
- storage
- base
- impl
- types
- utils
33 files changed
+1749
-803
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| 97 | + | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| |||
0 commit comments