improvement(knowledge): align connected-sources rows and move source chip left of filter/sort#5117
Conversation
…chip left of filter/sort - Drop the -mx-2 on the connectors list so rows respect the ChipModalBody gutter: the row hover no longer bleeds to the modal edges and row content lines up with the px-4 header. - Add a 'leading' slot to ResourceOptions (left of the filter/sort cluster) and render the knowledge connected-source chip there instead of the far-right 'aside', so it reads as part of the control row. 'aside' stays right-aligned for the table editor's run/stop control.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Knowledge connectors list — Removes Table embedded mode — Comment-only note that run/stop still uses Reviewed by Cursor Bugbot for commit d92947e. Configure here. |
The options-bar aside has a single other consumer (the table editor's embedded run/stop control), so instead of adding a separate slot, render aside itself to the left of the filter/sort cluster. Drops the extra slot and keeps one canonical control position; the run/stop control moves left too, which is fine for a status widget.
|
@greptile review |
|
@cursor review |
Greptile SummaryThis PR makes two independent UI alignment fixes in the knowledge and table views. It removes the
Confidence Score: 5/5Safe to merge — changes are layout-only with no logic, data, or API surface modifications. All three files touch only CSS class names and JSDoc/comments. The resource-options.tsx restructuring is mechanically correct: removing justify-between and wrapping aside + filter/sort in a single ml-auto group ensures adjacency in both the search-present and search-absent cases. The gap-1.5 only creates visible space between rendered flex children, so an absent aside renders as nothing and introduces no phantom gap. No state, mutations, or data flows are touched. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
RO["ResourceOptions container\n(flex items-center)"]
RO --> S["SearchSection\n(flex-1, when search prop present)"]
RO --> G["ml-auto group\n(shrink-0, flex, gap-1.5)"]
G --> A["aside slot\n(e.g. connector badge or run/stop)"]
G --> FC["filter/sort cluster\n(flex items-center)"]
FC --> FT["filterTags chips"]
FC --> F["Filter chip / popover"]
FC --> SR["Sort dropdown"]
style A fill:#e0f2fe,stroke:#0ea5e9
style G fill:#f0fdf4,stroke:#22c55e
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
RO["ResourceOptions container\n(flex items-center)"]
RO --> S["SearchSection\n(flex-1, when search prop present)"]
RO --> G["ml-auto group\n(shrink-0, flex, gap-1.5)"]
G --> A["aside slot\n(e.g. connector badge or run/stop)"]
G --> FC["filter/sort cluster\n(flex items-center)"]
FC --> FT["filterTags chips"]
FC --> F["Filter chip / popover"]
FC --> SR["Sort dropdown"]
style A fill:#e0f2fe,stroke:#0ea5e9
style G fill:#f0fdf4,stroke:#22c55e
Reviews (5): Last reviewed commit: "docs(resource): clarify aside groups wit..." | Re-trigger Greptile |
…search bar Group aside + the filter/sort cluster in one ml-auto right-aligned container instead of relying on the search's flex-1 to anchor them. Without this, an options bar with no search (the embedded mothership table editor) split aside to the far left and filter/sort to the far right via justify-between.
|
@greptile review |
|
@cursor review |
Greptile SummaryThis PR makes two UI alignment improvements: removes the
Confidence Score: 3/5The knowledge view gutter fix is safe, but the The Pay close attention to Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[ResourceOptions rendered] --> B{search prop present?}
B -->|Yes| C["Layout: [Search flex-1] [aside] [Filter/Sort]"]
C --> D["aside is adjacent LEFT of filter/sort ✓\n(knowledge view — works as intended)"]
B -->|No| E["Layout: justify-between with 2 items\n[aside] ... [Filter/Sort]"]
E --> F["aside at far LEFT, filter/sort at far RIGHT\n(table embedded mode — opposite ends, not adjacent)"]
F --> G["Run/Stop control moved: was far RIGHT → now far LEFT"]
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
A[ResourceOptions rendered] --> B{search prop present?}
B -->|Yes| C["Layout: [Search flex-1] [aside] [Filter/Sort]"]
C --> D["aside is adjacent LEFT of filter/sort ✓\n(knowledge view — works as intended)"]
B -->|No| E["Layout: justify-between with 2 items\n[aside] ... [Filter/Sort]"]
E --> F["aside at far LEFT, filter/sort at far RIGHT\n(table embedded mode — opposite ends, not adjacent)"]
F --> G["Run/Stop control moved: was far RIGHT → now far LEFT"]
Reviews (2): Last reviewed commit: "fix(resource): keep options aside groupe..." | Re-trigger Greptile |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 4a9a229. Configure here.
|
@greptile review |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit d92947e. Configure here.
|
@greptile review |
Summary
-mx-2on the connectors list so rows respect theChipModalBodygutter — the connected-source row hover no longer bleeds to the modal edges, and row content lines up with thepx-4header (matching the integrations row pattern).leadingslot toResourceOptions(rendered left of the filter/sort cluster) and render the knowledge connected-source chip there instead of the far-rightaside, so it reads as part of the control row.asidestays right-aligned for the table editor's run/stop control (which intentionally sits opposite filter/sort).Type of Change
Testing
Tested manually.
tsc+biomeclean. Token-level alignment verified against the integrations row/icon-tile patterns.Checklist