-
Notifications
You must be signed in to change notification settings - Fork 715
fix: hide management and insights in alert list #9554
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: hide management and insights in alert list #9554
Conversation
|
Failed to generate code suggestions for PR |
Greptile OverviewGreptile SummaryHides the "Alert Insights" and "Settings" buttons in the alert list using hardcoded
Confidence Score: 3/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant User
participant AlertList
participant Router
User->>AlertList: View alert list page
Note over AlertList: Alert Insights button hidden (v-if="false")
Note over AlertList: Settings button hidden (v-if="false")
AlertList-->>User: Display alert list with Import and Add buttons only
Note over AlertList,Router: Previously available flows (now hidden):
User->>AlertList: Click Alert Insights (hidden)
AlertList->>Router: Navigate to alertInsights route
User->>AlertList: Click Settings (hidden)
AlertList->>AlertList: Open correlation drawer
|
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.
1 file reviewed, 2 comments
| </div> | ||
| </div> | ||
| <q-btn | ||
| v-if="false" |
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.
style: hardcoded v-if="false" makes this dead code. if hiding a feature temporarily, use a proper feature flag like config.isEnterprise == 'true' (see other parts of codebase). if permanently removing, delete the button entirely instead of leaving dead code
Prompt To Fix With AI
This is a comment left during a code review.
Path: web/src/components/alerts/AlertList.vue
Line: 79:79
Comment:
**style:** hardcoded `v-if="false"` makes this dead code. if hiding a feature temporarily, use a proper feature flag like `config.isEnterprise == 'true'` (see other parts of codebase). if permanently removing, delete the button entirely instead of leaving dead code
How can I resolve this? If you propose a fix, please make it concise.| icon="insights" | ||
| /> | ||
| <q-btn | ||
| v-if="false" |
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.
style: same issue - hardcoded v-if="false" creates dead code. use feature flags or delete entirely
Prompt To Fix With AI
This is a comment left during a code review.
Path: web/src/components/alerts/AlertList.vue
Line: 89:89
Comment:
**style:** same issue - hardcoded `v-if="false"` creates dead code. use feature flags or delete entirely
How can I resolve this? If you propose a fix, please make it concise.
No description provided.