feat(web): add verify email button on settings page#930
Conversation
Show a small Vuetify button to trigger email verification when the user's email is not verified, replacing the verified badge. The button disables after sending to prevent duplicate requests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
PR Summary
|
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
| <VBtn | ||
| v-else | ||
| size="x-small" | ||
| variant="tonal" | ||
| color="warning" | ||
| :loading="sendingVerificationEmail" | ||
| :disabled="verificationEmailSent" | ||
| @click="sendVerificationEmail" | ||
| > | ||
| Verify Email | ||
| </VBtn> | ||
| </h4> |
There was a problem hiding this comment.
Interactive element inside a heading
A <VBtn> (which renders a <button>) nested inside an <h4> is invalid HTML — the spec forbids interactive content inside heading elements. This can cause accessibility issues (screen readers may misparse the heading) and browser-normalised rendering quirks. Consider wrapping both the email text and the icon/button in a <div> or <span> container that sits next to or below the <h4>, rather than placing the button inside it.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Show a small Vuetify button to trigger email verification when the user's email is not verified, replacing the verified badge icon. The button disables after sending to prevent duplicate requests.