- Notifications
You must be signed in to change notification settings - Fork928
Commitd28e973
feat: Workspace StatusBar (#1362)
* Move component and prep* Make WorkspaceSection more reusable* Lay out elements* Layout tweaks* Add outdated to Workspace type* Fill out status bar component* Format* Add transition to types* Add api handlers for build toggle* Format* Parallelize machine* Lay out basics of build submachine* Pipe start and stop events through - needs status* Attempt at a machineIt's so big, but collapsing start and stop made it hard to distinguish retry from toggle* Update mock* Render status and buttons* Fix type error on template page* Move Settings* Format* Keep refreshed workspace* Make it switch workspaces* Lint* Fix relative api path* Test* Fix polling* Add loading workspace state* Format* Add stub settings page* Format* Lint* Get rid of let* Add update* Make start use version idImportant for update* Fix imports* Add polling for outdated* Rely on context instead of finite state for status* Handle canceling* Fix tests* Format* Display errors so users know when button presses didn't work* Fix api typo, remove logging* Lint* Simplify typeCo-authored-by: G r e y <grey@coder.com>* Add type, extract helperCo-authored-by: G r e y <grey@coder.com>1 parent8d53c0e commitd28e973
File tree
17 files changed
+725
-125
lines changed- site/src
- api
- components
- Workspace
- WorkspaceSection
- WorkspaceStatusBar
- pages
- WorkspacePage
- WorkspaceSettingsPage
- testHelpers
- theme
- xServices/workspace
17 files changed
+725
-125
lines changedLines changed: 19 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| 21 | + | |
21 | 22 |
| |
22 | 23 |
| |
23 | 24 |
| |
| |||
75 | 76 |
| |
76 | 77 |
| |
77 | 78 |
| |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 |
| - | |
84 |
| - | |
85 |
| - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
86 | 97 |
| |
87 | 98 |
| |
88 | 99 |
| |
|
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
| 3 | + | |
3 | 4 |
| |
4 | 5 |
| |
5 | 6 |
| |
| |||
132 | 133 |
| |
133 | 134 |
| |
134 | 135 |
| |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
135 | 151 |
| |
136 | 152 |
| |
137 | 153 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| 13 | + | |
| 14 | + |
Lines changed: 38 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
1 | 2 |
| |
2 | 3 |
| |
3 |
| - | |
| 4 | + | |
4 | 5 |
| |
5 | 6 |
| |
6 | 7 |
| |
| |||
11 | 12 |
| |
12 | 13 |
| |
13 | 14 |
| |
14 |
| - | |
15 |
| - | |
| 15 | + | |
| 16 | + | |
16 | 17 |
| |
17 | 18 |
| |
18 | 19 |
| |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 |
| |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + |
Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 30 additions & 54 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
2 |
| - | |
3 | 1 |
| |
4 | 2 |
| |
5 |
| - | |
6 | 3 |
| |
7 |
| - | |
8 | 4 |
| |
| 5 | + | |
9 | 6 |
| |
10 | 7 |
| |
11 |
| - | |
| 8 | + | |
12 | 9 |
| |
13 | 10 |
| |
14 |
| - | |
| 11 | + | |
15 | 12 |
| |
16 |
| - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
17 | 19 |
| |
18 | 20 |
| |
19 | 21 |
| |
20 | 22 |
| |
21 | 23 |
| |
22 |
| - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
23 | 34 |
| |
24 | 35 |
| |
25 | 36 |
| |
26 | 37 |
| |
27 | 38 |
| |
28 |
| - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
29 | 49 |
| |
30 | 50 |
| |
31 | 51 |
| |
| |||
55 | 75 |
| |
56 | 76 |
| |
57 | 77 |
| |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 |
| - | |
84 |
| - | |
85 |
| - | |
86 |
| - | |
87 |
| - | |
88 |
| - | |
89 |
| - | |
90 |
| - | |
91 |
| - | |
92 | 78 |
| |
93 | 79 |
| |
94 | 80 |
| |
| |||
101 | 87 |
| |
102 | 88 |
| |
103 | 89 |
| |
104 |
| - | |
| 90 | + | |
105 | 91 |
| |
106 | 92 |
| |
107 | 93 |
| |
| |||
115 | 101 |
| |
116 | 102 |
| |
117 | 103 |
| |
118 |
| - | |
119 |
| - | |
120 |
| - | |
121 |
| - | |
122 |
| - | |
123 |
| - | |
124 | 104 |
| |
125 | 105 |
| |
126 | 106 |
| |
| |||
129 | 109 |
| |
130 | 110 |
| |
131 | 111 |
| |
132 |
| - | |
133 |
| - | |
134 |
| - | |
135 |
| - | |
136 | 112 |
| |
137 | 113 |
|
Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
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 |
| - | |
17 |
| - | |
18 |
| - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
19 | 21 |
| |
20 |
| - | |
| 22 | + | |
21 | 23 |
| |
22 | 24 |
| |
23 | 25 |
| |
|
0 commit comments
Comments
(0)