Skip to content
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

Register Button name #8129

Merged
merged 2 commits into from
May 1, 2024
Merged

Register Button name #8129

merged 2 commits into from
May 1, 2024

Conversation

hatkyinc2
Copy link
Contributor

Description (required)

Register Button name - "Login" -> "Register"

Documentation - Supabase & Astro
https://docs.astro.build/en/guides/backend/supabase/
The current text is confusing, the register page's action should be register, currently it is login just like the login page

Currently the src/pages/signin.astro is:

<Layout title="Sign in">
  <h1>Sign in</h1>
  <p>New here? <a href="/register">Create an account</a></p>
  <form action="/api/auth/signin" method="post">
    <label for="email">Email</label>
    <input type="email" name="email" id="email" />
    <label for="password">Password</label>
    <input type="password" name="password" id="password" />
    <button type="submit">Login</button>
  </form>
</Layout>

and src/pages/register.astro is:

---
import Layout from "../layouts/Layout.astro";
---

<Layout title="Register">
  <h1>Register</h1>
  <p>Already have an account? <a href="/signin">Sign in</a></p>
  <form action="/api/auth/register" method="post">
    <label for="email">Email</label>
    <input type="email" name="email" id="email" />
    <label for="password">Password</label>
    <input type="password" name="password" id="password" />
    <button type="submit">Login</button>
  </form>
</Layout>

The change is for the later submit button to be called "Register" so the two are easily distinguishable when navigating

image

image

to

image

Related issues & labels (optional)

  • Closes #
  • Suggested label: Docs

First-time contributor to Astro Docs?

Yes

Register Button name - "Login" -> "Register"
Copy link

vercel bot commented May 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview May 1, 2024 3:27pm

@astrobot-houston
Copy link
Contributor

Hello! Thank you for opening your first PR to Astro’s Docs! 🎉

Here’s what will happen next:

  1. Our GitHub bots will run to check your changes.
    If they spot any broken links you will see some error messages on this PR.
    Don’t hesitate to ask any questions if you’re not sure what these mean!

  2. In a few minutes, you’ll be able to see a preview of your changes on Vercel 🥳

  3. One or more of our maintainers will take a look and may ask you to make changes.
    We try to be responsive, but don’t worry if this takes a few days.

@astrobot-houston
Copy link
Contributor

astrobot-houston commented May 1, 2024

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale File Note
en guides/backend/supabase.mdx Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

Copy link
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, @hatkyinc2 ! Thank you for taking the time to improve these instructions for everyone, and we are happy to welcome you to Team Docs! 🥳

@sarah11918 sarah11918 added code snippet update Updates a code sample: typo, outdated code etc. Merge Queue Approved and ready to be merged (wait for feature release if also labelled M-O-R)! labels May 1, 2024
@sarah11918 sarah11918 merged commit c3c768a into withastro:main May 1, 2024
8 checks passed
@hatkyinc2 hatkyinc2 deleted the patch-1 branch May 2, 2024 00:51
thomasbnt added a commit to thomasbnt/docs that referenced this pull request May 2, 2024
…S'enregistrer" at L262)

Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>
wpplumber pushed a commit to wpplumber/astro-docs that referenced this pull request May 4, 2024
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
dreyfus92 added a commit that referenced this pull request May 4, 2024
…trer" at L262) (#8155)

Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>
Co-authored-by: Paul Valladares <85648028+dreyfus92@users.noreply.github.com>
wpplumber pushed a commit to wpplumber/astro-docs that referenced this pull request May 9, 2024
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
wpplumber pushed a commit to wpplumber/astro-docs that referenced this pull request May 9, 2024
…S'enregistrer" at L262) (withastro#8155)

Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>
Co-authored-by: Paul Valladares <85648028+dreyfus92@users.noreply.github.com>
wpplumber pushed a commit to wpplumber/astro-docs that referenced this pull request May 15, 2024
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
wpplumber pushed a commit to wpplumber/astro-docs that referenced this pull request May 15, 2024
…S'enregistrer" at L262) (withastro#8155)

Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>
Co-authored-by: Paul Valladares <85648028+dreyfus92@users.noreply.github.com>
wpplumber pushed a commit to wpplumber/astro-docs that referenced this pull request May 15, 2024
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
wpplumber pushed a commit to wpplumber/astro-docs that referenced this pull request May 15, 2024
…S'enregistrer" at L262) (withastro#8155)

Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>
Co-authored-by: Paul Valladares <85648028+dreyfus92@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code snippet update Updates a code sample: typo, outdated code etc. Merge Queue Approved and ready to be merged (wait for feature release if also labelled M-O-R)!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants