Skip to content

Conversation

@emir-karabeg
Copy link
Collaborator

Description

Improved the UI/UX for workflow colors, renaming interaction, folder paths, and search modal.

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • All tests pass locally and in CI (bun run test)
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • I have updated version numbers as needed (if needed)
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Security Considerations:

  • My changes do not introduce any new security vulnerabilities
  • I have considered the security implications of my changes

@emir-karabeg emir-karabeg changed the title Improvement/workflow UI improvement(ui/ux): workflow, search modal Jul 20, 2025
@delve-auditor
Copy link

delve-auditor bot commented Jul 20, 2025

No security or compliance issues detected. Reviewed everything up to 7ba407b.

Security Overview
  • 🔎 Scanned files: 11 changed file(s)
Detected Code Changes

The diff is too large to display a summary of code changes.

Reply to this PR with @delve-auditor followed by a description of what change you want and we'll auto-submit a change to this PR to implement it.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Greptile Summary

This PR implements substantial UI/UX improvements across several key areas of the workspace interface. The changes focus on creating a more intuitive and responsive user experience while maintaining code quality and performance.

Key improvements include:

  1. Input Field Standardization: Replaced custom Input components with native HTML inputs across folder and workflow renaming interfaces, with proper attributes for text editing behavior.

  2. Workflow Color System: Restructured the WORKFLOW_COLORS array with better categorization and switched to random color selection for better visual distribution.

  3. Folder Tree Enhancements:

    • Added auto-expansion of folders during workflow navigation
    • Limited folder nesting to 2 levels for maintainability
    • Improved drag-and-drop validation and feedback
  4. Search Modal Improvements:

    • Added workspace and workflow navigation support
    • Implemented comprehensive keyboard navigation
    • Enhanced accessibility with proper keyboard shortcuts
  5. State Management: Added safeguards against concurrent operations in workspace/workflow creation to prevent race conditions.

Confidence score: 4.5 /5

  1. This PR is very safe to merge as it focuses on UI improvements with minimal risk to core functionality
  2. The score reflects the thorough implementation of UI/UX improvements with proper error handling and validations
  3. The template-card.tsx changes should be carefully reviewed for potential edge cases in block icon rendering

9 files reviewed, 3 comments
Edit PR Review Bot Settings | Greptile

Comment on lines 260 to 263
className={cn(
'h-8 flex-1 justify-center gap-2 rounded-[8px] font-medium text-muted-foreground text-xs hover:bg-secondary hover:text-muted-foreground',
'h-8 flex-1 justify-center gap-2 rounded-[8px] font-medium text-muted-foreground text-xs transition-colors hover:bg-muted-foreground/10 hover:text-muted-foreground',
!userPermissions.canAdmin && 'cursor-not-allowed opacity-50'
)}
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Consider extracting these common button styles into a shared class or component to maintain consistency and reduce duplication

Comment on lines +286 to +287
data: any
section: string
Copy link
Contributor

Choose a reason for hiding this comment

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

style: data: any type used in navigatable items. Consider defining specific types for each item category

Comment on lines +446 to +470
const handleItemSelection = useCallback(
(item: (typeof navigatableItems)[0]) => {
switch (item.type) {
case 'workspace':
if (item.data.isCurrent) {
onOpenChange(false)
} else {
handleNavigationClick(item.data.href)
}
break
case 'workflow':
if (item.data.isCurrent) {
onOpenChange(false)
} else {
handleNavigationClick(item.data.href)
}
break
case 'page':
handlePageClick(item.data.href)
break
case 'doc':
handleDocsClick(item.data.href)
break
}
},
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Large switch statement with repeated logic for workspace/workflow. Extract common navigation logic into separate function

Suggested change
const handleItemSelection = useCallback(
(item: (typeof navigatableItems)[0]) => {
switch (item.type) {
case 'workspace':
if (item.data.isCurrent) {
onOpenChange(false)
} else {
handleNavigationClick(item.data.href)
}
break
case 'workflow':
if (item.data.isCurrent) {
onOpenChange(false)
} else {
handleNavigationClick(item.data.href)
}
break
case 'page':
handlePageClick(item.data.href)
break
case 'doc':
handleDocsClick(item.data.href)
break
}
},
const handleNavigationItem = useCallback(
(item: WorkspaceItem | WorkflowItem) => {
if (item.isCurrent) {
onOpenChange(false)
} else {
handleNavigationClick(item.href)
}
},
[handleNavigationClick, onOpenChange]
)
const handleItemSelection = useCallback(
(item: (typeof navigatableItems)[0]) => {
switch (item.type) {
case 'workspace':
case 'workflow':
handleNavigationItem(item.data as WorkspaceItem | WorkflowItem)
break
case 'page':
handlePageClick(item.data.href)
break
case 'doc':
handleDocsClick(item.data.href)
break
}
},

@emir-karabeg emir-karabeg merged commit 24c2253 into staging Jul 20, 2025
8 checks passed
@emir-karabeg emir-karabeg deleted the improvement/workflow-ui branch July 20, 2025 00:08
arenadeveloper02 pushed a commit to arenadeveloper02/p2-sim that referenced this pull request Sep 19, 2025
* improvement: workflow colors

* fix: workflow rename styling

* improvement: no API call on no name change workspace after edit

* improvement: added workflow and workspace to search

* improvement: folder path opened for current workflow on load

* improvement: ui/ux workspace selector

* improvement: search modal keyboard use
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.

2 participants