-
Notifications
You must be signed in to change notification settings - Fork 204
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: Monitors -> Uptime resovles #1333 #1338
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 |
---|---|---|
|
@@ -166,7 +166,7 @@ const Configure = () => { | |
event.preventDefault(); | ||
const action = await dispatch(deleteUptimeMonitor({ authToken, monitor })); | ||
if (action.meta.requestStatus === "fulfilled") { | ||
navigate("/monitors"); | ||
navigate("/uptime"); | ||
} else { | ||
createToast({ body: "Failed to delete monitor." }); | ||
} | ||
|
@@ -207,9 +207,9 @@ const Configure = () => { | |
<> | ||
<Breadcrumbs | ||
list={[ | ||
{ name: "monitors", path: "/monitors" }, | ||
{ name: "details", path: `/monitors/${monitorId}` }, | ||
{ name: "configure", path: `/monitors/configure/${monitorId}` }, | ||
{ name: "uptime", path: "/uptime" }, | ||
{ name: "details", path: `/uptime/${monitorId}` }, | ||
{ name: "configure", path: `/uptime/configure/${monitorId}` }, | ||
Comment on lines
+210
to
+212
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. 💡 Codebase verification Breadcrumb paths need attention in Infrastructure section The Infrastructure section still uses "monitors" in its breadcrumb paths, which is inconsistent with the migration to "uptime":
🔗 Analysis chainBreadcrumb paths have been consistently updated The breadcrumb navigation paths have been properly updated to use 'uptime' instead of 'monitors'. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify consistent usage of 'uptime' in breadcrumb paths across the application
# Test: Search for any remaining instances of 'monitors' in breadcrumb paths
rg -i "monitors.*path:" "Client/src/Pages"
Length of output: 279 Script: #!/bin/bash
# Let's verify if these are actually breadcrumb paths and not something else
# by checking the context around these matches
rg -i "monitors.*path:" "Client/src/Pages" -B 5 -A 5
Length of output: 1918 Script: #!/bin/bash
# Let's also check for any other breadcrumb-related code in these files
# to understand the full context
fd "index.jsx" "Client/src/Pages/Infrastructure" --exec ast-grep --pattern 'const breadcrumbs = $_'
Length of output: 97 Script: #!/bin/bash
# Let's verify if there are any other breadcrumb definitions in the Infrastructure pages
rg "breadcrumbs" "Client/src/Pages/Infrastructure" -B 2 -A 2
Length of output: 58 |
||
]} | ||
/> | ||
<Stack | ||
|
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.
💡 Codebase verification
Old monitor routes have been successfully replaced
The codebase search shows that all
/monitors
routes have been properly updated to their new paths under/uptime
. The only remaining references to the old path are:Client/src/Pages/Uptime/Home/fallback.jsx: navigate("/monitors/create");
Client/src/Pages/Auth/NewPasswordConfirmed.jsx: onClick={() => navigate("/monitors")}
These are minor UI navigation issues that should be updated to use the new
/uptime
paths, but they don't represent actual route definitions or backend endpoints.🔗 Analysis chain
Verify complete removal of old monitor routes
The route changes look good, but let's verify no old monitor routes remain in the codebase.
Also applies to: 98-111
Let me search more thoroughly to ensure we catch all instances and understand their context better.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 249
Script:
Length of output: 106571