Skip to content

fix(sidebar): order by created at#1251

Merged
icecrasher321 merged 1 commit intostagingfrom
fix/ordering-workflows
Sep 5, 2025
Merged

fix(sidebar): order by created at#1251
icecrasher321 merged 1 commit intostagingfrom
fix/ordering-workflows

Conversation

@icecrasher321
Copy link
Collaborator

Summary

Order workflows by created at.

Type of Change

  • Bug fix

Testing

Manually.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel
Copy link

vercel bot commented Sep 5, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
sim Building Building Preview Comment Sep 5, 2025 3:22am
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
docs Skipped Skipped Sep 5, 2025 3:22am

@icecrasher321 icecrasher321 merged commit 0e8e8c7 into staging Sep 5, 2025
4 of 5 checks passed
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 refactors workflow ordering across the entire application from alphabetical sorting by name to chronological sorting by creation date (newest first). The changes introduce a new createdAt field to the WorkflowMetadata interface and implement consistent sorting behavior across multiple components.

The implementation adds the createdAt timestamp to workflow metadata throughout the system, ensuring all workflows track both creation time and last modification time separately. In the workflow registry store, the code properly handles the createdAt field during workflow creation, marketplace imports, duplications, and database fetching. Importantly, the update logic preserves the original createdAt value to maintain data integrity.

The sorting changes are applied consistently across four key components: the sidebar, control bar, and user input copilot component. Each component now uses the same sorting logic that compares createdAt timestamps in descending order. This creates a unified user experience where workflows appear in the same chronological order throughout the application interface.

The change fits naturally into the existing codebase architecture, leveraging the established WorkflowMetadata type system and following the same patterns used for the existing lastModified field. The implementation maintains backward compatibility and includes proper null checking for the new timestamp field.

Confidence score: 4/5

  • This PR is safe to merge with low risk as it primarily affects UI ordering without changing core functionality
  • Score reflects well-structured changes with proper type safety, but complexity from touching multiple components and data model changes
  • Pay close attention to the store.ts file for proper timestamp handling during workflow operations

5 files reviewed, no comments

Edit Code Review Bot Settings | Greptile

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