chore(fe): polish Query History table#9767
Merged
Conversation
jmelahman
commented
Mar 30, 2026
web/src/app/ee/admin/performance/query-history/QueryHistoryTable.tsx
Outdated
Show resolved
Hide resolved
Contributor
Greptile SummaryThis PR polishes the Query History table by replacing ad-hoc HTML wrapper
Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
QHT[QueryHistoryTable]
CS[CardSection]
F[Filters div\nSelectFeedbackType + DateRange]
SEP[Separator]
S1[Section]
T[Table\nQueryHistoryTableRow ×N]
S2[Section\nPageSelector]
MOD[PreviousQueryHistoryExportsModal]
MB[Modal.Body]
ET[Table\nExport rows]
S3[Section\nPageSelector]
QHT --> CS
CS --> F
CS --> SEP
CS --> S1
S1 --> T
S1 --> S2
QHT --> MOD
MOD --> MB
MB --> ET
MB --> S3
style S1 fill:#d4edda,stroke:#28a745
style S2 fill:#fff3cd,stroke:#ffc107
style S3 fill:#fff3cd,stroke:#ffc107
Prompt To Fix All With AIThis is a comment left during a code review.
Path: web/src/app/ee/admin/performance/query-history/QueryHistoryTable.tsx
Line: 365-373
Comment:
**Redundant nested `<Section>` for pagination**
The inner `<Section>` wrapping `PageSelector` is redundant. The outer `<Section>` already defaults to `justifyContent="center"` and `alignItems="center"`, which will center the `PageSelector` just as well. The extra wrapper only adds another `h-full min-h-0 w-full` `div` to the DOM without contributing layout value.
The same pattern occurs at line 235–241 in the modal pagination.
```suggestion
{chatSessionData && (
<PageSelector
totalPages={totalPages}
currentPage={currentPage}
onPageChange={goToPage}
/>
)}
```
How can I resolve this? If you propose a fix, please make it concise.Reviews (3): Last reviewed commit: "nit" | Re-trigger Greptile |
raunakab
approved these changes
Mar 30, 2026
Contributor
There was a problem hiding this comment.
2 issues found across 1 file
Confidence score: 4/5
- Overall risk looks low; issues are minor and localized to
QueryHistoryTable.tsx, with no indication of broad functional changes. - Most notable issue is a temporary
console.logleft inQueryHistoryTable.tsx, which could leak noise into production logs but is easy to fix. - Pay close attention to
web/src/app/ee/admin/performance/query-history/QueryHistoryTable.tsx- remove debug logging and switch export row keys to a stable identifier.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="web/src/app/ee/admin/performance/query-history/QueryHistoryTable.tsx">
<violation number="1" location="web/src/app/ee/admin/performance/query-history/QueryHistoryTable.tsx:199">
P2: Use a stable key (e.g., `task.taskId`) instead of the array index for export rows.</violation>
<violation number="2" location="web/src/app/ee/admin/performance/query-history/QueryHistoryTable.tsx:299">
P1: Custom agent: **No debugging code**
Remove the temporary `console.log` debug statement from `QueryHistoryTable` before merging.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
web/src/app/ee/admin/performance/query-history/QueryHistoryTable.tsx
Outdated
Show resolved
Hide resolved
Contributor
|
Preview Deployment
|
Contributor
🖼️ Visual Regression Report
|
Apply suggestion from @jmelahman nit
34d0d13 to
631211c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Removes some custom HTML from this page
How Has This Been Tested?
before

after

Additional Options
Summary by cubic
Polished the Query History table by standardizing layout with
Section, improving export UX with a properButtonfor downloads, and tightening table spacing and pagination.Sectionfor filter controls, the main table block, and both paginations.Buttonwith icon; disabled until SUCCESS, with a tooltip andhrefonly when ready.Written for commit 631211c. Summary will update on new commits.