Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,8 @@
"type": "flow",
"title": "Flow",
"config": { "app": "keepiq" },
"_note": "The shared CnFlowDetail canvas over the same single engine. Controls render in the NC app sidebar so the canvas keeps full width."
"sidebarComponent": "FlowDetailSidebar",
"_note": "The shared CnFlowDetail canvas over the same single engine. Controls render in the NC app sidebar (sidebarComponent) so the canvas keeps full width; canvas and sidebar share useFlowStore. The _note claimed this before the field existed, so #/flows/new -- and every #/flows/:id -- rendered a bare canvas with no way to name, describe, trigger or step-edit the flow. Mirrors pipelinq#1490."
}
],
"observability": {
Expand Down
7 changes: 7 additions & 0 deletions src/registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import ApplicationRegisterView from './views/ApplicationRegisterView.vue'
import CertificateInventoryView from './views/CertificateInventoryView.vue'
import EmergencyAccessView from './views/EmergencyAccessView.vue'
import EphemeralSendAccess from './views/EphemeralSendAccess.vue'
import FlowDetailSidebar from './views/flows/FlowDetailSidebar.vue'
import HealthReportView from './views/HealthReportView.vue'
import LinkShareAccess from './views/LinkShareAccess.vue'
import LockScreen from './views/LockScreen.vue'
Expand All @@ -55,6 +56,12 @@ import SecretList from './views/SecretList.vue'
import SecretRequestFill from './views/SecretRequestFill.vue'

export default {
// --- Flows (ADR-110 Decision 4). Only the SIDEBAR is an app component;
// the list and the canvas are the shared `flows` / `flow-detail`
// manifest page types. CnFlowSidebar has to mount in the NC app
// sidebar for the canvas to keep full width. ---
FlowDetailSidebar: { kind: 'page', component: FlowDetailSidebar },

LockScreen: { kind: 'page', component: LockScreen },
SecretList: { kind: 'page', component: SecretList },
SecretDetail: { kind: 'page', component: SecretDetail },
Expand Down
26 changes: 26 additions & 0 deletions src/views/flows/FlowDetailSidebar.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!-- SPDX-License-Identifier: EUPL-1.2 -->
<!-- Copyright (C) 2026 Conduction B.V. -->
<!--
The flow controls, in Nextcloud's app sidebar. Shares `useFlowStore` with the
canvas, which is why neither needs props from the other. Save/Run live on
CnFlowDetail's toolbar; the shared `flow-detail` page type handles them.

Without this, `#/flows/:id` (and `#/flows/new`, which is the same route with
the literal id `new`) renders a bare canvas: the toolbar can save and run a
flow but nothing can name it, describe it, pick its trigger or edit a step,
because every one of those controls lives in CnFlowSidebar. Mirrors
pipelinq/src/views/flows/FlowDetailSidebar.vue (pipelinq#1490).
-->
<template>
<CnFlowSidebar />
</template>

<script>
import { CnFlowSidebar } from '@conduction/nextcloud-vue'

export default {
name: 'FlowDetailSidebar',

components: { CnFlowSidebar },
}
</script>
Loading