-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/traces #335
Fix/traces #335
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Changes requested. Reviewed everything up to ece78a4 in 1 minute and 50 seconds
More details
- Looked at
269
lines of code in7
files - Skipped
0
files when reviewing. - Skipped posting
4
drafted comments based on config settings.
1. frontend/components/traces/span-card.tsx:47
- Draft comment:
Good use ofMath.max(0, ...)
to ensure non-negative segment height. This prevents potential layout issues. - Reason this comment was not posted:
Confidence changes required:0%
TheparentY
prop inSpanCard
is updated to usegetBoundingClientRect().y
which is a good change for dynamic positioning.
2. frontend/components/traces/span-card.tsx:112
- Draft comment:
Thez-index
change from 40 to 30 might affect the stacking order of elements. Ensure this is intentional and doesn't cause UI issues. - Reason this comment was not posted:
Confidence changes required:50%
Thez-index
change from 40 to 30 might affect the stacking order of elements. Ensure this is intentional and doesn't cause UI issues.
3. frontend/components/traces/trace-view.tsx:233
- Draft comment:
Good use ofgetBoundingClientRect().y
for dynamic positioning ofparentY
. This ensures accurate layout calculations. - Reason this comment was not posted:
Confidence changes required:0%
TheparentY
prop is updated to usegetBoundingClientRect().y
which is a good change for dynamic positioning.
4. frontend/components/ui/formatter.tsx:63
- Draft comment:
Consider storing the result ofrenderText(value)
in a state variable to avoid redundant calculations and improve performance. - Reason this comment was not posted:
Comment looked like it was already resolved.
Workflow ID: wflow_40KswM2hd8XfI8aO
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
frontend/app/api/workspaces/route.ts
Outdated
}) | ||
.from(projects) | ||
.where(eq(projects.workspaceId, workspace.id)) | ||
.groupBy(projects.id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The use of groupBy(projects.id)
is unnecessary here as the selected fields are already unique per project. Consider removing it to simplify the query.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on 1fd73b9 in 21 seconds
More details
- Looked at
25
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. frontend/app/api/workspaces/route.ts:51
- Draft comment:
Ensure that removing thegroupBy
clause does not affect the expected results of the query, especially if there were any aggregations or unique constraints based on project IDs. - Reason this comment was not posted:
Confidence changes required:50%
The removal of the groupBy clause might affect the query results if there were any aggregations or expected unique results based on project IDs. However, without additional context, it's unclear if this change is correct or not.
Workflow ID: wflow_R2Jtl1y8X027RgiT
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on b3eeb01 in 12 seconds
More details
- Looked at
25
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. frontend/components/projects/project-card.tsx:3
- Draft comment:
Remove the unused import ofCard
to clean up the code. - Reason this comment was not posted:
Confidence changes required:50%
The import statement for 'Card' is unnecessary since it is not used in the file.
Workflow ID: wflow_a0LaPDjeQvfDXH1L
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Important
Enhance workspace and project management with API updates, UI improvements, and data handling adjustments across multiple components.
GET
method inroute.ts
to fetch workspaces and associated projects from the database, handling unauthorized access.POST
method inroute.ts
for creating workspaces.ProjectCard
to update styling and removeCard
component.SpanCard
to fix segment height calculation and button z-index.TraceView
to handle span selection and timeline width dynamically.Formatter
to handle YAML parsing and rendering with state management.WorkspaceUsage
to reflect new span limits for Free and Pro tiers.numSpans
andnumEvaluations
toProject
type intypes.ts
.This description was created by
for b3eeb01. It will automatically update as commits are pushed.