Files
homarr/packages/modals/src/modal-presentation.ts
T
Thomas Camlong 8ecdd13cd5 feat: port release-v2 experience improvements from PR #6582
Brings the semantically-correct unification work from the closed
agent/release-v2-experience PR into release/v2:

- universal create surface (header, board, spotlight) with permission-aware actions
- board empty state and setup checklist with widget/connection recipes
- in-widget integration editing via inspector modal, preserving unsaved widget settings
- single-source widget-integration capability map (nativeFeatureCapabilities)
- multi-endpoint Docker singleton with per-endpoint failure isolation, DOCKER_ENDPOINTS descriptors and service reconciliation
- Kubernetes multi-context registry with availability probing and context selector
- response-contract test harness and setup analytics property boundaries

Excludes the feature-platform generator/workbench tooling (deferred).
2026-08-16 17:30:13 +02:00

19 lines
429 B
TypeScript

export type ModalPresentation = "default" | "inspector";
interface InspectorClassNames {
inner: string;
content: string;
}
export const getModalPresentationClassNames = (
presentation: ModalPresentation | undefined,
inspectorClassNames: InspectorClassNames,
) => {
if (presentation !== "inspector") return undefined;
return {
inner: inspectorClassNames.inner,
content: inspectorClassNames.content,
};
};