-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: added context redirection from panels to explorer pages #7141
base: main
Are you sure you want to change the base?
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.
👍 Looks good to me! Reviewed everything up to ee10c17 in 2 minutes and 13 seconds
More details
- Looked at
536
lines of code in12
files - Skipped
0
files when reviewing. - Skipped posting
10
drafted comments based on config settings.
1. frontend/src/container/GridCardLayout/WidgetHeader/contants.ts:1
- Draft comment:
Filename 'contants.ts' appears to be misspelled. Consider renaming it to 'constants.ts' for clarity and consistency. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
2. frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx:253
- Draft comment:
Avoid using inline styles (e.g., style={{ height: '100%', width: '100%' }}). Consider using CSS classes or styled components instead. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
3. frontend/src/container/GridCardLayout/GridCard/index.tsx:273
- Draft comment:
Inline styles are used for the wrapping(e.g., height: '100%', width: '100%'). Replace these with CSS classes to ensure stylistic consistency. - Reason this comment was not posted:
Comment was on unchanged code.
4. frontend/src/container/GridCardLayout/WidgetHeader/index.tsx:281
- Draft comment:
Avoid inline styles (e.g., paddingRight: '0.25rem') on components like Spinner. Use predefined spacing tokens or CSS classes instead. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
5. frontend/src/pages/Celery/CeleryOverview/CeleryOverviewDetail/ValueInfo.tsx:94
- Draft comment:
Avoid hardcoding color values (e.g., 'gray', 'green', 'yellow', 'red') in the getColor functions. Use design tokens or predefined color constants for consistency. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
6. frontend/src/components/CeleryTask/CeleryTaskDetail/CeleryTaskDetail.tsx:81
- Draft comment:
Avoid inline styles on the Drawer component. Consider extracting these styles into a CSS class or styled component to improve maintainability and theming consistency. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
7. frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx:253
- Draft comment:
Avoid using inline styles for setting height and width. Extract these style definitions into a CSS class or use styled components for consistency. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
8. frontend/src/container/GridCardLayout/GridCard/index.tsx:273
- Draft comment:
Inline styles are used on the container div. For better consistency and easier theming, move these hardcoded styles to an external stylesheet or a CSS class. - Reason this comment was not posted:
Marked as duplicate.
9. frontend/src/pages/Celery/CeleryOverview/CeleryOverviewDetail/ValueInfo.tsx:94
- Draft comment:
Hardcoded color strings (e.g. 'gray', 'green', 'yellow', 'red') are used in the color determination functions. Use design tokens or predefined color constants instead to ensure design consistency. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
10. frontend/src/container/GridCardLayout/WidgetHeader/index.tsx:281
- Draft comment:
An inline style is used for the Spinner component (paddingRight: '0.25rem'). For consistent theming, consider moving this style into a CSS class or design token. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
Workflow ID: wflow_MV2aCqWnmfvAZnWN
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.
❌ Changes requested. Incremental review on 99b66c6 in 1 minute and 58 seconds
More details
- Looked at
277
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
3
drafted comments based on config settings.
1. frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx:298
- Draft comment:
Avoid inline styles; consider using CSS classes for container styling to maintain consistency with design tokens. - Reason this comment was not posted:
Comment was on unchanged code.
2. frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx:258
- Draft comment:
Each filter item gets the same UUID because v4() is called once outside the loop. Call v4() inside the map to generate unique IDs. - Reason this comment was not posted:
Marked as duplicate.
3. frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx:297
- Draft comment:
Avoid inline styles for the container div. Move the 'height: 100%' styling into a dedicated CSS class for better maintainability. - Reason this comment was not posted:
Confidence changes required:33%
<= threshold50%
None
Workflow ID: wflow_63nVjbrmFfOvx9Ag
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/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx
Outdated
Show resolved
Hide resolved
frontend/src/container/GridCardLayout/useGraphClickToShowButton.ts
Outdated
Show resolved
Hide resolved
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 3749bdf in 1 minute and 37 seconds
More details
- Looked at
90
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
6
drafted comments based on config settings.
1. frontend/src/container/GridCardLayout/useGraphClickToShowButton.ts:68
- Draft comment:
The previous calculateButtonPosition applied a 10px margin offset. Now, using raw mouseX and mouseY may lead to unexpected placements. Please confirm this simplified positioning meets UX requirements. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%
<= threshold50%
This comment is asking the PR author to confirm if the simplified positioning meets UX requirements, which violates the rule against asking for confirmation of intention or behavior. It does not provide a specific suggestion or point out a clear issue with the code.
2. frontend/src/container/GridCardLayout/useGraphClickToShowButton.ts:62
- Draft comment:
Using inline styles for positioning and zIndex here. Consider moving these styles to a CSS class or styled component for better consistency and maintainability. - Reason this comment was not posted:
Comment was on unchanged code.
3. frontend/src/container/GridCardLayout/useGraphClickToShowButton.ts:62
- Draft comment:
The previous implementation temporarily set the button's visibility to 'hidden' during positioning. Its removal might cause flickering issues if rendering occurs before styles are applied. Consider if this is intentional. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50%
The new implementation adds the button to DOM, gets its bounds, then positions it - all synchronously. Modern browsers are very fast at layout/paint operations. The previous visibility toggle seems like premature optimization. There's no clear evidence that flickering is actually an issue. The comment is speculative with "might cause" language.
I could be underestimating the performance impact on slower devices. The previous implementation might have had this optimization for a specific reason.
Without concrete evidence of flickering issues, and given that this is synchronous DOM manipulation, the optimization seems unnecessary. If flickering becomes a real problem, it can be addressed then.
Delete the comment as it's speculative ("might cause") and there's no clear evidence that flickering is actually an issue.
4. frontend/src/container/GridCardLayout/useGraphClickToShowButton.ts:6
- Draft comment:
Removed the ButtonPosition interface & corresponding calculation logic. The previous version applied a margin (10px offset) to button positioning. Confirm that the simpler positioning without offsets meets the intended UI layout. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
5. frontend/src/container/GridCardLayout/useGraphClickToShowButton.ts:60
- Draft comment:
Avoid using inline styles for positioning. Consider moving styling (e.g. absolute positioning and zIndex) to a CSS class or styled component to maintain design consistency. - Reason this comment was not posted:
Marked as duplicate.
6. frontend/src/container/GridCardLayout/useGraphClickToShowButton.ts:63
- Draft comment:
The removed line that set 'visibility: hidden' before positioning might have been used to avoid flicker. Verify that its removal doesn't cause visual glitches when the button renders. - Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_QtePFzsqRptIttF1
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 4eee274 in 39 seconds
More details
- Looked at
52
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
4
drafted comments based on config settings.
1. frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx:260
- Draft comment:
Using v4() directly in the map ensures unique IDs per filter. This is acceptable, but consider the performance impact for large datasets if many UUIDs are generated. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
2. frontend/src/container/GridCardLayout/useGraphClickToShowButton.ts:120
- Draft comment:
Good check for xValue using !isUndefined to improve robustness. Ensure similar type validations as needed. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
3. frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx:258
- Draft comment:
Good improvement: calling v4() inside the map now generates a unique id per filter item, avoiding duplicate IDs. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
4. frontend/src/container/GridCardLayout/useGraphClickToShowButton.ts:119
- Draft comment:
Using !isUndefined(xValue) is a smart fix to handle the case when xValue is 0 (a falsy value). - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
Workflow ID: wflow_J6UnMeFpKO9uEWFA
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 0fa86e0 in 33 seconds
More details
- Looked at
12
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. frontend/src/container/GridCardLayout/useGraphClickToShowButton.ts:66
- Draft comment:
Removed unused comment. Verify that positioning logic remains clear without inline commentary. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
2. frontend/src/container/GridCardLayout/useGraphClickToShowButton.ts:66
- Draft comment:
Removal of the commented-out note about positioning is safe. Ensure that any useful context for the dynamic positioning logic is documented elsewhere if needed. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
Workflow ID: wflow_ERVlMsYo5ep970E2
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
478aa95
to
1fc39fc
Compare
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. Incremental review on 549cc9d in 2 minutes and 12 seconds
More details
- Looked at
151
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
7
drafted comments based on config settings.
1. frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx:106
- Draft comment:
Consider providing user feedback for navigation errors instead of only logging them to the console. Using notifications.error (as done elsewhere) would improve UX. - Reason this comment was not posted:
Marked as duplicate.
2. frontend/src/container/GridCardLayout/useNavigateToExplorerPages.ts:5
- Draft comment:
Possible typo in import path: 'dashbaordVariables' might be intended as 'dashboardVariables'. Verify the folder name to avoid future confusion. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 0% vs. threshold = 50%
While typos in import paths are real issues that would cause problems, this kind of issue would be caught immediately by the build system and tests. The PR author would not be able to even run the code locally with this typo. According to the rules, we should not comment on things that would be obviously caught by the build.
The typo could be indicative of a larger issue where the folder itself is misnamed in the codebase, which wouldn't be caught by the build if the folder name matches the import.
Even if the folder is misnamed, that would be outside the scope of this PR review since we're told to ignore cross-file issues and only focus on the changes in this file.
Delete the comment since import path issues would be caught by the build system and we're instructed not to comment on such issues.
3. frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx:234
- Draft comment:
It looks like 'onDeleteModelHandler' might be a typographical error. Since the variable controlling the modal is named 'deleteModal', consider renaming this function to 'onDeleteModalHandler' for consistency. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
4. frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx:238
- Draft comment:
The function 'onToggleModelHandler' appears to have a potential typo. Since this handler toggles a modal, it might be more appropriate to name it 'onToggleModalHandler' to match the 'deleteModal' variable and general modal terminology. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
5. frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx:327
- Draft comment:
The delete confirmation text 'Are you sure you want to delete this widget' is missing a question mark at the end. Consider updating it to 'Are you sure you want to delete this widget?' for better clarity. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
6. frontend/src/container/GridCardLayout/useNavigateToExplorerPages.ts:5
- Draft comment:
Typographical error: The import path 'lib/dashbaordVariables/getDashboardVariables' has 'dashbaord' instead of 'dashboard'. Please correct the typo. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50%
The typo is in a newly added import statement, so it's about changed code. Typos in import paths will likely cause build failures, so this would be caught by the build system. According to the rules, we should not comment on things that would be obviously caught by the build.
The typo could potentially indicate a deeper issue where the folder itself is misnamed, which wouldn't be caught by the build if the folder name matches the import path.
Even if the folder is misnamed, that would be outside the scope of this file review since we're told to ignore cross-file issues. The build will fail if the import path doesn't match the actual path.
Delete the comment since it points out an issue that would be caught by the build system during compilation.
7. frontend/src/container/GridCardLayout/useNavigateToExplorerPages.ts:55
- Draft comment:
Typographical error: 'widget.timePreferance' appears to be misspelled. Consider renaming it to 'widget.timePreference' for clarity. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50%
This is a property access, so if the property name is actually misspelled, the code would likely break at runtime. However, we can't see the Widgets type definition to confirm if this is actually a typo or if that's the intended property name. Without seeing the type definition or having more context, we can't be certain this is actually incorrect.
The property name could be intentionally spelled this way in the type definition. Also, if this was a real typo, TypeScript would likely catch this during compilation.
Given that this is TypeScript code and the property is being accessed without any type assertions, it's highly likely that this spelling matches the type definition, even if unconventional.
The comment should be deleted as we cannot verify if this is actually a typo without seeing the Widgets type definition, and TypeScript's type checking would catch this if it were truly incorrect.
Workflow ID: wflow_7Z88JGPMlR3EK4XC
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/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx
Outdated
Show resolved
Hide resolved
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. Incremental review on dea7614 in 1 minute and 36 seconds
More details
- Looked at
466
lines of code in4
files - Skipped
0
files when reviewing. - Skipped posting
10
drafted comments based on config settings.
1. frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx:292
- Draft comment:
Avoid using inline styles for the container div. It is better to use a CSS class for consistency and easier maintenance. - Reason this comment was not posted:
Comment was on unchanged code.
2. frontend/src/container/GridCardLayout/useNavigateToExplorerPages.ts:127
- Draft comment:
Note that the hook now returns filter configuration instead of directly navigating. Confirm that consuming components are updated accordingly. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%
<= threshold50%
The comment is asking the PR author to confirm that consuming components are updated accordingly. This falls under the rule of not asking the author to confirm their intention or to ensure that the behavior is intended. Therefore, this comment should be removed.
3. frontend/src/container/GridCardLayout/useNavigateToExplorerPages.ts:133
- Draft comment:
Consider whether returning an empty object on error is sufficient. It might be better to propagate or handle errors more explicitly. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 20% vs. threshold = 50%
The function already has error handling - it shows a user-friendly notification. The empty object return is consistent with the function's behavior in other edge cases (like line 80). The comment is speculative and doesn't provide a concrete improvement. The current implementation seems reasonable for the use case.
The comment could be right that more explicit error handling might be beneficial in some scenarios. There might be callers that need to know if an error occurred versus getting valid empty results.
The current implementation already provides user feedback through notifications, and the empty object return is consistent with the function's behavior in other edge cases. Without specific knowledge of how callers use this data, suggesting different error handling is speculative.
Delete the comment. While it raises a theoretical concern, it's speculative and doesn't provide concrete actionable feedback. The current error handling appears sufficient for the observed use case.
4. frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx:292
- Draft comment:
Avoid using inline styles in React components. Consider moving the style (e.g. { height: '100%' }) to a CSS class for consistency and easier theming. - Reason this comment was not posted:
Comment was on unchanged code.
5. frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx:263
- Draft comment:
Consider adding error handling for the promise chain in handleGraphClick. If navigateToExplorerPages fails, ensure errors are caught and handled appropriately. - Reason this comment was not posted:
Marked as duplicate.
6. frontend/src/container/GridCardLayout/useGraphClickToShowButton.ts:215
- Draft comment:
The condition for showing the context menu checks for queryData and queryData.inFocusOrNot along with its key count. Verify that this strict check is intentional, as it may prevent menu display in cases where queryData exists but inFocusOrNot is false. - Reason this comment was not posted:
Comment was on unchanged code.
7. frontend/src/container/GridCardLayout/useGraphClickToShowButton.ts:145
- Draft comment:
Inline styles applied during dynamic menu positioning are sometimes necessary due to calculated values, but consider if any static parts can be shifted to CSS classes for consistency. - Reason this comment was not posted:
Confidence changes required:33%
<= threshold50%
None
8. frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx:311
- Draft comment:
Typographical inconsistency: The handler is named 'onDeleteModelHandler' while the context is a modal (e.g., variable 'deleteModal'). Consider renaming it to 'onDeleteModalHandler' for clarity and consistency. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
9. frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx:327
- Draft comment:
Typographical inconsistency: The handler 'onToggleModelHandler' appears to have a typo ('Model' instead of 'Modal'). For consistency with the modal context, consider renaming it to 'onToggleModalHandler'. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
10. frontend/src/container/GridCardLayout/GridCardLayout.styles.scss:198
- Draft comment:
It looks like there's a typographical error in the CSS variable name on line 198. The variable is written as "var(--Ink-400, #121317)" with a capital 'I', whereas elsewhere we use lower-case (e.g., "var(--bg-ink-400)"). It would be good to correct it for consistency. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
Workflow ID: wflow_ltODu7drf4fLpUs9
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/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx
Outdated
Show resolved
Hide resolved
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. Incremental review on 3900944 in 1 minute and 23 seconds
More details
- Looked at
30
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. frontend/src/container/GridCardLayout/useNavigateToExplorerPages.ts:49
- Draft comment:
Remove console.log debug statement before merging for production. - Reason this comment was not posted:
Marked as duplicate.
2. frontend/src/container/GridCardLayout/useNavigateToExplorerPages.ts:43
- Draft comment:
Consider renaming 'uniqueFilters' to a more descriptive name such as 'filteredExistingFilters' for better clarity. - Reason this comment was not posted:
Confidence changes required:50%
<= threshold50%
None
Workflow ID: wflow_Mw2ac8xdc32laLA1
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/src/container/GridCardLayout/useNavigateToExplorerPages.ts
Outdated
Show resolved
Hide resolved
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 062ed04 in 1 minute and 8 seconds
More details
- Looked at
143
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
8
drafted comments based on config settings.
1. frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskBar.tsx:188
- Draft comment:
Good improvement: using explicit parameters instead of rest parameters in onClickHandler increases readability. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
2. frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskBar.tsx:208
- Draft comment:
Same improvement applied in other onClickHandler(s) increases clarity. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
3. frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx:300
- Draft comment:
Avoid using inline styles; consider extracting the inline style (height: '100%') into a CSS class or styled component for consistency. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
4. frontend/src/container/GridCardLayout/useNavigateToExplorerPages.ts:131
- Draft comment:
Consider ensuring that requestData defaults are appropriately set; returning an empty queryName might mask problems. - Reason this comment was not posted:
Confidence changes required:33%
<= threshold50%
None
5. frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskBar.tsx:188
- Draft comment:
Good improvement with explicit callback parameters for onClickHandler. Consider extracting this repeated logic into a helper function to reduce duplication. - Reason this comment was not posted:
Confidence changes required:50%
<= threshold50%
None
6. frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx:299
- Draft comment:
Avoid using inline styles (e.g., setting height: '100%') in the div. Prefer adding a CSS class or using an external stylesheet to ensure design consistency. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
7. frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx:74
- Draft comment:
The useEffect hook disables exhaustive-deps linting with an empty dependency array. Consider adding a clarifying comment or including necessary dependencies to avoid potential issues in future maintenance. - Reason this comment was not posted:
Confidence changes required:33%
<= threshold50%
None
8. frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx:214
- Draft comment:
It appears that the handler functions for the modal dialogs are named 'onDeleteModelHandler' and 'onToggleModelHandler'. Since they control modals (pop-up windows), a more appropriate naming would be 'onDeleteModalHandler' and 'onToggleModalHandler'. This typo can make the code slightly confusing. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
Workflow ID: wflow_L1je4M1wPCY7GP44
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
* feat: added context redirection to fullview and edit view panels * feat: restricted redirection query to have only one query * feat: added is buttonEnabled logic of graphs * feat: code cleanup
Summary
Context redirection from panels
Related Issues / PR's
Screenshots
Graph Action Menu:
Screen.Recording.2025-03-09.at.11.13.08.AM.mov
Coordinate Redirection:
Screen.Recording.2025-03-09.at.11.12.01.AM.mov
Affected Areas and Manually Tested Areas
Important
Adds context redirection from panels to explorer pages with enhanced navigation and UI updates.
useNavigateToExplorer
inCeleryTaskDetail.tsx
,CeleryTaskBar.tsx
, andCeleryTaskLatencyGraph.tsx
.useNavigateToTraces
withuseNavigateToExplorer
for unified navigation logic.useNavigateToExplorerPages
for handling navigation with query data.WidgetGraphComponent.tsx
andGridCard/index.tsx
to include new menu items for viewing traces/logs based on data source.useGraphClickToShowButton
for interactive graph clicks.GridCardLayout.styles.scss
andstyles.scss
.This description was created by
for 062ed04. It will automatically update as commits are pushed.