cozystack/internal/controller/dashboard
Andrei Kvapil 66b68e3798
[dashboard] Fix CustomFormsOverride schema to nest properties under spec.properties (#1692)
## What this PR does

Fixes the logic for generating CustomFormsOverride schema to properly
nest properties under `spec.properties` instead of directly under
`properties`.

Changes:
- Updated `buildMultilineStringSchema` to check for `spec` property in
OpenAPI schema
- Process `spec.properties` instead of root `properties`
- Create schema structure as `schema.properties.spec.properties.*`
- Updated tests to reflect the new nested structure

### Release note

```release-note
[dashboard] Fix CustomFormsOverride schema generation to nest properties under spec.properties
```


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Refactor**
* Updated custom form schema generation to organize form fields within a
nested structure for improved organization.

* **Tests**
* Expanded test coverage to validate the new schema organization and
field type handling across nested levels.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-01-09 14:52:39 +01:00
..
breadcrumb.go [dashboard] Revert reconciler removal 2025-10-30 19:37:20 +03:00
customcolumns.go [dashboard-controller] Move bages generation logic to internal dashboard 2025-11-04 17:11:31 +01:00
customformsoverride.go [dashboard] Fix CustomFormsOverride schema to nest properties under spec.properties (#1692) 2026-01-09 14:52:39 +01:00
customformsoverride_test.go [dashboard] Fix CustomFormsOverride schema to nest properties under spec.properties (#1692) 2026-01-09 14:52:39 +01:00
customformsprefill.go [dashboard] Revert reconciler removal 2025-10-30 19:37:20 +03:00
factory.go Merge branch 'main' into vnc 2025-11-18 11:39:34 +04:00
helpers.go [dashboard-controller] Move bages generation logic to internal dashboard 2025-11-04 17:11:31 +01:00
manager.go [dashboard-controller] Fix static resources reconciliation and showing 2025-11-07 17:30:26 +01:00
marketplacepanel.go [dashboard] Revert reconciler removal 2025-10-30 19:37:20 +03:00
sidebar.go [dashboard] Revert reconciler removal 2025-10-30 19:37:20 +03:00
static_helpers.go [dashboard] sync with upstream & enhancements 2025-11-05 18:22:22 +01:00
static_processor.go [dashboard] Revert reconciler removal 2025-10-30 19:37:20 +03:00
static_refactored.go [vpc,dashboard] Expose subnet details in dashboard 2025-11-13 19:10:22 +03:00
tableurimapping.go [dashboard] refactor dashboard configuration 2025-09-25 14:57:33 +02:00
ui_helpers.go [dashboard-controller] Move bages generation logic to internal dashboard 2025-11-04 17:11:31 +01:00
unified_helpers.go [dashboard-controller] Move bages generation logic to internal dashboard 2025-11-04 17:11:31 +01:00