Pipeline dashboard and views
The pipeline dashboard is the main workspace for finding pipelines, organizing them into views, and acting on their current state. It combines a URL-selected view with server data and presents the result through web, mobile-shell, and desktop clients. The pipeline monitoring page gives the wider product context. Run detail and logs and metrics and observability describe the detail pages reached from this dashboard.
Dashboard role
The dashboard starts at /pipelines. It shows all pipelines, provider-specific lists, pinned items, or saved views through one listing flow. A view can also contain child views, so the same page can act as both a list and a small navigation tree.
Navigation flow
The dashboard connects the route, the active view, URL filters, the page query, and the rendered rows. Actions on a row then leave the list for history, a run, metrics, or a pipeline operation.
flowchart LR
A[Route and URL state] --> B[Active view and filters]
B --> C[Pipeline view query]
C --> D[Pipeline view page]
D --> E[Frontend page model]
E --> F[Sections and pipeline rows]
F --> G[History, run, metrics, or pipeline action]
Route entry
src/AppRoutes.tsx sends /pipelines and mobile group routes to the unified pipeline page. A pipeline ID leaves the list flow and enters a separate detail route. The application shell supplies callbacks for history, run, metrics, and trigger actions.
References: src/AppRoutes.tsx• L12-21 src/AppRoutes.tsx• L69-100 src/AppContent.tsx• L108-141
View navigation
The navigation presents provider lists and view lists as alternate ways to enter the same dashboard. Custom views can nest below parent views. The sidebar and compact rail keep the active root visible while the sub-view bar shows the current view's ancestors and children. Sidebar search uses the same navigation data as the tree, so it can filter providers, pins, and views without creating a second listing model. Provider tabs use the same URL state as sidebar links. The compact rail shows the total pipeline count for all providers only after its navigation query succeeds; loading and failed reads keep the label neutral.
References: src/…/Navbar.tsx• L47-131 src/…/NavbarTree.tsx• L68-92 src/…/NavbarTree.tsx• L98-186 src/…/NavbarProviderRows.tsx• L36-85 src/…/NavbarRail.tsx• L119-170 src/…/NavbarRail.test.tsx• L51-79 src/…/NavbarReadFailures.tsx• L15-31 src/…/SubViewBar.tsx• L35-111 src/…/PipelineViewTabs.tsx• L22-45 src/…/useSidebarExpansion.ts• L22-57 src/…/navTree.ts• L11-17 src/…/providerTabs.ts• L9-28
View selection
The view URL value identifies the page to show. The selected view supplies its name, type, display rules, count, and child-view relationship. The dashboard treats all and pinned as built-in views and treats custom or configuration views as saved navigation choices.
References: src/…/useUrlState.ts• L130-148 src/…/usePipelineViewModel.ts• L96-117 src/…/NavbarViewRows.tsx• L5-15
Frontend feature state
The dashboard separates shareable state from data state and short-lived interaction state. URL state says what the user wants to see. Query state supplies the matching page. Local state supports actions such as expansion, selection, and open dialogs.
URL state
The URL stores the selected view and list filters. Search, status, provider, organization, date range, and hidden-item visibility therefore survive navigation and can be shared as a link. Search is delayed before it becomes a request value, which avoids a request for every keystroke.
References: src/…/useUrlState.ts• L30 src/…/useUrlState.ts• L92-147 src/…/usePipelineViewModel.ts• L96-104
Page model state
The page model joins the URL query with the returned page and turns sections into rows for the current client. It also owns the active display settings, provider choices, hidden-item state, expanded sections, and selected pipelines. Section expansion persists per view and filter set, while mobile routes can focus on one section. Selection is scoped to the active view and visible page data, so changing views does not carry unrelated items into a new action.
References: src/…/usePipelineViewModel.ts• L38-83 src/…/usePipelineViewModel.ts• L94-145 src/…/usePipelineViewModel.ts• L157-191 src/…/useSidebarExpansion.ts• L22-57 src/…/usePipelineSelection.ts• L14-64
View actions
The dashboard lets users change pipeline state from the list and change the view that organizes it. These actions include pinning, hiding, refreshing provider data, enabling or cancelling work, changing membership, and opening history or metrics. Busy items reject repeat actions until their request settles. Multi-select applies the same action model to several pipelines and can create a new view or add the selection to existing views.
References: src/…/usePipelineActions.tsx• L35-110 src/…/usePinning.tsx• L10-29 src/…/PipelineViewSelection.tsx• L34-103 src/…/AddToViewModal.tsx• L58-125 src/…/AddToViewModal.test.tsx• L120-170 src/…/useCancelActiveRuns.tsx• L20-51
Query integration
The query path keeps the browser URL, the client cache, and the service boundary aligned. The frontend builds a typed query from URL values, uses that query as the cache identity, and asks the active service for the matching page.
Page query
PipelineViewQuery carries the view reference, optional filters, hidden-item choice, and the client time-zone offset. The service returns a PipelineViewPage with the selected view, pinned content, sections, counts, presentation text, and filter choices. The same contract is used by the HTTP API and the desktop bridge.
References: src/…/useUrlState.ts• L130-148 src/…/usePipelineViewModel.ts• L97-105 src/…/usePipelineViewQueries.ts• L60-72
Cache identity
The complete typed query forms the page cache key. A change to the view or any filter therefore selects a distinct result. View edits invalidate page data together with view summaries, membership data, pins, selections, editor options, and navigation data so the dashboard does not show mixed versions of one view. Reorder mutations hold the user's new order in the cache while the request runs and restore the old order if the request fails.
References: src/…/usePipelineViewQueries.ts• L51-60 src/…/usePipelineViewQueries.ts• L89-132 src/…/usePipelineViewQueries.ts• L267-309 src/…/useViewReorderQueries.ts• L22-92 src/…/useViewReorderQueries.test.ts• L42-116
View membership
View membership can come from explicit members, view rules, or child views. The view editor manages names, parent links, rules, layout, and member order according to the view's capabilities. The Add to view flow checks the selected pipelines against every view, shows rule or sub-view inclusion, and sends one membership change for the chosen set. A successful membership change updates the visible selection before related page data is refreshed.
References: src/…/ViewEditorForm.tsx• L41-61 src/…/ViewEditorForm.tsx• L100-145 src/…/ViewMembersFields.tsx• L56-93 src/…/AddToViewModal.tsx• L16-21 src/…/AddToViewModal.tsx• L76-88 src/…/AddToViewModal.test.tsx• L120-170 src/…/usePipelineViewQueries.ts• L267-284
Pipeline result views
The shared page model supports several result views without changing the meaning of a pipeline action. The selected view controls grouping, sort order, direction, and desktop layout. The client then chooses a table, card layout, browser-mobile cards, or a mobile-shell list.
Section and row model
The page returns sections that may represent repositories, organizations, providers, statuses, views, or no grouping. The frontend adds section rows when grouping is active and places workflow rows beneath expanded sections. Pinned pipelines and pinned repository blocks remain separate from the normal sections so users can act on them without losing their pin context.
References: src/…/pipelineRows.ts• L39-73 src/…/pipelineRows.ts• L81-157 src/…/PipelinePinnedArea.tsx• L59-107
Desktop and browser layouts
Desktop browsers use a table by default and can switch to grouped cards. The table supports sorting when the view allows display edits. Narrow browsers use cards while keeping section expansion, pipeline actions, and selection consistent with the desktop table. The card grid responds to its own container width and keeps its rows virtualized, so a narrow panel reduces the number of cards per row without losing a pipeline.
References: src/…/PipelineViewResults.tsx• L20-67 src/…/PipelineRowsTable.tsx• L166-220 src/…/PipelineCardGrid.tsx• L18-20 src/…/PipelineCardGrid.tsx• L35-70 src/…/PipelineCardGrid.tsx• L136-167 src/…/MobilePipelineCards.tsx• L198-219 src/…/PipelineCardGrid.test.ts• L86-105
Mobile-shell views
The mobile shell uses a route group to show one section at a time when needed. Its normal list shows section rows first, while a pinned view shows pipeline rows directly and can preserve manual pin order. Manual pinned pipelines can be reordered in place. Repository pin blocks remain in the same pinned result but are not part of that manual pipeline order. This keeps mobile navigation shallow without changing the page query or action contract.
References: src/…/usePipelineViewModel.ts• L94-121 src/…/pipelineRows.ts• L139-157 src/…/PipelineViewResults.tsx• L27-48 src/…/IosPinnedList.tsx• L84-105 src/…/IosPinnedList.tsx• L115-175 src/…/useViewReorderQueries.ts• L75-92
Loading and empty states
The dashboard distinguishes a missing view, a failed first page load, a failed background refresh, missing providers, filtered-out results, provider fetch failures, hidden-only results, and an empty saved view. A failed refresh keeps the last loaded pipelines visible while exposing Retry. Each empty state gives the user a recovery path that matches the cause, such as returning to all pipelines, clearing filters, showing hidden items, adding a provider, or editing the view.
References: src/…/PipelineViewStatus.tsx• L68-136 src/…/PipelineViewStatus.tsx• L138-267 src/…/PipelineViewStatus.test.tsx• L115-145
View management
View management changes how pipelines are found without changing the pipeline data itself. Users can create, edit, nest, reorder, pin, and delete views when the view capabilities allow those actions. Configuration-defined views remain visible but are not treated as freely editable custom views.
View editor
The editor starts a new top-level view, starts a sub-view under an eligible parent, or edits an existing view. It exposes only the fields that the view permits, preserves a draft while dependent reads retry, and saves only changed fields. After creation it navigates to the new view so the result is immediately visible.
References: src/…/ViewEditorModal.tsx• L19-59 src/…/ViewEditorModal.tsx• L63-129 src/…/ViewEditorForm.tsx• L74-145 src/…/useViewEditorDraft.ts• L67-129 src/…/ViewEditorModal.test.tsx• L87-154
View order and deletion
The manage-views surface gives users one place to reorder movable views and open the editor. Reordering updates the visible tree at once and disables competing reorder actions until the server accepts or rejects the change. Configuration-defined views remain visible but are not movable. Deleting the active view returns the dashboard to /pipelines; child views move up a level rather than deleting their pipelines.
References: src/…/ManageViewsModal.tsx• L62-131 src/…/ManageViewsModal.tsx• L134-166 src/…/ManageViewsModal.test.tsx• L111-139 src/…/useViewReorderQueries.ts• L53-72 src/…/usePipelineViewQueries.ts• L247-264 src/…/useViewMenuItems.tsx• L29-97
Desktop view boundary
The desktop app does not create a separate dashboard model. It exposes the same pipeline-view service through a native command boundary, while the web app exposes it through HTTP routes. This keeps view rules and page results in the shared core and limits the desktop layer to transport, command registration, and compact native entry points.
Service selection
The frontend chooses the local desktop service when a local core is available and otherwise uses the API service. Both service adapters provide the same operations for listing views, loading a page, editing views, changing membership, and managing pins.
References: src/…/service.ts• L1-10 src/…/api.ts• L741-794 src/…/tauri.ts• L609-655
Native command boundary
The desktop boundary maps native commands to the shared PipelineViewService. The commands return domain results or domain errors without changing the dashboard contract. The desktop binary registers these commands with the application so the frontend can use the local path in the same way as the web path.
References: crates/…/pipeline_views.rs• L22-45 crates/…/pipeline_views.rs• L47-132 crates/…/lib.rs• L643-654
Desktop shell entry points
The desktop shell provides a compact native entry point for pinned pipelines and pinned view or repository shortcuts. It keeps unavailable pinned pipelines in their order and still exposes unpin, while an overflow link opens the full pinned dashboard. The tray summarizes active pinned failures, running work, watched runs, and unread notices, then changes to an offline state when the local core or remote client is not ready. Notification preferences can suppress pipeline alerts without hiding watched work.
References: crates/…/model.rs• L132-145 crates/…/model.rs• L224-312 crates/…/tests.rs• L84-113 crates/…/tray.rs• L62-117 crates/…/tray.rs• L120-175 crates/…/tests.rs• L97-121 crates/…/tests.rs• L145-212
HTTP boundary
The web boundary maps /pipeline-views routes to the same service. The list route returns view summaries, the page route returns the filtered dashboard page, and the remaining routes support view and membership changes. A missing view is a page error rather than an empty result, which lets the frontend handle stale links clearly.
References: crates/…/pipeline_views.rs• L60-72 crates/…/pipeline_views.rs• L74-103 crates/…/pipeline_views.rs• L151-186
Change checklist
When these files or sections are changed, remember to consider these:
- Keep the URL names, typed
PipelineViewQueryfields, and page cache key aligned. - Keep provider tabs, sidebar links, sub-view links, and detail-route return state on the same URL contract.
- Keep sidebar search results, active-tree expansion, and the compact rail's all-provider count aligned with navigation data and its loading or error state.
- Keep table, card, browser-mobile, and mobile-shell result paths on the same section and action model.
- Keep manual pinned pipeline order separate from repository pin blocks when changing mobile pinned views.
- When a mutation changes membership, pins, hidden state, view order, or display state, invalidate every summary and page that can show the change.
- Keep optimistic view and pinned order changes safe against stale in-flight reads and rejected writes.
- Keep view capabilities aligned with the fields exposed by the editor and with the actions shown in menus.
- Keep the HTTP handlers, desktop commands, and both frontend service adapters aligned for every view operation.
- Preserve child-view membership and counts when parent navigation or view resolution changes.
- Keep native pinned-menu links and tray status rules aligned with the pinned pipeline snapshot, notification preferences, and remote connection state.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A view ID in the URL no longer exists | The page shows a missing-view state instead of a valid list | Return to /pipelines and preserve the explicit NOT_FOUND path |
| A filter or provider-tab change updates the URL but not the query key | The page can show cached results for a different dashboard state | Build the typed query from the same URL values used by navigation and cache it in full |
| The compact rail reads a missing or failed navigation total as zero | Users see a false all-provider count during loading or failure | Omit the count until the navigation query returns a total |
| A view mutation refreshes only the view list | Tabs or counts update while page members, pins, or sections stay old | Invalidate the full view-data group after every related mutation |
| An optimistic reorder is overwritten by an older in-flight read | The user sees the old order after a successful drop | Cancel the related read, hold the new order in cache, and invalidate after settlement |
| A selected pipeline is removed from the active page | A bulk action can target an item that the user can no longer see | Reconcile selection with the active view and page pipeline map |
| A parent view omits child membership during resolution | Parent counts and visible sections disagree | Resolve child views before building parent sections and counts |
| A desktop command or HTTP route drifts from the shared service contract | Web and desktop show different views or support different edits | Keep both boundaries and both adapters on the same typed operations |
| A detail link loses the list URL state | Back navigation returns to the wrong view or filter set | Pass the source list location into detail navigation |
| A desktop snapshot omits unavailable pinned entries or changes their identity between refreshes | Native menu rows lose order or expose actions for a different pipeline | Retain stable generation and epoch identity and keep unpin available for missing entries |
| Tray status ignores notification preferences or remote readiness | The native status reports a false alert or false healthy state | Apply alert preferences to pinned pipeline status and report offline until the client is connected |
Key files
| File | Why to read it |
|---|---|
| src/…/usePipelineViewModel.ts | Defines the frontend page model that joins URL state, query results, display rules, rows, and selection. |
| src/…/UnifiedPipelinesView.tsx | Shows the dashboard composition and the boundary between page state, controls, results, and pipeline actions. |
| src/…/useUrlState.ts | Defines the shareable URL shape for views and pipeline filters. |
| src/…/NavbarTree.tsx | Shows the main provider, pin, view, and sub-view navigation model, including sidebar search. |
| src/…/NavbarRail.tsx | Shows compact navigation, provider loading states, and the aggregate all-provider count. |
| src/…/PipelineViewTabs.tsx | Shows how view tabs and provider tabs map to the same URL state and support view order. |
| src/…/usePipelineViewQueries.ts | Shows page loading, cache identity, mutation handling, and invalidation of related view data. |
| src/…/useViewReorderQueries.ts | Shows optimistic view and pinned-workflow ordering with rollback on failure. |
| src/…/ViewEditorForm.tsx | Shows the user-facing contract for creating and editing views. |
| src/…/PipelineViewResults.tsx | Shows the boundary between the shared page model and each result layout. |
| src/…/PipelineCardGrid.tsx | Shows responsive card grouping and the shared pipeline action surface. |
| src/…/IosPinnedList.tsx | Shows mobile pinned ordering and the separation between manual pipeline pins and repository blocks. |
| src/…/pipelineRows.ts | Defines how page sections become section and workflow rows across clients. |
| src/…/PipelineViewStatus.tsx | Shows recovery paths for missing, failed, filtered, and empty dashboard states. |
| crates/…/page.rs | Defines the shared meaning of view membership, filtering, sections, pinned content, and page counts. |
| crates/…/pipeline_views.rs | Shows the HTTP boundary for browser and remote clients. |
| crates/…/pipeline_views.rs | Shows the native desktop boundary for the same pipeline-view operations. |
| crates/…/model.rs | Shows native pinned pipeline and view shortcut entry points. |
| crates/…/tray.rs | Shows how pinned pipeline and connection state become native status. |