Release Notes¶
0.1.0 (unreleased)¶
Initial release of panel-flowdash.
Security¶
- In 0.1.0rc0 to rc6, FlowDash could show an output it could not display as a table or JSON through the object's own repr or str, which for a data source such as a Lumen source lists its connection URI, password and tokens. In every pre-release the port popup did this for a list or dict holding such an object and for object cells, index values and column labels of its tables. From rc3 on the inspector's output did the same, and the output samples sent to the assistant's model held a source's repr. Node card summaries, other table previews and their CSV and Copy as Python exports, text component placeholders and a failed node's error quoting a connection URL could show it too, as could the transform offer's refusal (rc4) and the code panel's result (rc5). In rc6 the port popup, the inspector's output and the code panel's result showed any such object's repr, a source output itself included. rc7 names such an object by its type only, also when it is a table's index value, column label or level name, or a column the inspector's input summary lists, plus a name it was given and the table names a source already holds, and masks credentials in a failed node's error and in other error messages, toasts and agent tool results: a URL's password, also with an empty user as in
redis://:pw@host,password=andtoken=values, quoted values of secret keys such as"password": "..."orapi_key='...', anAuthorization:header value and a credential afterBearer. Upgrading is recommended. If a dashboard using a source that held credentials was shared with other people or used with the assistant or Explore, rotate those credentials, and treat CSV and Copy as Python exports taken from it as possibly holding them. - rc7 still passed some exception text to the UI and the assistant without masking it: the spec field status line, the input editor, inspector input validation, the agent's validator, project section loader errors, the code panel's "Could not format", the transform offer's refusal, the selection summary, the history's restore refusal and the store-failure text in the create and rename dialog. rc8 masks credentials there too. Where these errors are logged, the server log keeps the full text. Masking after a header name now leaves common status words such as "Authorization: token required" as written, and still masks real values
- The admin view is new in rc8, so no tagged release is affected. Without sign-in, Admin, every admin action and the admin link now work only in a browser on the machine that runs the server, judged from the connection's real peer address and the headers the server received; a request through a reverse proxy counts as remote unless the proxy is listed in
trusted_proxies(and sets or appendsX-Forwarded-For), and Panel's--basic-authwith one shared password does not count as sign-in (a users file does). Every save and action in the admin view checks again on the server that you are still an admin, the admin token stays out of the logs apart from the startup line that prints the admin link, andgeneral.adminsnameslocal:<account>orauth:<user>so a signed-in user never matches a local account; plain names are read as local accounts, so a signed-in admin recorded as a plain name on a pre-rc8 main build must be added again asauth:<name>. Download YAML in Admin, Dashboards now asks for confirmation and is noted in the admin log, like the other bulk actions; and since without sign-in every remote visitor is still the server's account, with its dashboards and the assistant's keys, serve with sign-in for anything reachable from other machines. - MCP servers are new in rc9, so no tagged release is affected. A
stdioserver set inflowdash.yamlor the admin view is refused until the operator lists the full argv prefixes such servers may launch inFlowDashApp.mcp_stdio_commandsorFLOWDASH_MCP_STDIO_COMMANDS(a path must be absolute, and only arguments after the prefix are free) and the environment variable names they may set inmcp_stdio_envorFLOWDASH_MCP_STDIO_ENV; servers defined in code are not limited. Listing a package launcher or an interpreter such asuvxorpythonwithout a pinned script lets anyone who can edit the project file, or is an admin, run any code on the server. A server'stoken,headersandenvvalues are${VARIABLE}references or encrypted values, never plain text, and a reference may only name variables matchingmcp_secret_env_varsorFLOWDASH_MCP_SECRET_ENV_VARS(by defaultFLOWDASH_MCP_*), so the project file cannot send the server's other secrets to an MCP server. Changing a server's URL scheme, host or port drops its stored token and headers unless they are entered again. Every MCP tool call needs the user's approval unless the server'sauto_approvelists the tool, and a server's own instructions never reach the system prompt, while its tool descriptions and results still reach the model - In 0.1.0rc0 to rc9, a refusal of access that a component or data source raised as a
PermissionErrorwas shown with its message, which can name the table, metric or other resource the viewer may not see: in error toasts, in the assistant's tool results, which reach its model, and in the port popup, a failed tile's Details, the inspector, the code panel and filter hints in the releases that had them. rc10 shows such a failure as Restricted without the message or the component's name, while the server log keeps the full error (see Dashboards in view mode). Upgrading is recommended for deployments whose components refuse data per viewer
Upgrading from 0.1.0rc2¶
Installation. panel-flowdash requires Python 3.12 or newer and Panel 1.11.3a0 or newer, the first Panel that allows panel-material-ui 0.18; Python 3.10 and 3.11 are no longer supported. It also requires panel-material-ui 0.18.0rc0, whose NavigationRail the rail is built on, and pandas 1.5, panel-agents 0.1.1, panel-reactflow 0.6.0, panel-splitjs 0.4.0, panel-tiles 0.6.0, param 2.5.0 and ruamel.yaml 0.18 or later. Panel and panel-material-ui are pre-releases, but pip picks them without --pre because the requirements name a pre-release. panel-agents is always installed, while the agent extra still adds pydantic-ai for the assistant, and the mcp extra adds pydantic-ai's MCP client to connect it to MCP servers. The secrets extra (cryptography, keyring) is needed to store provider keys encrypted from the admin view; without it keys can only be ${VARIABLE} references. Report exports as HTML and Markdown need no extra (charts become placeholders without vl-convert); the export extra (vl-convert-python, python-docx, nbformat) adds chart images, Word and notebooks, and PDF needs the pdf extra (weasyprint) or Playwright with Chromium.
Look and defaults. Dashboards saved with rc2 load unchanged, but several defaults changed and the editor was redesigned, so they look and behave differently:
FlowDashApp.nav_variant(andflowdash serve --nav-variant) defaults to"rail": a navigation rail, a breadcrumb with a dashboard switcher and a Ctrl/Cmd+K search. Setnav_variant="right"to keep the rc2 drawer;"left"and"menubar"work as before- Dashboard tiles are framed (
tile_cards=True) and have no title row (tile_titles=False). Both are dashboard settings, so each dashboard can change them in its settings dialog once it is saved;FlowDash(tile_cards=..., tile_titles=...), oreditor_optionsinFlowDashApp, sets the default for dashboards that have not saved them. The built-in Divider and Heading are unframed whatever the setting (@register(framed=False)), and each tile's Frame option in the Layout tab overrides both - Components registered with
sidebar=Truerender in a controls bar above the tiles, andFlowDashAppno longer copies them into the page sidebar. Above the tiles and above the Report, the global filters and the controls share one wrapping row, aligned on the inputs' middle line. Embedders who placeFlowDash.sidebarthemselves setFlowDash(controls_bar=False) - The floating editor toolbar is replaced by a dashboard bar with separate view and edit modes (Edit, Done, Discard, Save). The Preview switch is gone, since view mode is the preview; the
preview,toolbarandtoolbar_extraparameters keep working - Port popups on the wiring canvas open on click (
FlowDash.popup_trigger="click"); setpopup_trigger="hover"for the rc2 behaviour. Node configuration moved from a popup into a persistent inspector, and nodes no longer embed their live views - Node cards no longer show a value's repr: an opaque output is named by its type, and a node with several outputs previews the one picked on its card instead of always the first
- The inspector shows a connected input as a summary of what it carries instead of its repr, and holds a node's settings only: its spec, a code field or a spec dict, is edited in the code panel, under the canvas or in the sidecar's Spec tab, opened from the edit button on the node's header in the sidecar or on its card (in Layout, in windows under 960px and on phones it is always the Spec tab). Code edits there are applied on Run, not on blur; a spec dict is shown as a form, as YAML (1.2) or as JSON, and runs on change by default, with the result marked while it does not match the draft
- Collapsing a node card is view state: it no longer marks the dashboard unsaved or adds an undo step, and the collapsed state is still saved with the dashboard's next save
- Text typed without quotes into an untyped input is read as that string and shown without quotes (
TX, not'TX'); text that would read back as another value, such as12orNone, keeps its quotes - Explore asks an agent of its own, separate from the drawer's assistant, so a question shows only where it was asked;
FlowDashApp(explore_agent=False)turns asking in Explore off. The dashboard's other turns, including questions asked in Explore with earlier releases, sit in a collapsed "Earlier requests and edits" entry at the top of its feed, and with Explore available the drawer's assistant answers data questions in text and adds nodes only when asked - Only one agent edit runs on a dashboard at a time: a drawer request and an Explore "Add to dashboard" wait for each other (up to 3 minutes per call), and the waiting surface says what it is waiting for. Explore answers are built beside the dashboard, so asking in Explore never waits, and edits by hand never wait
- A dashboard's top bar has a Dashboard/Report switch, Ask and Edit in view mode, and the same switch with the Dataflow/Layout/Split tabs and Ask in edit mode. In view mode Ask docks the Explore feed left of the dashboard or the report, which stay on screen, resizable by its right edge; in edit mode it opens the assistant's drawer, and on dashboards in the rail layout it takes the place of the top bar's Assistant button. Each mode keeps its own Ask: Done brings the feed back only if it was open before edit mode, and closing the assistant's drawer in view mode leaves Ask as it is shown. Both resize from 320 px to half the window and keep to half the window as it narrows. On phones Ask in the More actions menu shows the feed in place of the dashboard. Share is an edit action
- Adding an answer from Ask in view mode hands it to the assistant: edit mode opens on the Layout tab with the new tile marked and scrolled into view, and the assistant's drawer beside it with the new node mentioned in its input, so the next instruction is about it. A notice offers one-step Undo, which takes the add back and returns to view mode, until the dashboard changes again. On phones the drawer would cover the tile, so the notice opens it instead. Explore and the assistant keep separate conversations
- The assistant's drawer sits beside the page from 600 px up, where it used to cover the page below 1200 px, so the edit bar and its Done stay in reach; and in the rail layout the side sheet of Inspect and "How was this made?" opens below the top bar, whose actions it no longer covers
- Below 600 px the top bar stays one row: the mode toggle, Refresh, Full screen, the edit tabs, Settings, Discard and Done move into its More actions menu
- The inspector, the Layout tab's layout panel and the edit-mode "How was this made?" sheet are one sidecar with Settings, Spec, Data, Tile and History tabs in Dataflow, Split and Layout; Description and Remove sit in its header and menu, and "How was this made?" in edit mode is its History tab. Below 1600 px the sidecar and the assistant drawer share one slot, so opening one folds the other
- Inspecting outputs opens a side sheet from the tile's Inspect action instead of a dialog behind an info button. A sheet still open when Edit is pressed hands over to the sidecar's History tab (or Data for an inspect sheet)
- The canvas minimap is off when the editor opens and is toggled from the status bar; it can no longer be turned on by default
- Dashboard titles, descriptions, tile titles, share names, data column names and error messages are shown as plain text: Markdown and HTML in them are no longer rendered. Component titles, port labels and docstrings written in code render as before
- Settings and sharing are one Dashboard settings dialog. Saving it saves the dashboard immediately, and turning on "Everyone can view" drops the explicit Can view entries on save
- New global keyboard shortcuts apply outside text fields and dialogs: Ctrl/Cmd+K,
/,?, R, E and Esc, and Ctrl/Cmd+S saves in edit mode instead of opening the browser's save dialog. Escape also dismisses the Load dashboard file, Clear canvas and unsaved-changes dialogs, where dismissing means Keep editing. In edit mode Escape closes one thing at a time: an open menu or dialog, then focus in the code panel, then the selection, and leaves edit mode only when nothing is open - The
complex_dataflowexample's assistant panel starts closed and opens from the top bar - Links in rendered Markdown open in a new tab, so following one no longer leaves the dashboard
- A tile whose view takes its height from the tile, such as a container-sized Vega-Lite chart, is shown 360 px tall within its size hints while its layout entry has no height, instead of collapsing; the height is not saved unless someone resizes the tile
- Below 768 px the controls sidebar starts collapsed to a narrow strip and opens over the grid instead of beside it, closing again on Escape or a tap outside it
- The tile grid lays tiles out in rows, left to right in order, instead of moving a later tile up into any gap it fits. A saved layout with room left in an earlier row keeps that room, so the tile that used to fill it moves down and the page can get taller. Dragging a tile drops it in front of or after the tile under the pointer, and widening a tile in a full row narrows the tile to its right
Permissions. Deployments with authentication should review these:
- Without
admin_groups, only a dashboard's owner can administer it (rename, delete, share, and edit unless shared with edit rights); in rc2 anyone who could see a dashboard could. Auth-less deployments are unaffected. With OAuth, configureadmin_groups, and note that dashboards created before OAuth was enabled belong to the server account and can only be administered by an admin group - Listings and
can_edit_modelcheck rights throughBaseDashboardStore.can_administer_model, so a store subclass that only overridescan_administershould overridecan_administer_modelas well - Editors without admin rights can no longer rename, delete or share, and an edit link opened by a viewer falls back to view mode
- Component
allow_*/deny_*rules andauthorizecallbacks now also apply in the editor: refused components are left out of the palette,FlowDash.add_componentraisesPermissionError, and saved items using them load as locked placeholders that are saved back unchanged. Components without rules stay usable underdefault_allow = False.authorize_componentis set byFlowDashAppand is refused ineditor_options; overrideFlowDashApp._can_use_componentinstead - Importing a dashboard file never adds or changes a component the user may not use, and Download writes such items as a
flowdash:restrictedstand-in with only their id and position and none of their edges FlowDashhas a newauthorize_dashboardhook thatsave(), reload and discard check against the stored dashboard's current rules, so someone whose edit rights were revoked while the dashboard was open can no longer save it. Likeauthorize_component, it is set byFlowDashAppand refused ineditor_options- With
inspect_outputson, viewers only get Duplicate and Download on dashboards that allowviewers_can_inspect, since a copy would otherwise give them inspect rights.FlowDashApp._dashboard_actionstakes a newcan_copykeyword Permissiongainsallow_edit_usersandallow_edit_groups, andPermission.is_emptycounts themmake_authorize_callback(..., denied_route=...)returns a redirect URL instead ofFalsefor refused requests; withoutdenied_routeit behaves as before
Stores and saved data:
- Dashboards record their turns (each request to the assistant, and each batch of manual edits between requests) and the turn that created each node. The dashboard model is at version 4 with
DashboardModel.turns,DashboardItem.origin,DashboardModel.parametersandDashboardModel.groups; dashboards saved by rc2 and earlier (version 3) load and are migrated, and models from pre-releases load too;DashboardStoreadds aturns_jsoncolumn to existing databases on open, and older dashboards load without turns. Custom stores should persistturnsand each item'sorigin, asto_dict/from_dictdo - Nodes can be grouped on the Dataflow canvas: select several and choose Group in the inspector. A group is a frame that can be collapsed into one node showing the ports its connections cross, and expanding it pushes the nodes beside and below it aside.
FlowDashgainsgroup_nodes,ungroup,rename_group,collapse_group,expand_groupandgroups,DashboardOpsand the assistant gaingroup_nodesandungroup, and YAML files hold them in a top-levelgroupswith a nodegroup.DashboardModel.groupsholds them;DashboardStoreadds agroups_jsoncolumn on open. Requires panel-reactflow 0.6.0b5 or later. - Dashboards can declare parameters: named config fields to run them again with other values, with a contract a component can declare (
register(contract=...)) that checks a bound value before anything changes and names the nodes it would break.FlowDashandDashboardOpsgaindeclare_parameter,remove_parameterandbind_parameters, andpanel_flowdash.parametershasbind_documentfor runs without an editor andparameters_schemafor a binding form.DashboardModel.parametersholds them;DashboardStoreadds aparameters_jsoncolumn on open. YAML files hold them in a top-levelparameters - Dashboards can be written as YAML files (
flowdash: 1), see the Dashboard YAML Format reference. Files from older pre-releases still load - A dashboard can hold a report, the dashboard read as a document of headings, prose with live
{{ node.port }}values, nodes, groups and questions, kept inDashboardModel.report(nodes by instance id) and in a top-levelreportkey of YAML files.DashboardStoreadds areport_jsoncolumn on open. rc3 to rc6 refuse YAML files that have areportkey, and a server running one of them drops the report from a dashboard it saves to a JSON folder store, and leaves a SQLite store's report out of step with its edits - Dashboards can hold global filters, in
DashboardModel.filtersand a top-levelfilterskey of YAML files (column,label,widget,value,exclude); only a filter's starting value is saved.DashboardStoreadds afilters_jsoncolumn on open. rc3 to rc7 refuse YAML files that have afilterskey, and a server running rc7 or earlier drops a dashboard's filters when it saves to a JSON folder store and leaves a SQLite store's filters out of step with its edits - Stores gain
set_owner(dashboard_id, owner)for the admin view's Change owner (memory, SQLite and JSON folder stores;BaseDashboardStorerefuses it) - Every edit becomes a version of the dashboard's edit history, which the store keeps per dashboard:
DashboardStoreadds adashboard_historytable to existing databases on open andJSONFolderDashboardStorewrites a.historyfolder. Custom stores keep it by implementingload_history,append_history,replace_historyanddelete_history, and undo works within a session without them. The assistant's chat shares the history'sRunState, and its edit tools no longer publish versions of their own while the history is on - Saved items and edges that cannot be restored (a missing or failing component, a renamed port, a type that no longer fits) are kept as placeholders and saved back unchanged instead of being dropped with a warning. Remove them in the editor to delete them
BaseDashboardStore.find_by_id_or_title(ref)becamefind_by_id_or_title(ref, identity=None, *, default_allow=True). Custom stores that override it must accept the new arguments, orFlowDashAppraisesTypeErrorwhenhome_dashboardis set- Stores declare
BaseDashboardStore.random_ids(defaultTrue;FalseforJSONFolderDashboardStore, whose ids are title slugs). When ids can be guessed, a dashboard the user may not open gets the same not-found page as a missing one instead of naming its owner, so a custom store with guessable ids should setrandom_ids = False save_dashboardraisesDashboardConflictErrorwhen the model'srevisionis stale. Custom stores should store and checkDashboardModel.revisionthe same way; a store that ignores it stays last-writer-wins- SQLite databases gain
settings_jsonandrevisioncolumns, added automatically on open; the migration is one-way, so back up a database you may want to open with rc2 again. JSON dashboard files gainsettingsandrevisionand keep unresolved items, and on Windows a.flowdash.lockfile appears in the folder tile_layoutandresponsive_layoutsentries are keyed byinstance_id. Layouts saved by rc2 are mapped by position on load and saved in the keyed form from then on, which rc2 cannot read back correctly- Exported dashboard files no longer contain
dashboard_id,user_id,permissionorrevision, andDashboardModel.from_dictrejects a non-stringdashboard_id,user_idortitle - The
formatedge transform caps the width at 1000 and the precision at 100; saved edges above those load as unresolved - Edge transforms gain a
groupstep and asizeaggregate. rc8 and earlier cannot read an edge that uses them and keep it unwired, as they do any edge they cannot restore
Serving and API:
flowdash servereads everyFlowDashAppoption it supports from the project's__init__.pyand exits with an error naming the attribute when a value is invalid.__init__.pynow runs after the registry scan, and passing--db-pathwhile the project definesstoreis an errorComponentSpec,InputPortandPanelAppMetadatagained fields in the middle of their argument lists (max_sizeandmin_sizebeforeconfig,handles_failuresbeforeparameter, andplaceholder,handles_failures,aliasesandport_aliases). Pass their arguments by keyword- The
default_size,min_sizeandmax_sizehints of@registertake{"width": ..., "height": ...}in pixels; the old{"w", "h"}keys never had an effect and are ignored with a warning - The private
_on_action_edit,_on_action_rename,_on_action_deleteand_on_action_createmethods ofFlowDashAppwere removed in favour of_on_dashboard_action - A Viewer component receives a new input inside
pn.io.hold(), so the whole downstream cascade reaches the browser as one patch. Intermediate updates a component makes during the cascade, such as a progress message, are no longer shown separately - With pandas older than 3 and copy-on-write off, the built-in transforms copy their input frame on every hop so edges never share a mutable frame
- The agent's
arrange_layouttool is nowarrange_tiles;dashboard_toolset(["arrange_layout"])still selects it andDashboardOps.arrange_layout()still works. The default agent instructions gain rules about the report, titles, the filter bar and templates, plus a line, only when it applies, listing the request's refused or failed steps not yet redone or saying that a dashboard the assistant made has unsaved changes, which changes the fingerprint of agents built with them FlowDash.__panel__()returns a panel-material-uiFullscreenwrapper around the editor;editor._viewis still the editor's column inside it/dashboardsis the launcher's route, so aSidebarSectionwithroute="dashboards"or a route underdashboards/is refused at startup with aValueError. Give such a section another route- A
PermissionErrora component raises, or an error raisedfromone, now reads as Restricted on every surface without its message, unless itserrnois an OS error such asEACCES, which stays an ordinary failure. Raise another exception type for an error whose message viewers should see - A
confirm()replaced by another dialog before it was answered now callson_cancel(None)instead of neither handler, so anon_cancelmust acceptNoneas its event - The private
panel_flowdash.selection._LINKSis now a weak set of the linked components rather than a mapping to their links, which live on the component; callrelease_links(component)to unlink one DashboardOps.node_outputon a node whose async output is computing, or that is downstream of one, raisesOutputUnavailablewithstatus="pending"instead of returning the previous value;await ops.settled()first. The synchronousops.preview(yaml)reports a scratch dashboard's async nodes aspendingrather thanokwith their defaults, andops.preview_async(yaml)waits for them. The agent'sadd_node,set_config,connectanddisconnecttools wait up toDashboardOps.settle_timeout(10 s) for the edited node and what it feeds, andreplace_dashboardfor the whole dashboardflowdash serveno longer accepts Panel's--serveroption, since FlowDash's routes are tornado handlers that the ASGI servers it selects could not serve- The app follows the browser's
prefers-color-schemeunless a scheme is set in code, the project file or?theme=; the admin "Colour scheme" setting defaults to "Follow the system", and "Light" pins the light scheme - A component class that is a plain
param.Parameterized, neither aViewernor a PanelViewable, is refused byregisterandRegistryEntry.from_appwith an error saying to subclassViewer; before, it loaded with its outputs but no inputs - The launcher is called Browse in the rail, breadcrumb and page title, and is served at
/browsewith/dashboardskept as an alias; aSidebarSectionmay use neither route - With sign-in (OAuth or basic auth with a users file), a provider key or MCP secret is stored encrypted only when
FLOWDASH_SECRET_KEYis set; the keyring and the key file are no longer offered there. Keys stored with them before keep working, and saving says when it replaces one - A plain (non-async)
suggest_questionshook runs on a small thread pool of its own, possibly while an older call is still running, so it must be thread-safe (a shared DuckDB connection needs a cursor per call), and an awaitable it returns must be a coroutine. Anasynchook runs on the session's event loop - Embedders who serve
FlowDashAppwith their own route dict instead ofFlowDashApp.build_routesadd"/dashboards"with the same factory as"/", or the Dashboards rail entry leads to a missing page
Upgrading: dashboards and chats are assets¶
Dashboards and chats are one stored model told apart by its kind, and their umbrella name is now asset, all the way down to storage. "Dashboard" still names a dashboard: the editor (FlowDash, new_dashboard, export_dashboard, current_dashboard, dashboard_context), DashboardOps, DashboardSettings, DashboardParameter, DashboardGroup, the YAML functions and the assistant's tools keep their names, since they work on dashboards. The old names below keep working for this release and raise a DeprecationWarning naming the new one; they will be removed in the next.
| Old | New |
|---|---|
panel_flowdash.dashboard_store |
panel_flowdash.asset_store |
DashboardModel, DashboardItem, DashboardEdge, DashboardTurn |
AssetModel, AssetItem, AssetEdge, AssetTurn |
BaseDashboardStore, DashboardStore, MemoryDashboardStore, JSONFolderDashboardStore |
BaseAssetStore, AssetStore, MemoryAssetStore, JSONFolderAssetStore |
DashboardStoreError, DashboardConflictError |
AssetStoreError, AssetConflictError |
dashboard_id (model field, AssetConflictError and StarterContext attribute, and keyword of every store method, FlowDash.load, artifact_id_for and UsageLedger.opened) |
asset_id |
UsageLedger.forget_dashboards(dashboard_ids=) |
forget_dashboards(asset_ids=) |
save_dashboard, load_dashboard, create_dashboard, delete_dashboard, rename_dashboard |
save_asset, load_asset, create_asset, delete_asset, rename_asset |
all_dashboards(kind=), list_dashboards(user, kind=), _all_dashboards |
all_assets(kind=), list_assets(user, kind=), _all_assets |
/dash/<id> |
/asset/<id> |
Admin, Dashboards (/admin/dashboards) |
Admin, Assets (/admin/assets) |
A custom store written against the old method names keeps working: its overrides of save_dashboard, _all_dashboards and the others serve as the new methods, with a DeprecationWarning when the class is defined. /dash/<id> links redirect to /asset/<id>, which is also the route layout hooks and section callbacks now see. dashboards still names the Assets section in /admin/dashboards, admin_hidden_sections and admin_section_redirects. The Assets section filters by kind with a Kind select, which replaces its Show chats switch.
Stores migrate in place, and the stored model stays at version 4: AssetStore renames the dashboards and dashboard_history tables and their dashboard_id columns to assets, asset_history and asset_id in one transaction when it opens an older database; JSONFolderAssetStore reads dashboard_id or asset_id and writes asset_id from a file's first write, so read-only folders stay as they are; .flowdash/usage.json reads its dashboards keys as assets. New projects get assets.db, while a project folder with a dashboards.db keeps using it. Model version 3 stores and files from 0.1.0rc2 still load. Once migrated, a database cannot be opened by an earlier release.
Components and ports¶
@registerdecorator for component/page registration- Typed port model (
InputPort,OutputPort,ComponentSpec) - Port introspection from Viewer subclasses (
param.output, param inputs) - A Viewer can publish a Parameter as an output by naming it in
provides, without wrapping it in a@param.outputmethod - A Viewer declares a Parameter as an output port with
metadata={"flowdash": {"output": True, "label": ...}}, so class factories need not repeat output names in@register(provides=...); requiresparam>=2.3 - Port types match across spellings (
str/String,int/Integer,DataFrame/pd.DataFrame), anIntegeroutput can feed aNumberinput, and untyped or generic ports connect to anything;register_port_type(name, aliases=..., subtype_of=...)adds project types @register(aliases=[...], port_aliases={...})and a Parameter'smetadata={"flowdash": {"aliases": [...]}}keep saved dashboards loading after a component or port is renamed; the next save writes the new names- A component linked with
link_selectionis freed with its links, its dashboard and its data sources once nothing else refers to it, even ifrelease_linkswas never called; from rc5 to rc10 its links kept it alive for the life of the process - A Viewer component can define
dispose()to release its resources; FlowDash calls it once when the node is removed, the canvas is cleared or replaced, or the session ends. Removing a node or edge, or loading another dashboard, also releases its wiring, its edge expressions and the subscriptions an async function component made panel_flowdash.preview_context()says who runs a component's__flowdash_preview__or__flowdash_definition__("card","popout","inspector"or"code_panel", None outside a hook), andpreview_off_loop()is True while the hook runs on FlowDash's preview worker, where a short query may block- A tile shows a placeholder instead of its component while a blocking input is
None: function components use therequiredandblockingfields ofrequires, Viewers declareparam.Parameter(metadata={"flowdash": {"required": True}})(ignored on a metadata output), and@register(placeholder=...)replaces the default "Waiting for ..." text - The
default_size,min_sizeandmax_sizehints of@registerset a new tile's size and bound resizing and stored layouts - Mutable
requiresfallbacks and input defaults are copied per session and per node instead of shared - Built-in text components: Markdown (rendered without raw HTML or math, with
{{ value }}placeholders filled from an optional input), Notes (rich text typed into the tile while editing, read-only for viewers), Heading and Divider - Markdown and Heading take an optional
tableinput (a DataFrame) whose cells their text can show:{{ table.column }}is the first row's cell,{{ table.column[2] }}or{{ table[2].column }}the third row's and{{ table.column[-1] }}the last's, with the same:formatspec, and{{#each table limit=5}}- {{ .region }}{{/each}}repeats its text for each row, at most 50. An unknown column or row shows a marker such as[no column rgion]and a config check warning, and a failed upstream output shows[unavailable].{{ value.column }}on a DataFrame value is now the first row's cell instead of a summary of the column. Cells are filled as text, so a cell holding placeholders, Markdown or HTML is shown as written, and a line break in it becomes a space. A component can define__flowdash_input_failed__(input, failed)to hear when an input's upstream output fails register_node_action(NodeAction(key, label, run, applies=..., admin_only=..., modes=...))adds an entry to the menu of a node's sidecar header and tile, in edit mode unlessmodesincludes"view".runandappliesget aNodeActionContextwith the node's component, config, inputs, outputs, edges and tile,opsfor the open dashboard's reads and edits (no save, open, rename or replace),edit()to make several changes one undo step, rolled back if it raises, andreplace_node(...);admin_onlyactions run only after the editor'sauthorize_admin(fresh=True)callback, whichFlowDashAppsets, reads the project file again. A component's__flowdash_provenance__(via=())returns aProvenance(label, detail, kind, icon, level)that the views downstream of it show in their tile's caption line, under the sidecar header and first in "How was this made?" while the dashboard is edited, and in view mode withFlowDash(provenance_labels=True). A provenance withlevel="warning", e.g. that a row limit cut the numbers, is a warning: every view downstream shows the nearest one, past nearer plain labels, in view mode too whateverprovenance_labelssays, on its tile as a warning-colored icon and short label that a click or tap explains, and reports and their exports add it to the node's caption;FlowDash.refresh_provenance()updates them when what a hook reads changes elsewhere. See the Add Node Actions and Provenance Labels how-to- Built-in Radio Group, Range Slider, Number Input, Date Range, Toggle and Text Input widgets, and KPI and Image views, beside Select, MultiChoice and Slider; every built-in has a description and a default tile size
- A Viewer config param declared with
metadata={"flowdash": {"two_way": True}}is synced back to the node's config when the component changes it, so it is saved with the dashboard - A config check can return or raise
CheckDiagnostic(message, field=, line=, column=, ...)to say where in a code field a problem is, read back withCheckResult.diagnostics(field), and@register(config_completions=...)supplies completion words for code fields, which otherwise complete the node's input column names (node_completions()) @register(palette_presets=...)takes a callable that gets the editor'scontextand returns preconfigured entries for the component, each a dict with atitleand a JSON-serializableconfig(and optionalid,description,tooltip,tagsandicon). The palette lists them after their component and searches them; clicking, dragging or dropping one places the component with that config, and the command palette offers them as Add items while editingFlowDash(context={...})hands host resources such as data sources to components, which read them withdashboard_context(), a read-only view that previews see tooplacement_context()tells a component in its__init__or function body whether it is being created as"new", on"load"or on"restore".FlowDash.set_default(instance_id, config)gives a new node a starting config, filling only fields still at their default; it is saved with the dashboard and recorded with the edit that placed or connected the node, so one Undo takes both back, or as its own edit when set outside one.FlowDash.code_panel_nodeis the node shown in the code panel- A component can implement
__export__(ctx)to say how a report export shows it, withctx.chart(spec)andctx.table(frame); the built-in KPI, Markdown, Heading, Divider, Notes and Image do - Components can apply global filters themselves, e.g. in SQL, through
__flowdash_columns__(),__flowdash_apply_filters__(filters)(which may return{column: reason}for filters it skips) and optionally__flowdash_column_values__(column);request_filters(component)hands a component its filters again when its columns change. Without the protocol, FlowDash filters the DataFrames arriving at a Viewer's inputs - A Viewer or Viewable component can define
on_connect(self, port, upstream)and return config changes, which FlowDash applies in the same history entry as an edge drawn on the canvas, a palette drop onto a port or the agent'sconnect;upstreamis apanel_flowdash.Upstreamwith the upstream node's name, component id, port, type and value. Loading, undo and plainFlowDash.connectcalls do not fire it unlessconnect(..., adjust_target=True) - A
Viewablecomponent's own params, such as aJSComponentsubclass'svalue = param.Number(), are input ports like a Viewer's, while the params of the Panel classes it builds on stay out register(...)returns aRegistration, a decorator whoserecordis the metadata it will attach, so a class factory can read the registered title while it builds the class. Refusals raised during registration name the title when one is given
Dataflow¶
DataflowGraphengine with cycle detection, type checking, single-source validation- Runtime validation via
param.watchwith error callbacks FlowDash(propagate_failures=True), also aFlowDashAppparameter, carries a failing output or edge transform downstream as aparam.ReactiveErrorinstead of leaving connected inputs on stale values. Inputs listed in@register(handles_failures=[...])receive the failure; any other input keeps its last value, its tile explains which upstream component failed, and the failed node and edge are outlined on the canvas- Edge transforms are edited in the editor's inspector as numbered steps that show the value's shape between them; operations that cannot follow the current value are disabled, and a failing step shows the reason with a closest-column suggestion and is not applied until fixed. A new how-to covers the built-in steps and custom
Transformsubclasses - Switching dashboards in an open editor places them in one canvas update (500 nodes in about 1 s instead of 20 s),
DataflowGraph.batch()binds list inputs once, and very deep chains finish on the next tick instead of raisingRecursionError - Changing a control updates every affected tile in the same frame instead of tile by tile
- Each node runs once per propagation pass with all of its new inputs, in topological order, so in a diamond (A feeds B and C, both feed D) D runs once per change of A, with matching inputs, instead of once per changed input with one of them stale. A Viewer gets inputs that changed together in one
param.update. Fan-out is breadth-first: when A feeds B and C and B feeds E, B and C run before E.DataflowGraph.propagation()opens a pass for other changes that touch several nodes, delivered as one message, andFlowDash.trigger_refresh()triggersrefreshinside one - A component whose watcher raises no longer stops its siblings from receiving the value, and async outputs no longer run twice per input change
- A node is pending while one of its async outputs computes, or while a node upstream of it does: its card shows a pulsing blue dot ("Updating 'out'." or "Waiting for 'q' to finish."), its tile an Updating chip and the inspector the status, and the canvas status bar counts "Updating 2 components" rather than issues. A run superseded by a newer input is cancelled, and a failure ends the pending state. Sync outputs are never pending
- Each edge into an input that takes several edges (
multiple=True, or aparam.Listwhoseitem_typeis a registered port type) is type-checked at connect time like a single input, on the canvas, from the palette, by the agent'sconnectand in YAML validation. YAML validation of a plainListinput now accepts any output, as the canvas already did. Only a type mismatch, or a transform step that cannot take the output's kind of value, is refused; an edge whose transform fails on the current value, such as a missing column, is wired and its failure shown. A saved connection that is now refused is kept unwired and saved back unchanged
Editor¶
- Undo and redo: the canvas keeps an edit history with one version per request to the assistant and one per burst of the person's edits (
FlowDash.history_coalesce, 3 s). Ctrl/Cmd+Z, Ctrl/Cmd+Shift+Z and the command palette step through it, and undo reaches back into earlier sessions as far as the store keeps the history (FlowDash.history_limit, 500 versions, andhistory_max_days, 90). Undo restores turns and node origins as they were, changes only what differs from the canvas, and never brings back a node the user may not use.FlowDash.undo(),redo(),can_undoandcan_redodo the same from code;history=Falseturns it off - The editor has separate view and edit modes in one dashboard bar. Edit mode has Dataflow and Layout tabs, a save state (Unsaved changes, Saved, Read-only), Settings, Download, Import file, Clear canvas, Discard and Save; moving a node or tile marks the dashboard as changed
- The wiring canvas shows compact node cards with a status dot, port labels and a value summary, a sidecar for the selected component, edge or dashboard, and a status bar with issue, component and connection counts and a view-controls cluster: Previews, Collapse all, the minimap and the zoom. Previews and Collapse all are labelled down to 960 px, and the command palette offers them too
- Node cards give each port its own row, names only: the type is the handle colour (
register_port_type(color=...)) and a tooltip, a missing required input has a red ring, and unconnected optional inputs fold into one row. Clicking an output row picks the output the card previews; previews include a table, a KPI value and a chart thumbnail, and a component's__flowdash_preview__may takeoutput=. The expand icon shows the first 100 rows. Cards collapse to their header, one at a time or all at once from the status bar (C; P toggles previews). The previewed output and the collapsed state are saved with the dashboard; picking the output is undoable, collapsing is not. Bar chart thumbnails draw every category with tick labels thinned to fit, a card grows with its preview at once and shrinks 1.5 s after a shorter one settles, and the chart and table pop-outs fill their dialog. The selected node has a dashed ring outside its border, apart from the assistant's outlines - The component palette is searchable (press
/), groups components into data sources, transforms, views and widgets (asource,transform,vieworwidgettag overrides the role), shows each component's ports and marks placed ones - The component palette folds to a narrow strip like the sidecar, from its « button, the command palette's Hide components, or back with », Show components or
/, which also focuses its search; the browser remembers whether it is folded, and the canvas takes the freed width - Dragging a tile, resizing it, dragging a node, a palette entry or a report block turns off text selection on the page until the drop, so the drag never highlights text in the tiles or blocks it passes over, while text selected before the drag stays selected
- The sidecar is one panel for Dataflow, Split and Layout with Settings, Spec, Data, Tile and History tabs, reopening on the tab last used for each kind of component. A tile click in Layout selects its node and opens the Tile tab, which sizes the tile in grid columns ("Half (6/12)") within its size hints, frames or hides it and moves it between areas; with nothing selected it lists the components not on the dashboard. The sidecar is resizable from 300 to 560 px by drag or arrow keys, folds when the canvas would get too narrow unless the person opens it, and shares one slot with the assistant drawer below 1600 px. An input with both a typed value and a connection shows the value as "Ignored while connected" with Disconnect to use (
FlowDash.disconnect_input) - Controls, KPIs and text can be dragged on the Layout tab between the tile grid, the top bar and the sidebar, and reordered within each bar, or moved with Move to buttons in the sidecar's Tile tab; charts and tables stay on the grid. The placement is saved as the tile's
areaand the agent'splace_tiletakes anarea, moving a grid tile to the top bar or sidebar without the width, height, visibility or frame it was given, which its result says it left out - Every way of leaving a dashboard with unsaved changes asks first, including picking a dashboard in the switcher, creating a new one and reloading the tab, and the dialog lists what changed
- An empty canvas shows a start card that adds a data source in one click
- "How was this made?" on a tile the assistant made, and the sidecar's History tab, show the request that made the node with its model and tool calls, and "Changed later by" for later edits. Other people's requests are redacted for viewers and for restricted nodes, and after a reload it shows the turn's question, time and summary. Requires panel-agents 0.1.0b9
- The assistant can offer several models:
FlowDashApp.agent_models(oragent_modelsin__init__.py),FLOWDASH_AGENT_MODELS="id[=label],..."or a repeatedflowdash serve --agent-model ID[=LABEL]. A small picker below the chat input chooses the model of the next request, models with a missing provider key are listed disabled with the reason, and the browser remembers the pick.agent_model/FLOWDASH_AGENT_MODELstays the default. Requires panel-agents 0.1.0b10 - With a single model, configured or read off a ready-made
agent, the assistant's chat names it where the picker would be, so the picker no longer seems to vanish. The label takes keyboard focus and its tooltip gives the model's id, or why it is unavailable - A ready-made
agentwith a single model listed inagent_modelsis named by that entry's label, aslumen serve --flowdash --agent-model ID=LABELsets it up, instead of by its id read off the agent - A new dashboard, blank or from a template, opens in edit mode with Ask on: the assistant's drawer is open with up to three starter questions about the data sources the person may place, until its first request.
FlowDashApp.agent_starters(oragent_startersin__init__.py) supplies them instead from a read-onlyStarterContextwith the person's identity, the dashboard and the tables they may place, e.g. from a data catalogue. On a phone the questions wait in the drawer until it is opened - An input nothing is connected to gets a typed editor in the inspector, built from the component's Parameter or port type, so a filter value, a KPI reference or a year range needs no extra widget node. The value is stored under a node's
inputs, next toconfig, and a connection always wins over it; a typed value reaches the component as soon as it is set. A refused value says what the input needs, e.g. "Needs two numbers, like (2010, 2020)." - Dropping a table output on a number input, such as a KPI's value, offers to connect it through a column and an aggregation, with a preview of the number the input would get; dropping a component from the palette there offers the same. Any other refused drop says why
- SQL, Markdown and other code fields use a code editor with highlighting and an expand dialog; Escape then Tab leaves it, and Save waits for a pending config check. The built-in Markdown component's text uses it
- Code fields open in a code panel, docked under the canvas by default or in the sidecar's Spec tab ("Open in sidecar", remembered in the browser), with the node's live result beside or under the editor. The panel is one editor wherever it is shown, so a draft and its undo history move with it, and in Layout, below 960 px and on phones it is always the Spec tab. The text and the node's other config fields form a draft that Run or Ctrl+Enter applies as one checked, undoable edit, or "Run on change" applies after a pause in typing. Unrun drafts are kept per field, shown as "Edits not run" and asked about before leaving the dashboard; positioned check problems are marked in the code with a fix button, and the editor completes input column names.
FlowDash.open_code_panel()opens it from code, andFlowDash.edit_spec(instance_id)opens a node's spec. Code and result sit in a resizable split, and the result table hides an index that only numbers the rows and sizes its columns to their content - The node inspector is compact: one header line with the node's name, component, status and a menu with "How was this made?", Duplicate and Remove, shorter fields, input summaries (rows, columns, tables) read from the value without running a query, and an edit button on the node's header, and on its card on hover, selection or focus, that opens its spec ("Show definition" for a read-only definition). While open, the code panel follows the node selected on the canvas, keeping edits not run per node, and shows the result of a node without a spec. Field labels capitalise acronyms (
sqlshows as "SQL"), and the Data tab shows each port by its label with a fitted table of up to 15 rows from the component's__flowdash_preview__, built only while the tab is shown - A config field holding a spec dict, such as a Vega-Lite chart, can be edited as a form of curated settings beside its JSON, kept in sync both ways. Components declare the settings with
SpecSettingpaths in aparam.Dict'smetadata={"flowdash": {"widget": "spec", "settings": [...]}}; keys no setting covers are kept and flagged, and each edit is one checked, undoable version. The code panel shows the form, YAML (1.2, the default text view, keeping key order and comments) and JSON as three views of one draft, with the node's view beside them, sized to the panel. A spec runs on change by default once its text parses, paths the form cannot show are listed at its end with a link to their line in the text, and while the result does not match the draft it is dimmed under a "Not run" badge and the node's card and tile are marked; a spec without settings is edited as YAML or JSON - The code panel's Format button (Shift+Alt+F) lays out a spec's text, and code whose language or field has a formatter (
register_formatter, or"formatter"in a code field's metadata), as an undoable edit of the draft. - An Explore feed, opened with Ask in a dashboard's top bar, reads the dashboard's turns: each request with its question, steps and answer (or the list of what a manual edit changed), and a live card for each node it created with "Add to dashboard". A composer in the page asks an Explore agent of its own (
FlowDashApp.explore_agent, by defaultcreate_explore_agenton the assistant's model), separate from the drawer's assistant, so each shows only its own requests; approvals are answered in the feed, an approval waiting on the surface out of sight shows a notice that brings it back, viewers get the feed without the composer, and without an Explore agent it shows every recorded turn. The Explore agent builds its answers beside the dashboard, on mirrors of its nodes that follow their outputs, so they stay off the canvas and out of Undo until "Add to dashboard" copies an answer and the nodes it is built from onto the dashboard as one undoable turn with one rebuild of the tile grid, reusing nodes the dashboard already has - The code panel's result previews an output as the inspector's Data tab does, through the component's
__flowdash_preview__first, so a Lumen pipeline or another object without a JSON form renders. Both show a component's text preview as a compact caption (Markdown only when the text has Markdown structure, without outer margins) and a chart preview as the card's thumbnail. A check error under a code line keeps its own space when it wraps in a narrow editor - A component without code or a spec to edit can show what defines it, e.g. a source's spec as YAML, read only in the code panel through
__flowdash_definition__ - A Report view, opened with the top bar's Dashboard/Report switch, reads the dashboard as a document: its controls and global filters fixed above, a contents list that stays beside the text as it scrolls and marks the section in view (on a phone, a Contents chip that opens it as a popup), live node views and tables, prose whose
{{ node.port }}placeholders, and{{ node.port.column }},[n]and#eachfor a table as in the Markdown component, refill as outputs change, and questions with their answers. Without an authored report it shows one derived from the groups and tile layout. In edit mode editors Customize it and author it in place: insert headings, text, nodes, groups and questions, reorder blocks by drag or arrow keys (each move is announced to screen readers), set captions, table or chart display and page breaks, and edit text with Insert value; each gesture is one undoable edit (FlowDash.set_report,customize_report,ask_in_report). Run on a pending question sends it to the assistant, whose answer fills the question's block - Export... in the Report view writes a snapshot of the report as HTML, PDF, Word, Markdown or a Jupyter notebook (
panel_flowdash.export.export_report), opening with when it was made and the values of the controls (a Selector's label rather than its value), global filters and parameters. Anyone who can open the Report view can export it. Pending questions are never run. Restricted nodes become placeholders without being read, objects are named by type, credential-shaped values in parameters are masked, raw HTML is written as text, unsafe links as their text, and charts with a dataurlor image marks are left out. Charts whose data is a pandas or Polars DataFrame, as Lumen's are, are drawn, and one that cannot be read is left out rather than failing the export. PDF rendering fetches nothing outside the document, while HTML, Markdown and notebook files keep remote http(s) images, which load when the file is opened. The notebook embeds the dashboard only for people who may edit it. HTML and Markdown need no extra (charts become placeholders without vl-convert); theexportextra adds chart images, Word and notebooks, and PDF needspdfor Playwright with Chromium - HoloViews views, such as a gridded image or a rasterized mesh: a responsive plot fills its tile like a container-sized Vega chart, a chart on an output is named rather than counted as rows and drawn in the inspector's Data tab and the output's popup, and report exports draw HoloViews panes with matplotlib, with a colorbar for rasters, or leave a placeholder naming the chart when matplotlib is missing or the drawing fails
- The agent can read and write the report (
get_report,report_text,edit_report,set_report,ask_in_reportandrun_pending, whichpanel_flowdash.agent.REPORT_TOOLSnames together withexport_report) with edits validated, refused when the report changed since the revision the agent read, and recorded with the agent's turn as their origin; report text reaches the model fenced as data, between markers derived from the text that the text cannot contain or close, so a recorded session that reads the report replays.export_reportneeds approval every time get_reportgives the agent a catalogue of what placeholders can read: nodes with data outputs (judged by value, so objects such as data sources are left out) with values, columns, first rows and example placeholders, and each chart mapped to the nearest node upstream with data. A new or changed text block whose placeholder names no node, output, column or row, reads a value that is not data (a view, a whole table) or is a bare{{ value }}is refused with what to fix, e.g. the data a chart reads, instead of being saved with a warning.edit_reportinsertsafterorbeforea node, and its reply shows new text as readers see it.FlowDashApp(agent_placeholder_hint=...)or a component's__flowdash_placeholder_hint__()returns apanel_flowdash.report.PlaceholderHintnaming the input a node's data arrives on and a note, andFlowDashApp(agent_report_context=...)adds host text after the catalogue. The report instructions ask for a story: a lead-in, then prose next to the charts it discusses- A global filter bar above the tiles and the report filters every view whose data has the filter's column, without wiring: numbers and dates get a range slider, other columns a multi-select of up to 1000 values. Sources and transforms are not filtered, and Filter nodes still filter locally; tiles show the Filter nodes feeding them and a "Not filtered by" hint where a filter does not reach them in a quiet caption line above the view, KPIs and other views showing a number worked out upstream included, and a view opts out in the Tile tab. Adding, removing and opting out are undoable edits; picking a value is not
- New charts on a laid-out dashboard pair up side by side, 6 columns each, after a chart placed alone in its row; hand-placed or resized tiles are never moved. The agent's
arrange_tiles(order=None, style="grid"), alsoFlowDash.arrange_layout, lays every visible tile out again in one undoable edit, as a grid or as a stack, keeping the sizesplace_tileset in the same request unlesskeep_sizes=False - The agent's layout tools apply what they report:
place_tileandarrange_tilesfirst lay out the tiles the request added, so the widths and positions they set are kept, and return the layout as it is now, row by row with each tile's width and height, e.g.Row 1: kpi_a 25% 130px | chart 50% auto (360px), whereauto (360px)is a view that fills a tile without a height andauto (content)one sized by its content, plus the top bar, the sidebar and hidden tiles. Resizing a tile rebalances its row as dragging its edge does, a new height goes to the row's other tiles, a tile stays at least as wide as its kind needs (420 px for a chart) and the result notes any width or height it clamped. A Title heading goes in front of the tiles,place_tiletakesbeforeandaftera shown tile, and a refusal that asking again cannot fix returnsNot applied: ...instead of using up the tool's retries. Tools that change the dashboard run one at a time when the model calls several at once - A step the assistant's tool refused (
Refused:,Not applied:orNot available:) shows in the drawer and the Explore chat as failed, with the first sentence of the reason, credentials masked, and whether a later call of the same tool on the same node, dashboard or column retried it and succeeded. When a request ends with steps refused or failed and not redone, the agent is told to name them in its answer. FlowDash's tools have imperative step labels, andpanel_flowdash.agent.register_tool_labelsnames a host's tools' steps - When a
preview_dashboardreport grows past its size limit, it leaves out the samples of the nodes the previewed YAML does not add or change first, oldest first, and a canvas preview keeps the newest node's sample, so Explore no longer tells you the preview omitted the rows of the node it just added await DashboardOps.settled(timeout=None, names=None, downstream=False)waits until no async output, or none upstream ofnames(and withdownstream=Truenone they feed), is computing, returning False on timeout, whenops.pending()names what still runs.node_healthandpreview_editorreportpendingnodes, the agent's edit tools wait for the edited node and what it feeds and name what is still computing when they give up, andpreview_dashboardandreplace_dashboardwait for the whole dashboard- The assistant titles the dashboards it builds and uses the filter bar:
set_title(title, description)renames the open dashboard as an unsaved, undoable edit, which only the owner or an admin may do (FlowDash(authorize_rename=...), set byFlowDashApp) while an editor may change the description, andadd_filter(column, label, widget, value)andremove_filter(column)change the global filter bar.add_filterrefuses a column no view has, listing those that exist, and says which views the filter reaches, why the others cannot follow it and which already go through a Filter node on that column;scope="local"goes to the agent's own tool fromcreate_agent(local_filter=...)ordashboard_toolset(local_filter=...).panel_flowdash.agent.LAYOUT_TOOLSnames the drawer's wiring, layout, title, filter and report tools for an assistant that brings its own data tools. Explore refuses these tools and the report's edit tools, like its other dashboard edits - Below 600 px edit mode gives the canvas the full width, with the palette, the sidecar and the layout options in bottom sheets opened from Add component, a selection and Arrange tiles, and touch targets of at least 44 px
- Dialogs keep their buttons in a footer that stays in view, the health chip and About popovers are non-modal panel-material-ui Popups, full screen uses panel-material-ui's Fullscreen, Show issues scrolls to and outlines the affected tiles (respecting reduced motion), and primary-coloured text uses the theme's text tint in dark mode
- Canvas edges, the split gutter and code editors are readable in the dark theme
- Collapse all keeps the accessible name "Collapse all nodes (C)" with
aria-pressedfor its state, and More actions carriesaria-haspopup,aria-expandedandaria-controls - The KPI's Format is a dropdown of named formats with examples, or a custom format spec, and its Thresholds are rows of an "Up to" limit and a color. Both are stored as before
- The Split tab shows the dashboard at its pane's width, as the dashboard would look at that width, and the Layout tab keeps a row of a heading and a KPI together below 1600 px. Requires panel-tiles 0.6.0b2 or later
- Download a dashboard as JSON from the editor and drop the file onto the canvas to recreate it;
FlowDash.export_dashboard()andFlowDash.import_dashboard()do the same from Python FlowDash.node_name(instance_id),node_names(),node_component(instance_id),node_inputs(instance_id, port=None)andkeep_tile_placement(instance_id), andDashboardOps.instance_id(name)andtile_item(instance_id), give embedders what they used to read from private attributes, which keep working.FlowDash(dashboard=model, explore=True), or anothersurface=, opens on that viewopen_dialog,close_dialogandconfirminpanel_flowdash.utilshow a modal from any component in one dialog per session, whichFlowDashAppandFlowDashlay out for you;confirmcloses the dialog before callingon_confirmoron_cancel, and either may be a coroutine function. Escape does not dismiss a confirmation, one closed without an answer, e.g. byclose_dialog(), callson_cancel, and one replaced by another dialog callson_cancel(None).FlowDash(include_page_dialog=False)leaves the placement ofpage_dialog()to the embedder- In report edit mode a chart, table or data block has a handle on its bottom edge: drag it, or use the arrow keys when it is focused, to set the block's height (at least 120 px) as one undoable edit, and double-click it or pick "Reset height" to follow the tile again. Table and data blocks now honour a stored height, scrolling inside the block
- After a request that adds or removes nodes the canvas fits the graph, and the editor's fits stop at 100% instead of zooming a lone node to 200%. Explore's Add to dashboard scrolls the new tile clear of the sticky controls bar
Dashboards in view mode¶
- Responsive tile grid that wraps the authored layout on narrower screens, with optional per-breakpoint custom layouts;
DashboardModel.reference_widthrecords the width the layout was authored at. Tile layouts are keyed byinstance_id, so removing or skipping a tile no longer shifts the others - Tiles can be framed as cards and titled per dashboard (
tile_cards,tile_titles), and offer Expand (full screen), Inspect and, inFlowDashApp, Show in editor as actions that float over the tile on hover or focus - A tile whose input failed or is still missing says so in plain language and names the upstream component, with the technical details behind a toggle
FlowDash(inspect_outputs=True)adds an Inspect action to each dashboard tile that opens a side sheet with the current value of the component's outputs, optionally explained by a__flowdash_inspect__(self, port)method on the component. Only people who can edit see it unless the dashboard'sviewers_can_inspectsetting allows viewers;FlowDashAppturns it on througheditor_options- The dashboard bar shows the dashboard's
description, a health chip ("1 failed, 1 waiting"), when it was refreshed and the auto-refresh period, with a banner that points to failed or waiting tiles. Controls registered withsidebar=Truesit in a controls bar above the tiles with a status dot per pipeline stage - Dashboard-wide settings:
DashboardModel.settingsis persisted by every store,FlowDash.settingsholds the loaded values with built-indescription,refresh_period,tile_cards,tile_titlesandviewers_can_inspect, andFlowDash(settings_class=...)/FlowDashApp(settings_class=...)add application-specific parameters, edited in the Dashboard settings dialog - A dashboard and its top bar fit a 390 px phone screen, and in edit mode the status bar drops its counts below 520 px to keep its view controls visible
- A data tile, such as a Lumen table, filter or data node, that is hidden on the grid in the base layout and in every responsive band is not rendered until it is shown, so its preview runs no queries; the component keeps running in the dataflow, and the command palette offers no Inspect or Expand for it; shown again after its node's wiring was released, it gets a new frame whose status chip follows the node
- A tile whose data the viewer may not access (a
PermissionError, not one the OS raised for a file) shows a neutral Restricted message without component names or details, and does not count as failed in the health chip; the inspector, the code panel, the port popup, filter hints, error toasts and the assistant's tool results describe the failure as restricted too, while the server log keeps the full error.panel_flowdash.failure_overlay.is_restrictedandrestricted_placeholderlet components that handle failures do the same - A node card marks an optional input as optional only while it is unconnected, and an agent edit that gave up waiting names a wait under a minute in seconds
FlowDash.refreshevent, fired everyrefresh_periodseconds and by the Refresh button in view mode, whose menu also sets the period for the session; components reach the settings and the event throughcurrent_dashboard()- With
tile_titleson, a tile is titled by its configured title, else its chart spec'stitle, else the node name a file gave it, else the component's title, and no longer shows the registry description as a subtitle; KPI tiles stay untitled. A KPI in the top bar or sidebar shows its "Not filtered by" hint and the Filter nodes feeding it, a component the viewer may not use shows the same Restricted lock message as refused data, and a floating tile note no longer covers a narrow table's header - On a 390 px phone KPI tiles stay inside their grid cell with their labels wrapping, and in edit mode the provenance notes keep clear of KPI labels and pickers' floating labels
- A dashboard's sidebar and top-bar controls show after moving to it inside the app, from Browse, the rail or the breadcrumb switcher; before, they went missing when the project set
edit_workspace: split, and the switcher could keep showing the previous dashboard
App¶
FlowDashApphas an app shell with a navigation rail (Home, Dashboards, Components, Pages, Help), a breadcrumb with a dashboard switcher, and a Ctrl/Cmd+K command palette for dashboards, components and actions. R refreshes, E edits, Esc returns to view mode, Ctrl/Cmd+S saves and?lists the shortcuts- The launcher lists dashboards as cards with a layout thumbnail, last edit, owner, component count and sharing, with filters (All, Owned by me, Shared with me), sorting, a list view and a first-run state. Card actions are Open, Edit, Rename, Duplicate, Share, Download as file and Delete, which asks you to type the dashboard's name
- The launcher also has its own route,
/dashboards, which shows it whether or nothome_dashboardis set. With a home dashboard on/, the Dashboards rail entry links to/dashboardsinstead of listing the dashboards (the breadcrumb's dashboard switcher still lists them), and "All dashboards" in the switcher, the command palette and the not-found page, and the Dashboards crumb, go there too, so New dashboard and Import stay in reach - Deleting another dashboard while the home dashboard is shown on
/keeps it shown instead of replacing it with the launcher /componentsis a component gallery with search, role and "Accepts" filters, and a detail panel with the ports, the dashboards using a component, and Add to dashboard - Not found, access denied (naming the owner to ask, never the contents, and only for stores with random ids), unknown URLs (still status 404) and loading each have their own page; restricted code pages redirect to an in-app access-denied page
FlowDashApp.editor_optionspasses keyword arguments through to the embeddedFlowDasheditor, andFlowDashApp.editor_classsubstitutes aFlowDashsubclassFlowDashApp.editor,identity,agent_sessionanddefault_allow, andnotify(),navigate(url)(http(s) links open outside the app, anything else as an in-app route),settings_project()andassistant_allowed()are public, as isAgentSession.approval_policy(); the private names they replace keep working- Dashboard actions from the launcher card, navigation and dashboard bar menus all dispatch through
FlowDashApp._on_dashboard_action, so a subclass adds an action by extending_ADMIN_DASHBOARD_ACTIONSor_VIEWER_DASHBOARD_ACTIONSand overriding that one method; editors and viewers see the actions their role allows - A slow dashboard load no longer overwrites a newer navigation, and a click on the rail right after a dashboard's first save is no longer lost
- Apps add their own sections to the rail with
panel_flowdash.sidebar: aSidebarSectionwith an id, label, icon and order listsSidebarItems, can offer a "+ New"SidebarAction, link to a landingpath, and serve its own routes withrouteandview(ctx, subpath), which survive a reload and never appear under Pages. Its callables get aSidebarContextwith the session'sapp,userandsection,is_admin,still_admin(),navigate()andrefresh(). Sections are set withFlowDashApp(sections=[...]),add_section()andremove_section()orsectionsin__init__.py, andrefresh_sections()fetches their items again, as opening a section's menu or the narrow drawer does. The built-in Dashboards navigation is the first section, and one withid="dashboards"replaces it.FlowDashApp.is_adminis public. Sections show only withnav_variant="rail". In the narrow drawer the current destination is highlighted and groups start expanded unless the user collapsed them - Dashboard templates: the create dialog lists Blank and the templates with a preview of their tile layout, then asks for the data, views, columns and text the template's slots need, offering only components the person may place and columns of a fitting type, and tries each bound view on its data first, refusing one that fails or gets no rows. A slot left unbound becomes a Markdown note saying what it needs. Three templates come with the package (KPI overview, Trend and breakdown, Table explorer with filters) and a project adds its own in a
templates/folder: a dashboard YAML file with anx-templateblock ofname,descriptionandslots, whose[[name]]marks fill in the bound columns and text, read under the dashboard file's limits and skipped with a log message when it is not a valid template.FlowDashApp.templates, or the "Dashboard templates" switch in Admin, General, turns them off. The assistant getslist_templatesandnew_dashboard_from_template(template, bindings, title), which needs the user's approval and creates at most one dashboard per request; while a dashboard it made has unsaved changes, it says so and offers to save. Number slots leave out integer columns named as a year (year,fiscal_year), which still fit date slots, and labels keep known acronyms upper case ("CO2 per capita") - An admin view at
/admin(Admin in the rail) for members ofadmin_groupsand the users in the project file'sgeneral.admins, with General, Theme, AI, MCP, Permissions, Components and Dashboards sections; extensions add their own through aProjectSection'ssettings_view(a Panel component or aSettingsFormfrompanel_flowdash.admin) andgroup. Settings are written to the project file throughProject.set, only those a form changed, after checking on the server that the caller is still an admin (FlowDashApp.still_admin()for an extension's own views); a parameter set in code wins and shows locked with its source (settings_sources,locked_settings). A host app that shows a section's settings in its own page hides it withFlowDashApp.admin_hidden_sections, or withadmin_section_redirects(e.g.{"mcp": "/data/integrations"}), which also sends/admin/<section>there - While a project has no admin,
flowdash serveprints a link,/admin#token=..., whose token sits in the URL fragment, so the browser never sends it in a request, and is compared in constant time. The token is random and new on every start; a fixedFLOWDASH_ADMIN_TOKENstays the same across restarts, so it can claim the project again on each start until an admin is recorded, and should be unset after setup. Opening the link records the signed-in user asauth:<user>, or without sign-in the account running the server aslocal:<account>, ingeneral.admins, and is refused once the project has admins oradmin_groups.--admin-linkprints a link that adds one more admin, andadmin_link = Falseturns the link off. The link is printed once the server is bound, so it carries the real port with--port 0,httpswith--ssl-certfileand a bracketed IPv6 address. Without sign-in the link, like the rest of the admin view, works only on the server's machine (see Security) - AI: provider cards with each key's source, status and last four characters, a models table with per-surface offers, settings and monthly spend limits, and a fallback model used at the limit (or the request refused). Keys are
${VARIABLE}references by default; storing one encrypted (Fernet, key fromFLOWDASH_SECRET_KEY, the OS keyring or a 0600 key file) needs thesecretsextra. A key is never written in plain text, sent to the browser, logged or put intoos.environ. An encrypted key decrypts only where its key is, so a project shared through VCS or a network drive should use references. Spend is counted in.flowdash/usage.jsonbeside the project file, which also holds dashboard visits and the admin log - The model id fields in Admin, AI and in the setup wizard's AI step suggest the chat models each provider with a readable key lists (OpenAI, Anthropic, OpenRouter, Google, Groq, Mistral, and Ollama when configured), newest first. Any id can still be typed
- MCP: the assistant and Explore can use tools from Model Context Protocol servers, streamable HTTP or local
stdio, configured in the project file'smcp.servers.<id>(transport,url,token,headers, orcommand,args,env,cwd; plusdescription,enabled,offered_to,timeout,init_timeout,auto_approve,accessand per-tooltool_access) or in code withFlowDashApp.mcp_servers, whose servers win over the file's and show locked. Admin, MCP adds and edits servers with write-only credentials, tests the connection and lists the server's tools. The tools reach the model asmcp_<server>__<tool>, a tool whose name a provider would refuse is left out, and a server that fails to connect, list or answer within its timeouts is left out of the run instead of breaking it. Each call needs approval unlessauto_approvelists the tool,accessandtool_accessrules limit who may use a server or tool, checked again before every run, with deny rules applying to admins too, andFlowDashApp.tool_authorize(identity, tool_name)hides and refuses any tool, failing closed if it raises. Needs themcpextra; see Security for thestdioand secret allow-lists.panel_flowdash.admin.mcp.MCPSettingsembeds the server list in a host app's own page, andpanel_flowdash.admin.permission_editor.PermissionEditorandPermissionDialogedit allow and deny rules for users and groups, warning before a rule would lock out the person saving it - Permissions: people and groups (
default_allow,admin_groups, assistant access) and the agent's sensitive components and approval rules, enforced on the server for new sessions and inflowdash serve's page check, which rereads the file when it changes; assistant access is checked before each request. A project file that cannot be read keeps the permissions last read from it, and with none read, pages are denied; a missing project file sets no permissions - Components: turn a component off (hidden from the palette, command palette, gallery and agent, refused on add and import, while dashboards that use it keep working), limit who may place it (
placed_by) or require approval for it, saved in acomponents:section that also fails closed: if the file cannot be read the last read stays in force, and with none read no component can be added, while dashboards keep working (FlowDash.refuse_placement). Dashboards: every dashboard in the store with owner, history, access and health, and bulk Share, Change owner, Download YAML, Prune history and Delete, each needing confirmation, checking again on the server that the caller is still an admin and noted in an admin log - An app with no project directory (
FlowDashApp(registry=...),panel serve app.py) reads and saves its admin settings inflowdash.yamlin the working directory, shared by every such app in the process, with spend and the admin log in.flowdash/usage.jsonbeside it once the file exists. An app launched from a directory that already holds an unrelatedflowdash.yamlpicks it up; passproject_dir, orproject=Project()to keep settings in memory - A setup wizard at
/admin/setupopens after the admin link claims a new project: Data (listing the project's data files, but not the dashboard store), AI, Theme and People steps, then a Review of the YAML to be written, with nothing written until Finish; it is skipped or reopened from General, and extensions add steps throughProjectSection.wizard_view - The assistant makes independent edits as parallel tool calls and looks up components in one
list_componentscall (which takes acomponentslist), so building a dashboard takes fewer model turns, and each dashboard tool may fail three times per run before it ends the run (create_agent(tool_retries=...)). Its change outlines are patched instead of redrawn after each edit and sit on the tile's visible edge - The
wind_energyexample is an offline showcase project with three dashboards, two pages and 20 components built on the US Wind Turbine Database. Its charts, map and tables update in place, and its port types are registered in the project__init__.pyso its components connect before any source is placed - The
energy_transitionexample is an offline project on Our World in Data's CO₂ and energy data for 223 countries, with three dashboards (one from its own dashboard template, one built by the assistant), linked selections between a world map, a ranking and charts, a global filter, parameters and a report whose prose is filled from the dashboard's tables - The app shell follows the browser's
prefers-color-scheme, including live OS changes, until the user toggles the theme, whose pick is remembered for later visits - A model in Admin, AI can have a
person_limit, a monthly amount in US dollars for each person, counted per signed-in user; at it, that person's requests use the model's fallback or are refused, and the drawer shows the top spenders and how many people are at their limit. An admin opening a project with no settings yet at its home page for the first time is taken to the setup wizard - The model menus in the assistant drawer, the Explore view and Ask tag the project's default model, list models that cannot be used with the reason, and give admins a "Manage models in Admin" entry that opens Admin, AI. With a single model an admin still gets the menu, for that entry.
- Admin sections, forms and drawers fit a 390 px phone screen, with wide tables scrolling inside their card, and launcher thumbnails and template previews draw controls as a sidebar column or top strip, where the dashboard shows them
FlowDashApp(home="explore")opens/on an Ask | Browse switch, remembered per person. Ask is a composer with the Explore model picker, the project's data as chips, suggested questions and recent chats, and asking starts a chat on the Explore feed. Hosts fill it withdata_chips(identity), an optionaladd_dataaction andsuggest_questions(chips); the chips picked are stored on the chat as its scope and passed to the Explore agent's tools asctx.deps.scope- Chats:
DashboardModel.kindis"dashboard"or"chat", persisted by every store and in YAML only for chats. Listings leave chats out by default (all_dashboards,list_dashboardsandlist_accessibletakekind=), a chat is private to its owner and cannot be shared, and withFlowDashApp(chats=True)(on withhome="explore") a Chats section in the rail and a/chatspage list them. Admin, Dashboards shows them with "Show chats" - The admin's AI and MCP sections format dates without
%-d, which raised on Windows - In a chat, "Add to dashboard" asks for a target: a new dashboard titled from the question, or one of up to five recent dashboards the person may edit, with the chat's last pick offered first, and then offers Open dashboard. "Make a dashboard" builds one new dashboard from the answers picked (those already added, else all), and the chat links to the dashboards made from it
- A chat stores its answers as the nodes, edges and turns of its own graph, so reopening it in a new session rebuilds them (rerunning their queries) and they can still be added to a dashboard. Sessions on the same chat merge by request, and a chat whose answers could not be rebuilt is never saved over
- The Ask home shows what an async
suggest_questionshook returns on load and after every chip change; only the newest call's questions are shown, a failing call keeps the last ones, and the suggestions dim while a call runs - The Ask landing follows the home mockups: a centred Ask | Browse switch, the data chips and model picker inside the composer, suggestions as cards showing the columns they use, a "Your data" card filled by a new
data_overview(identity)hook (run likesuggest_questions: async hooks awaited, plain ones off the event loop, hidden until it answers or if it fails), and recent chats.suggest_questionsmay return{"text", "columns", "icon"}dicts orSuggestions as well as strings, and a chip may carry a shortdetail. On a phone the composer wraps and "Your data" is left out - Without a model, nothing offers to chat: Home opens on Browse, people with earlier chats get a read-only Ask tab listing them, an admin also gets "Set up a model" (Admin, AI), and anyone else sees no switch and no Chats in the rail
- Reports are their own kind of asset (
kind: "report"): a report has its own graph and report document and no tile layout, opens in the report editor, and is listed under Reports in the rail. A blank report can be created, and "Make a standalone report" on a dashboard's report copies only the nodes the report uses plus their upstream, remaps its references and shows a link back to the dashboard. Duplicates are numbered among assets of the same kind - Browse follows the mockups: kind (All, Dashboards, Reports, Chats, with counts) and owner filters, sort, grid or list, a New menu (dashboard, report, from a template, import a file), a preview per kind and a first-run state for an empty project. Components are no longer listed on Browse
- "Add to dashboard" is Add to… everywhere an answer or component can be added (chat answers, Explore on a dashboard or report, the component palette and gallery): a menu grouped into New dashboard, New report and recent dashboards and reports, remembering the last pick. Added to a report, an answer's nodes join the report's graph with their upstream and it is shown as a block at the end of the report. "Make a dashboard" from a chat can also make a report, with one block per picked answer
- A chat has its own page: one centred reading column with the composer at its foot and a chat bar (editable title, answer count, Make a dashboard, ⋮), without a dashboard's Dashboard | Report switch, Edit, Refresh or full screen. "What I did" sums up each answer's steps in one sentence and opens to one plain-words row per step, with model calls and tokens behind Show model calls and Open the trace; the token and cost line under every answer is gone. Steps stream in live with a placeholder where the answer will land and a Stop button, a failed run offers Retry, Retry with another model and Show details, follow-ups stack as turns with an "In this chat" outline from 1280 px, and the data scope chip lives in the composer. Hosts describe their own tools' steps with
register_step_textand add notices withregister_chat_noticeandregister_notice_action - Answers are cards with a human title, a caption ("13 rows · from turbines · line chart") and Chart | Data | SQL tabs (Number for a KPI); Data shows readable headers and formatted numbers (
ExploreFeed.column_labels), SQL shows the query with Copy SQL and where it ran (ExploreFeed.open_sqladds Open in the SQL editor), and a "What I did" step that ran SQL links to it. Add to… is a split button that reads "Add to" after a pick, adding shows a snackbar with Open and Undo, Refine puts the card into the composer and the follow-up shows "Builds on ", and on a phone Add to… opens a bottom sheet. Docked on a dashboard, Ask's primary action is "Add to this dashboard" with a dashed slot where the tile will land - The header's tooltips no longer take the pointer, so a tooltip shown over Done, Share or another button no longer swallows the click
FlowDashApp.overlayis a column placed beside the main content on every page the app lays out, so an embedder's own dialog opens over the page in the page palette instead of the header's; it exists without a served document and is not closed on navigation- The favicon is configurable wherever the logo is (
page_options, the project file'stheme.favicon, Admin, Theme and the setup wizard). Without one, it is generated from the logo (an SVG logo as is, other images padded to a 32 px square, plus a 180 px Apple touch icon), embedded in the page so it works offline. Admin, Theme shows the favicon pages get, with Upload and "Generate from logo", and saving updates the open tab
Sharing and permissions¶
- Dashboards can be shared with edit rights (
Permission.allow_edit_users,allow_edit_groups). Editors can change and save a dashboard; renaming, deleting and sharing stay with the owner andadmin_groups - The Dashboard settings dialog combines general settings, a refresh period and sharing, with "Everyone can view" and Owner, Can view, Can edit and Blocked roles for people and groups that map onto the stored allow, edit and deny rules
- Component permissions apply in the palette, on placement, on load and on import and download, and the component gallery only lists components the user may place
- Text stored in dashboards and data is escaped wherever it is shown, so markup in a title or column name cannot run script in another user's session
- Page rules that
@registercannot read statically (module constants, expressions,authorizecallables) now fail closed until the module is imported, and the HTTP gate checks the live registry andauthorizeon every request - An OAuth user no longer also carries the server's OS account name, so they no longer match rules or ownership keyed to it
- A lone string in a permission rule,
admin_groups,user_groupsorgroup_claimsis read as one name, anddefault_allow = "False"is read as false - Saving from an open editor keeps sharing and title changes made elsewhere in the meantime, and re-checks edit rights, so revoking them applies to dashboards already open. A refused save keeps the changes and switches the editor to read-only
- The launcher's sharing chip counts the viewers and editors the settings dialog shows
- A home dashboard configured by title only resolves to a dashboard the user may open, and an ambiguous title shows the launcher
Stores¶
- SQLite persistence (
DashboardStore,DashboardModel) JSONFolderDashboardStorekeeps each dashboard as a readable JSON file in a folder, optionally read-only;FlowDashAppaccepts anyBaseDashboardStore, and a project's__init__.pyselects one forflowdash serveby definingstore- Every built-in store keeps a per-dashboard
revisionand refuses a stale save withDashboardConflictError; the editor then offers to reload the dashboard or save a copy, andFlowDash.save_as(title)saves a copy from Python - A store refuses a create, save, rename, delete or sharing change by raising
DashboardStoreError; the app shows its message and leaves the dashboard as it was, and logs any other store failure with its traceback JSONFolderDashboardStoreclaims a new dashboard's id exclusively, so concurrent creates with one title no longer overwrite each other, refuses to save over another user's file, and parses only the files that changed since the last listing- One malformed dashboard file or SQLite row, or a project module that is not UTF-8, is skipped with a warning instead of breaking the listing or
flowdash serve - Dashboard listings check admin rights through the new
BaseDashboardStore.can_administer_modelinstead of loading each dashboard again, andDashboardStorereuses one SQLite connection per thread (DashboardStore.close()releases them; safe across--num-procsforks) BaseDashboardStore.all_dashboards()lists every stored dashboard regardless of owner, most recently updated first; stores keep implementing_all_dashboards()JSONFolderAssetStore(create=False)never creates its folder: while it is missing the store lists nothing and writes raise anAssetStoreErrornaming the folder. Files and history lines are written with sorted keys for stable diffs,scan(),load(asset_id)andparse_file(path)let a store that unions several folders delegate to one store per folder (the stores how-to has an example), and an unreadable file is skipped with a warning naming it and the reason- Reading the usage ledger of a project directory that has none yet creates no files, so a host that uses the working directory as its project directory (as Lumen does) no longer finds
.flowdash/usage.json.lockthere
Serving¶
- CLI:
flowdash serve <project-dir>with Panel-compatible options flowdash servereadssettings_class,editor_class,editor_options,propagate_failures,breakpoints,include_builtin_components,notifications,page_options,title,nav_variantandhome_dashboardfrom the project's__init__.py, and command-line flags take precedenceflowdash serve --package(andbuild_registry(..., package=...)) serves a project that is an importable package under its own module names, so FlowDash and the project's code share one module object per file- A project file,
flowdash.yaml, holds deployment settings in named top-level sections.panel_flowdash.projecthasload_project,find_project,register_sectionandProject.get/set, which writes one section back in place; sections areProjectSectionplugins registered in code or through thepanel_flowdash.project_sectionsentry point group, and FlowDash registersgeneral,theme,ai,mcp,permissionsandcomponents, which the admin view edits.flowdash serve --project FILEloads one, otherwiseflowdash.yamlin the served directory (never the working directory), andFlowDashApp(project=...)takes a path or aProject. Unknown sections are logged, while a file or section that does not load stops the server with its position. On Windows a write retries a sharing violation for up to 2 s. A whole-file rewrite keeps comments and merge keys where ruamel can, logs a warning naming the comments it drops, and replacing a section that defines an anchor another key aliases is refused. See the Project File reference panel_flowdash.projectalso hasparse_project_data,FILE_LOCK,current_raw_section(project, name, default)to read a section as the file has it now,Project.update(name, change)to read, change and write a section under the lock,Project.load_all(), andlazy=Trueonparse_projectandload_projectto load sections on first use