Commit f38fcf3
authored
feat: remove sidebar options, go for history only and pin (#506)
### TL;DR
Simplified the sidebar by consolidating pinned tasks into the history view and removing the folder/repository view.
### What changed?
- Removed the view mode selector and consolidated all views into a single unified view
- Integrated pinned tasks directly into the History view as a separate section at the top
- Removed the standalone `PinnedView` component and merged its functionality into `HistoryView`
- Removed repository/folder-related components and functionality:
- Deleted `SortableFolderSection.tsx`
- Deleted `ViewModeSelector.tsx`
- Deleted `NewTaskItem.tsx`
- Simplified the sidebar footer to only show the "New task" button (removed the "Add repository" button)
- Updated the sidebar data handling to filter out pinned tasks from the regular history sections
### How to test?
1. Open the application and check that the sidebar now shows a unified view with pinned tasks at the top (if any exist)
2. Pin a task and verify it appears in the "Pinned" section at the top of the sidebar
3. Unpin a task and verify it moves back to the appropriate history section
4. Create a new task and verify it appears in the history view
5. Verify that the sidebar footer consistently shows the "New task" button
### Why make this change?
This change simplifies the user interface by consolidating multiple views into a single, more intuitive view. By removing the separate modes (history, pinned, folders) and integrating pinned tasks directly into the main view, the sidebar becomes more straightforward and requires fewer clicks to navigate between different types of tasks. This streamlined approach improves usability by keeping important tasks visible and accessible at all times.1 parent fa2f6ff commit f38fcf3
9 files changed
Lines changed: 92 additions & 525 deletions
File tree
- apps/array/src/renderer/features/sidebar
- components
- items
- hooks
- stores
Lines changed: 72 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| |||
65 | 71 | | |
66 | 72 | | |
67 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
68 | 117 | | |
69 | 118 | | |
| 119 | + | |
70 | 120 | | |
71 | 121 | | |
72 | 122 | | |
| |||
76 | 126 | | |
77 | 127 | | |
78 | 128 | | |
| 129 | + | |
79 | 130 | | |
80 | 131 | | |
81 | 132 | | |
82 | 133 | | |
83 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
84 | 155 | | |
85 | 156 | | |
86 | 157 | | |
| |||
Lines changed: 0 additions & 105 deletions
This file was deleted.
Lines changed: 4 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | | - | |
9 | 6 | | |
10 | 7 | | |
11 | | - | |
12 | 8 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 9 | | |
22 | 10 | | |
23 | 11 | | |
24 | 12 | | |
25 | 13 | | |
26 | | - | |
27 | | - | |
28 | 14 | | |
29 | 15 | | |
30 | 16 | | |
| |||
38 | 24 | | |
39 | 25 | | |
40 | 26 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
57 | 31 | | |
58 | 32 | | |
59 | 33 | | |
| |||
0 commit comments