-
Notifications
You must be signed in to change notification settings - Fork 14
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
chore(ui): alternative table extras show current table name instead of database #259
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,15 @@ | ||||||||||||||||
import { ErrorAlert } from '@/components/error-alert' | ||||||||||||||||
import { SingleLineSkeleton, TableSkeleton } from '@/components/skeleton' | ||||||||||||||||
Comment on lines
+1
to
+2
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion (performance): Consider lazy loading components For performance optimization, consider lazy loading the components if they are not immediately needed. This can help reduce the initial load time of the page.
Suggested change
|
||||||||||||||||
|
||||||||||||||||
export default function Play() { | ||||||||||||||||
return ( | ||||||||||||||||
<> | ||||||||||||||||
<TableSkeleton /> | ||||||||||||||||
<TableSkeleton cols={5} /> | ||||||||||||||||
<ErrorAlert message="Error message" query="SELECT 1" /> | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion: Hardcoded error message and query Consider making the error message and query dynamic or configurable. Hardcoding these values can limit the reusability and flexibility of the
Suggested change
|
||||||||||||||||
<SingleLineSkeleton /> | ||||||||||||||||
<SingleLineSkeleton className="w-[300px]" /> | ||||||||||||||||
<SingleLineSkeleton className="w-[200px] space-x-0 pt-0" /> | ||||||||||||||||
</> | ||||||||||||||||
) | ||||||||||||||||
} |
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.
question: Potential variable name confusion
The change from
{database}
to{table}
might be intentional, but it could lead to confusion if the context is not clear. Ensure that this change aligns with the intended logic and that the variable names are consistent and descriptive.