Commit de6e766
committed
feat: support hiding Astarte Dashboard sidebar via annotation
PR astarte-platform/astarte-dashboard#521 introduced the ability to hide
the Astarte Dashboard sidebar by tweaking its configuration. This allows
the dashboard to be more easily used as an embedded component.
This commit adds an annotation to the Astarte Custom Resource (CR) that
acts as a feature flag to enable or disable the sidebar display.
This annotation is a temporary solution to support the feature until it
is officially added to the Astarte CR specification under the Dashboard
component section. If the annotation is not set, it defaults to false
(the sidebar remains visible). No defaulting webhook has been configured
to automatically populate this annotation on the Astarte CR.
To hide the Dashboard sidebar, set the following on the Astarte CR:
```yaml
annotations:
api.astarte-platform.org/hide-dashboard-sidebar: "true"
```
Signed-off-by: Luca Marchiori <luca.marchiori@secomind.com>1 parent 076b31f commit de6e766
File tree
4 files changed
+25
-0
lines changed- api/api/v2alpha1
- docs/documentation/pages/crds
- internal/reconcile
4 files changed
+25
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
30 | 38 | | |
31 | 39 | | |
32 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
213 | 220 | | |
214 | 221 | | |
215 | 222 | | |
| |||
0 commit comments