Repository navigation
Drop the token note from template connection pages - #432
Merged
Merged
Conversation
Disconnecting already removes the app's access, so the OAuth pages no longer explain tokens and provider settings. Garmin Connect says in plain words that the key keeps working until it is deleted on Garmin.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | fb707d9 | Nov 26 2026, 05:57 PM |
| <div class="card row"><div class="status">${key.status === "connected" ? '<span class="dot" aria-hidden="true"></span>' : ""}<div><strong>${escapeHtml((key.status === "connected" && key.displayName) || "Garmin account")}</strong><p class="muted small">${key.status === "connected" ? `Connected with the key saved on ${day(key.savedAt)}` : `The key saved on ${day(key.savedAt)} no longer works`}</p></div></div> | ||
| <form method="post" action="/disconnect"><button class="ghost">Disconnect</button></form></div> | ||
| <p class="muted small note">Disconnecting deletes the saved key from this app. To revoke the key itself, delete it on Garmin Connect.</p></section>`; | ||
| <p class="muted small note">Disconnecting removes your key from this app. The key keeps working until you delete it on Garmin Connect.</p></section>`; |
There was a problem hiding this comment.
The new sentence also appears when key.status === "rejected". Those users see both “It expired or was deleted” and “The key keeps working until you delete it,” which contradict each other. Say that Disconnect does not delete the key on Garmin Connect, without promising that the key still works.
Suggested change
| <p class="muted small note">Disconnecting removes your key from this app. The key keeps working until you delete it on Garmin Connect.</p></section>`; | |
| <p class="muted small note">Disconnecting removes your key from this app. It does not delete the key on Garmin Connect.</p></section>`; |
Contributor
Author
There was a problem hiding this comment.
Fixed: the note now shows only while the key works, so a rejected key shows only the alert.
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.
The connected account on a template's page ended with "Disconnecting deletes the saved tokens from this app. To revoke access, also remove it in your Google account settings." Most people who connect an account don't know what tokens are, and the note suggests a second cleanup step they don't need: Disconnect already removes the app's access.
Changes
templates/*/src/page.ts): the note below the account is gone. The Disconnect button is enough on its own.Screenshots
A rejected key, without the note:
Verification