Skip to content

feat: support hiding Astarte Dashboard sidebar via annotation#539

Draft
lucamarchiori wants to merge 16 commits intoastarte-platform:masterfrom
lucamarchiori:support-hidden-dashboard-sidebar
Draft

feat: support hiding Astarte Dashboard sidebar via annotation#539
lucamarchiori wants to merge 16 commits intoastarte-platform:masterfrom
lucamarchiori:support-hidden-dashboard-sidebar

Conversation

@lucamarchiori
Copy link
Member

@lucamarchiori lucamarchiori commented Mar 5, 2026

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 PR 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:

annotations:
  api.astarte-platform.org/hide-dashboard-sidebar: "true"

Upgrade OPM to version to v1.55.0 in the Makefile
See: https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.40.0/#upgrade-opm-version-to-v1550-in-the-makefile
Signed-off-by: Luca Marchiori <luca.marchiori@secomind.com>
Use `.Named("<Kind>")` in SetupWithManager for controller registration
See: https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.40.0/#use-namedkind-in-setupwithmanager-for-controller-registration

Signed-off-by: Luca Marchiori <luca.marchiori@secomind.com>
The SDK now automates the setup of ENVTEST for Go-based operators by dynamically deriving the required versions from go.mod rather than requiring manual updates in the Makefile.
See: https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.40.0/#envtest-version-automation-and-improved-test-binary-discovery
Signed-off-by: Luca Marchiori <luca.marchiori@secomind.com>
Upgrade to Go 1.23 and Kubernetes v0.32.1 dependencies

See: https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.40.0/#upgrade-to-go-123-and-kubernetes-v0321-dependencies

Signed-off-by: Luca Marchiori <luca.marchiori@secomind.com>
Signed-off-by: Luca Marchiori <luca.marchiori@secomind.com>
Signed-off-by: Luca Marchiori <luca.marchiori@secomind.com>
Signed-off-by: Luca Marchiori <luca.marchiori@secomind.com>
@lucamarchiori lucamarchiori force-pushed the support-hidden-dashboard-sidebar branch 3 times, most recently from 48fb457 to 479c7d1 Compare March 9, 2026 10:17
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>
@lucamarchiori lucamarchiori force-pushed the support-hidden-dashboard-sidebar branch from 479c7d1 to ef18217 Compare March 9, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant