fix: add resizable dialog for configuration fields (#2807)#3408
fix: add resizable dialog for configuration fields (#2807)#3408masicaaa wants to merge 4 commits intosuperplanehq:mainfrom
Conversation
Signed-off-by: masicaaa <marijaostovic31@gmail.com>
|
👋 Commands for maintainers:
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Free Tier Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
| const isExpressionBadges = (value: unknown): value is ExpressionBadges => { | ||
| if (!value || typeof value !== "object") return false; | ||
| return "__type" in value && (value as ExpressionBadges).__type === "expressionBadges"; | ||
| return "_type" in value && (value as ExpressionBadges)._type === "expressionBadges"; |
There was a problem hiding this comment.
Type guard checks _type but data uses __type
High Severity
The type guard functions isExpressionBadges, isEvaluationBadges, isErrorValue, and isSemaphoreBlocks were changed to check for _type instead of __type, but the type definitions in the same file (lines 61, 66, 73, 106) still declare __type, and all data-producing mapper files (filter.ts, if.ts, firehydrant/base.ts, semaphore/run_workflow.ts) still emit objects with __type. These guards will now always return false, silently preventing expression badges, evaluation badges, error messages, and semaphore blocks from rendering.
Additional Locations (2)
| {componentSubtitle && <span className="text-sm text-gray-500 truncate">{componentSubtitle}</span>} | ||
| <div | ||
| className={`uppercase text-[11px] py-[1.5px] px-[5px] font-semibold rounded flex items-center tracking-wide justify-center text-white ${EventBadgeColor}`} | ||
| className={uppercase text-[11px] py-[1.5px] px-[5px] font-semibold rounded flex items-center tracking-wide justify-center text-white ${EventBadgeColor}} |
There was a problem hiding this comment.
Template literal backticks stripped from JSX expressions
High Severity
Throughout ChainItem.tsx, backticks were removed from template literal expressions inside JSX attributes. For example, className={`uppercase ... ${EventBadgeColor}`} became className={uppercase ... ${EventBadgeColor}}, and key={`${item.id}-child-${childIndex}`} became key={${item.id}-child-${childIndex}}. This affects at least 20 occurrences across className, key, and title attributes (lines 313, 353, 435, 469, 497, 562, 565, 613, 635, 638, 651, 655, 659, 708, 716, 731, 822, 831, 851), breaking the entire component.
Additional Locations (2)
|
/sp start |
|
✅ Ready. Web: https://pr-3408-ephemeral.superplane.com |
|
@masicaaa thanks for trying this one. Please check CI - there are a lot of things failing, including build. |
|
You have used all of your free Bugbot PR reviews. To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial. |
Signed-off-by: masicaaa <marijaostovic31@gmail.com>
a43c57c to
21ffb4b
Compare
|
/sp start |
|
😢 Failed to migrate the database See Logs: |
|
/sp start |
|
😢 Failed to start environment See Logs: |
|
@masicaaa thanks for trying this one 🙌 Few notes regarding UX: Easing effect - not responsiveResizing seems a bit sluggish, and not responsive. I drag the mouse and things happen with delay + they don't seem to be accurate. Any chance we can improve this? Please compare to the resizing of the annotation nodes - they feel snappier. Kapture.2026-03-18.at.15.10.38.mp4Resizing indicatorsCan we think of some better visual indicators that this is resizable? It seems hard for user to discover this with current design (those faint edge changes on hover), and also doesn't seem to match the rest of the style. Our sidebar is also resizable - maybe check that for inspiration. |
|
@masicaaa I did a quick review on implementation approach too and I'm not sure that creating this new Nice touch - should keep
Problems
SuggestionWe already have Rework this to extend the existing |
|
/sp stop |
|
✅ Ephemeral machine has been terminated. |
|
Closing this one as outdated. Feel free to reopen |


Fixes #2807
Adds a resizable dialog for configuration fields and updates related UI components.