In the intropy dashboard can we try to make the topic appear in the middle? If we look…
- User
In the intropy dashboard can we try to make the topic appear in the middle? If we look at the example here: /Users/robinhultman/dev/intropy/customers/fluxia/integrations/domains/order-management/temp i would like the orders topic to appear sort of vertically aligned with the my-integration component
Assistant
Let me look at the example and the dashboard code.
Assistant
Let me look at the example topology to understand the specific layout in question.
Assistant
Now let me look at the layout constants and the geometry section of FlowView.
Assistant
Let me check whether there are other graph-building paths that place topics, to keep them consistent.
Assistant
Now let me typecheck the change.
Assistant
Typecheck passes. Let me show you the final placement code:
Assistant
Done. The
orderstopic now renders vertically centered on the components wired to it.What changed (
web/src/components/FlowView.tsx, inbuildDeclaredGraph):Topics used to consume a grid row in their column, landing at the top. Now each topic's y-position is computed from its neighbours: the average card-center y of every component that publishes to or subscribes from it, minus half the topic's height.
For your
tempsystem —my-extractorin row 0 of column 0, and the five loaders (my-loader,order-loader,my-integration,erp-loader,new-loader) stacked in column 2 — theorderstopic in column 1 now centers on the middle of all six, landing vertically aligned withmy-integration. The pub and sub edges then run roughly horizontally instead of fanning down from the top.To see it:
make web-devin the CLI repo (dev server proxies to a runningintropy dashboard), or and run against the fluxia workspace and pick the system.- User
That looks better. Can we also align with extractor? So that extractors start from the middle and expand to the borders as more are added? Like loaders
Assistant
Good idea — a single extractor hugging the top looks off next to a centered topic. I'll center each column's stack vertically against the tallest column, so a lone extractor sits level with the middle of the loader stack (and the topic), and the stack grows outward from the middle as more are added.
The layout currently places nodes top-down per column as it goes. To center, I need each column's total row count up front, so I'll count components, topics, ghosts, and slots per column before placing anything:
Assistant
Typecheck it:
Assistant
Clean. Done — columns now grow from the middle.
What changed (
web/src/components/FlowView.tsx,buildDeclaredGraph):- Row counts per column (components + topics + ghosts + slot) are computed before placing anything, and the group height comes from the tallest column's count.
place(d)now offsets each column by(maxRows − colRows[d]) × rowPitch / 2, so a shorter column's stack is centered against the tallest one.
For your
tempsystem: the loader column (5 loaders + slot = 6 rows) is the tallest, so it stays put. The extractor column (my-extractor+ slot = 2 rows) is offset down by 2 row-pitches, landingmy-extractorlevel withmy-integration— the same line theorderstopic centers on. All three now read as one horizontal flow: extractor → orders → my-integration, with the other loaders fanning above and below.- User
That looks good. I think we need to have the placeholder slots aligned at the bottom. What do you think=
Assistant
Agreed — the slots are create affordances, not part of the flow, so they shouldn't drift with their column's centered stack. A shared bottom rail also gives the eye a stable baseline. I'll take slots out of the column row counts and pin them below the deepest node:
Assistant
Clean. Done — the slots now sit on a shared bottom rail.
What changed (
web/src/components/FlowView.tsx,buildDeclaredGraph):- Slots no longer count toward their column's row total, so they can't push the centered stacks off middle.
- A
slotYrail is computed as the deepest node's bottom edge + one row gap, and all three slots (extractor / core block / loader) are placed on it. Group height extends to cover the rail.
For your
tempsystem: the extractor, topic, and loader stacks center as before, and the three+ scaffold a new blockplaceholders now line up in one row beneath everything. Two consequences worth knowing:- Single extractor: it now sits dead-center against the loader stack — the slot no longer hangs under it breaking the symmetry.
- Empty system: the rail falls back to the content top, so a host-only scaffold still renders the three-slot skeleton exactly as before.
Refresh the dashboard and the temp system should show the rail.