Skip to content

chore: UI sanding#3762

Merged
ropsii merged 12 commits intomainfrom
ui-sanding
Mar 27, 2026
Merged

chore: UI sanding#3762
ropsii merged 12 commits intomainfrom
ui-sanding

Conversation

@ropsii
Copy link
Copy Markdown
Collaborator

@ropsii ropsii commented Mar 27, 2026

No description provided.

ropsii added 3 commits March 26, 2026 17:32
- Adjusted button styles in `button.tsx` for better visual consistency.
- Updated background color variables in `index.css` for light mode.
- Enhanced table border styles in `CanvasMemoryView.tsx` for better visibility.
- Refined layout and styling in `CanvasSettingsView.tsx` and `CanvasYamlView.tsx` for improved user experience.
- Removed deprecated `CliCommandsPopover` component and adjusted related references in the header and canvas page components.
- Introduced new CLI view mode in the workflow page for better navigation.

These changes aim to enhance the overall UI consistency and user experience across the application.
- Changed instances of "Any user" to "Everyone" in the approval configuration documentation and UI components for consistency.
- Updated related test cases to reflect the new terminology.
- Enhanced the CanvasSettingsView component to accommodate the updated approval type label.

These changes aim to improve clarity and consistency in the approval process terminology across the application.
@superplanehq-integration
Copy link
Copy Markdown

👋 Commands for maintainers:

  • /sp start - Start an ephemeral machine (takes ~30s)
  • /sp stop - Stop a running machine (auto-executed on pr close)

Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Autofix Details

Bugbot Autofix prepared fixes for both issues found in the latest run.

  • ✅ Fixed: New approver defaults to type that disables Add button
    • Changed addApprover to create a TYPE_USER entry (with empty userId) so the Everyone-approver guard no longer disables the Add button immediately while keeping the initial default as Everyone.
  • ✅ Fixed: Contradictory height classes on exit button
    • Removed the dead h-auto Tailwind class from the exit button so only the intended height utility remains.

Create PR

Or push these changes by commenting:

@cursor push c149192bac
Preview (c149192bac)
diff --git a/web_src/src/pages/workflowv2/CanvasSettingsView.tsx b/web_src/src/pages/workflowv2/CanvasSettingsView.tsx
--- a/web_src/src/pages/workflowv2/CanvasSettingsView.tsx
+++ b/web_src/src/pages/workflowv2/CanvasSettingsView.tsx
@@ -234,7 +234,7 @@
   };
 
   const addApprover = () => {
-    setApprovers((current) => [...current, { type: "TYPE_ANYONE" }]);
+    setApprovers((current) => [...current, { type: "TYPE_USER", userId: "" }]);
   };
 
   const updateApproverType = (index: number, type: ChangeRequestApproverType) => {

diff --git a/web_src/src/ui/CanvasPage/index.tsx b/web_src/src/ui/CanvasPage/index.tsx
--- a/web_src/src/ui/CanvasPage/index.tsx
+++ b/web_src/src/ui/CanvasPage/index.tsx
@@ -1127,7 +1127,7 @@
                   type="button"
                   variant="link"
                   size="sm"
-                  className="h-auto min-h-0 shrink-0 gap-1 rounded-sm border border-amber-700 px-1.5 h-5 text-[13px] font-medium !text-amber-700 underline-offset-2 hover:!text-amber-700 hover:bg-white/10 hover:no-underline"
+                  className="min-h-0 shrink-0 gap-1 rounded-sm border border-amber-700 px-1.5 h-5 text-[13px] font-medium !text-amber-700 underline-offset-2 hover:!text-amber-700 hover:bg-white/10 hover:no-underline"
                   onClick={() => props.onExitEditMode?.()}
                   disabled={props.exitEditModeDisabled}
                   aria-label="Exit edit mode"

This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.

ropsii added 5 commits March 27, 2026 15:25
- Removed redundant height class from button in CanvasPage component to streamline styling.
- This change enhances the overall visual consistency of the UI components.
- Changed default approver type from "TYPE_ANYONE" to "TYPE_USER" with an empty userId in the CanvasSettingsView component.
- Updated related functions to ensure consistent handling of approver types throughout the component.

These changes aim to enhance clarity and maintain consistency in the approval process within the application.
Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@ropsii ropsii merged commit 8c18853 into main Mar 27, 2026
4 checks passed
@ropsii ropsii deleted the ui-sanding branch March 27, 2026 15:25
EtnDiaz pushed a commit to EtnDiaz/superplane that referenced this pull request Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant