Skip to content

Conversation

@emir-karabeg
Copy link
Collaborator

@emir-karabeg emir-karabeg commented Jul 23, 2025

Description

Improved the logs page.

Type of change

  • 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
  • I have added tests that prove my fix is effective or that my feature works
  • 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

@vercel
Copy link

vercel bot commented Jul 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sim ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 24, 2025 9:25pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
docs ⬜️ Skipped (Inspect) Jul 24, 2025 9:25pm

@emir-karabeg emir-karabeg marked this pull request as draft July 23, 2025 07:15
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 enhances the logs page by adding a contextual filtering sidebar component. The main change introduces a new floating panel in the sidebar that appears specifically when users are on the logs page (/w/.*/logs). The implementation adds:

  1. Logs Page Detection: Uses regex pattern matching to detect when users are viewing the logs page, following the same approach used for other contextual UI elements in the sidebar.

  2. Contextual Filter Panel: Creates a new floating panel positioned between the toolbar and navigation areas that contains dedicated log filtering controls. The panel uses the same dynamic positioning system as existing floating elements, ensuring consistent behavior when the sidebar is collapsed or expanded.

  3. LogsFilters Component: A new reusable component that organizes multiple filter types (Timeline, Level, Trigger, Folder, Workflow) within a scrollable container. The component uses a configuration array approach for easy maintenance and follows React best practices with proper key props.

The integration follows established patterns in the codebase - the contextual panel appears only when relevant (similar to how the workflow toolbar shows only on workflow pages) and maintains the same styling and positioning logic as other floating sidebar elements. The component architecture separates concerns well, with individual filter components coordinated by the main LogsFilters component.

Confidence score: 4/5

• This is a safe, well-structured UI enhancement that follows existing patterns
• High confidence due to consistent implementation with established sidebar architecture and proper React patterns
• No files need additional attention - the changes are straightforward and follow good separation of concerns

2 files reviewed, 1 comment

Edit Code Review Bot Settings | Greptile

Comment on lines +867 to +883
{/* Floating Logs Filters - Only on logs page */}
<div
className={`pointer-events-auto fixed left-4 z-50 w-56 rounded-[14px] border bg-card shadow-xs ${
!isOnLogsPage || isSidebarCollapsed ? 'hidden' : ''
}`}
style={{
top: `${toolbarTop}px`,
bottom: `${navigationBottom + 42 + 12}px`, // Navigation height + gap
}}
>
<LogsFilters />
</div>
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 the dynamic positioning and conditional rendering logic into a reusable hook since it's now duplicated between the toolbar and logs filters components.

@icecrasher321 icecrasher321 changed the base branch from main to staging July 24, 2025 19:52
@vercel vercel bot temporarily deployed to Preview – docs July 24, 2025 20:30 Inactive
@emir-karabeg emir-karabeg marked this pull request as ready for review July 24, 2025 20:30
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 makes improvements to the logs page UI/UX, though no specific file changes are visible in the current diff. Based on the PR description and context, this appears to be a continuation of previous work that added a contextual filtering sidebar for the logs page. The changes likely include refinements to the existing logs interface, potentially addressing user experience issues or adding additional functionality to the logs filtering system that was previously introduced.

The improvement builds upon the established logs page architecture that includes contextual filtering panels, timeline controls, and level-based filtering. Given that this is marked as a "new feature" that adds functionality, it likely extends the existing logs interface with additional capabilities or enhanced user interactions.

PR Description Notes:

  • Several checklist items remain unchecked, including style guidelines compliance, self-review, code commenting, and test coverage
  • Security considerations checklist is also incomplete

Confidence score: 3/5

• Moderate confidence due to lack of visible changes in the current diff, making it difficult to assess the actual implementation
• Score reflects uncertainty about what specific improvements were made and whether they introduce any issues
• All files would benefit from review since no specific changes are visible to evaluate

No files reviewed, no comments

Edit Code Review Bot Settings | Greptile

@vercel vercel bot temporarily deployed to Preview – docs July 24, 2025 21:21 Inactive
@waleedlatif1 waleedlatif1 merged commit af1c7dc into staging Jul 25, 2025
5 checks passed
@waleedlatif1 waleedlatif1 deleted the improvement/logs branch July 27, 2025 01:34
arenadeveloper02 pushed a commit to arenadeveloper02/p2-sim that referenced this pull request Sep 19, 2025
* improvement: filters ui/ux and logic complete

* improvement(ui/ux): logs control bar

* improvement(ui): log table

* improvement: logs sidebar

* ran lint
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.

3 participants