Commit f0e077a
authored
feat: add tabs (#80)
* feat: integrate Tabs and Footer components into ExcalidrawWrapper
- Added a new Tabs component for enhanced functionality within the Excalidraw interface.
- Integrated the Footer component to house the Tabs, improving layout and user interaction.
- Updated ExcalidrawWrapper to conditionally render the Footer and Tabs based on the excalidrawAPI availability.
* chore: update @atyrode/excalidraw dependency to version 0.18.0-5
* chore: update yarn lockfile
* chore: update @atyrode/excalidraw dependency to version 0.18.0-6
* refactor: restructure pad folder
* chore: update @atyrode/excalidraw dependency to version 0.18.0-7
* feat: add Tabs component styling and functionality
- Introduced a new Tabs.scss file for styling the Tabs component.
- Updated Tabs.tsx to implement a tabs bar with a new button for creating a new pad, enhancing user interaction within the Excalidraw interface.
* chore: update @atyrode/excalidraw dependency to version 0.18.0-8
* chore: update @atyrode/excalidraw dependency to version 0.18.0-8
* fix: (temp) work around cytoscape issue by forcing version
* refactor: replace console.log with console.debug for build info and logout messages
- Updated logging statements in vite.config.mts, BuildVersionCheck.tsx, and MainMenu.tsx to use console.debug instead of console.log for improved log level management.
- Added a prefix '[pad.ws]' to debug messages for better context in logs.
* refactor: remove main execution block from CoderAPI
- Deleted the main execution block in coder.py that instantiated CoderAPI and performed workspace status checks, streamlining the code for better modularity.
* feat: add tabs
- Updated PadRepository to return pads sorted by creation timestamp for better organization.
- Refactored PadService to include type annotations for pads and removed redundant checks for existing pads during creation and updates.
- Implemented new API endpoints in PadRouter for updating, renaming, and deleting pads, enhancing user interaction with pad data.
- Introduced a context menu in the frontend for pad actions (rename, delete) and improved pad selection handling in Tabs component.
- Added utility functions for managing pad data in local storage, ensuring a seamless user experience across sessions.
* feat: add pad backups retrieval functionality
- Implemented a new API endpoint to retrieve backups for a specific pad, including ownership verification and backup data formatting.
- Updated frontend API hooks to support fetching pad backups and integrated this functionality into the BackupsDialog component.
- Enhanced the context menu and tab components to improve user interaction with pad actions and backup management.
- Refactored styles for the tab context menu to improve UI consistency and responsiveness.
* chore: update @atyrode/excalidraw dependency to version 0.18.0-9
* chore: add clsx dependency and update excalidraw version in package.json and yarn.lock
* feat: enhance context menu and tab functionality
- Refactored TabContextMenu and Tabs components to improve user interaction with context menus.
- Introduced a new Popover component for better positioning and handling of context menus.
- Updated styles for context menus to ensure consistency and responsiveness across different screen sizes.
- Added functionality for dynamic context menu items based on user actions, including rename and delete options.
- Improved tooltip display logic in Tabs component for better user experience with long pad names.
* feat: enhance tab navigation and styling
- Added scroll buttons for navigating through tabs, improving user experience when there are more pads than can fit in the view.
- Implemented functionality to store and retrieve the current scroll index in local storage, ensuring consistent tab visibility across sessions.
- Updated tab styles for better layout and responsiveness, including new styles for tab content and positioning.
- Refactored Tabs component to handle horizontal scrolling via mouse wheel events, enhancing navigation efficiency.
* feat: improve tab visibility and tooltip display
- Enhanced the Tabs component to ensure newly created pads are visible by adjusting the start pad index based on the current pads in the query cache.
- Updated tooltip logic to display truncated pad names more effectively, improving user experience with long pad names.
* style: update tab button borders for improved aesthetics
- Removed border from tab buttons for a cleaner look.
- Added a solid border to active tab buttons to enhance visibility.
- Adjusted styles for new tab button container to maintain consistency in design.
* feat: add PadsDialog for managing pads
- Introduced a new PadsDialog component to facilitate pad management, including renaming and deleting pads.
- Updated ExcalidrawWrapper and MainMenuConfig to integrate the new PadsDialog, allowing users to access it from the main menu.
- Enhanced the Tabs component to handle active pad changes via custom events, improving synchronization across components.
- Added styles for the PadsDialog to ensure a consistent and user-friendly interface.
- Implemented analytics tracking for pad creation, renaming, and deletion events to enhance user insights.1 parent e8550e5 commit f0e077a
File tree
29 files changed
+2331
-249
lines changed- src
- backend
- database
- repository
- service
- routers
- frontend
- src
- api
- pad
- buttons
- ui
- utils
29 files changed
+2331
-249
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | 66 | | |
72 | 67 | | |
73 | 68 | | |
| |||
86 | 81 | | |
87 | 82 | | |
88 | 83 | | |
89 | | - | |
| 84 | + | |
90 | 85 | | |
91 | 86 | | |
92 | 87 | | |
| |||
105 | 100 | | |
106 | 101 | | |
107 | 102 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | 103 | | |
115 | 104 | | |
116 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 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 | + | |
12 | 36 | | |
13 | | - | |
14 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
15 | 40 | | |
16 | 41 | | |
17 | 42 | | |
18 | 43 | | |
19 | 44 | | |
20 | | - | |
| 45 | + | |
21 | 46 | | |
22 | | - | |
23 | | - | |
| 47 | + | |
| 48 | + | |
24 | 49 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 50 | + | |
| 51 | + | |
37 | 52 | | |
38 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
39 | 64 | | |
40 | | - | |
| 65 | + | |
41 | 66 | | |
42 | 67 | | |
43 | 68 | | |
44 | 69 | | |
45 | 70 | | |
46 | 71 | | |
47 | 72 | | |
48 | | - | |
49 | | - | |
| 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 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
50 | 144 | | |
51 | 145 | | |
52 | 146 | | |
53 | | - | |
| 147 | + | |
54 | 148 | | |
55 | 149 | | |
56 | 150 | | |
57 | 151 | | |
58 | 152 | | |
59 | | - | |
| 153 | + | |
60 | 154 | | |
61 | 155 | | |
62 | 156 | | |
63 | 157 | | |
64 | 158 | | |
65 | | - | |
66 | | - | |
| 159 | + | |
| 160 | + | |
67 | 161 | | |
68 | 162 | | |
69 | 163 | | |
70 | 164 | | |
71 | 165 | | |
72 | 166 | | |
73 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
74 | 178 | | |
75 | | - | |
76 | | - | |
| 179 | + | |
| 180 | + | |
77 | 181 | | |
78 | 182 | | |
79 | 183 | | |
| |||
96 | 200 | | |
97 | 201 | | |
98 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
99 | 209 | | |
100 | 210 | | |
101 | 211 | | |
102 | 212 | | |
103 | | - | |
| 213 | + | |
104 | 214 | | |
105 | 215 | | |
106 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
107 | 223 | | |
108 | 224 | | |
109 | 225 | | |
110 | | - | |
| 226 | + | |
111 | 227 | | |
112 | 228 | | |
113 | 229 | | |
| |||
121 | 237 | | |
122 | 238 | | |
123 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
124 | 286 | | |
125 | 287 | | |
126 | 288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
| |||
0 commit comments