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

Finish user onboarding page #12

Open
wants to merge 26 commits into
base: development
Choose a base branch
from
Open

Finish user onboarding page #12

wants to merge 26 commits into from

Conversation

yukicoder0509
Copy link
Collaborator

The onboarding page for users who haven't registered before to set up their username and nickname.

Copy link

vercel bot commented Nov 28, 2024

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

Name Status Preview Comments Updated (UTC)
frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 29, 2024 1:48pm

Copy link
Contributor

@burnedinthesky burnedinthesky left a comment

Choose a reason for hiding this comment

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

Please note that you have based this branch off the not-yet-merged author-viewpoint branch. Doing this may result in merge conflicts as you continue to change the author-viewpoint branch. It is recommended you rebase this branch onto a more stable branch (typically should be main), and do so for all future branches. In this case, however, since main is quite outdated, you may choose to rebase onto dev.

歡迎來到 CommonGround
</h1>
<form onSubmit={form.onSubmit(setSubmittedValues)}>
<NicknameInput form={form} inputValueName="nickname" />
Copy link
Contributor

Choose a reason for hiding this comment

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

I personally don't think NicknameInput and UserNameInput should be their own components. Since they neither contain much logic nor is reusable, I believe you can just merge it into this compoenent.

import { useState, useEffect } from "react";
import NicknameInput from "@/components/Onboarding/NicknameInput";
import UserNameInput from "./UserNameInput";
import { PaperAirplaneIcon } from "@heroicons/react/24/outline";
Copy link
Contributor

Choose a reason for hiding this comment

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

The original icon comes from outline/20

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I recently encountered a problem importing 20/outline. I think we can debug that in the weekly meeting.

<form onSubmit={form.onSubmit(setSubmittedValues)}>
<NicknameInput form={form} inputValueName="nickname" />
<UserNameInput form={form} inputValueName="username" />
<Button
Copy link
Contributor

Choose a reason for hiding this comment

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

The original design did not follow Mantine's design system (will fix in Figma ver 0.2), so for now an sm button will suffice

required
{...form.getInputProps(inputValueName)}
key={form.key(inputValueName)}
classNames={{
Copy link
Contributor

Choose a reason for hiding this comment

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

The styling follows Mantine's xs size

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've tried to apply size="sm" to the TextInput, but the text in the label and description appears to be "really" small. I think "md" fits the Figma design more.

required
{...form.getInputProps(inputValueName)}
key={form.key(inputValueName)}
classNames={{
Copy link
Contributor

Choose a reason for hiding this comment

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

The styling follows Mantine's xs size

export const metadata: Metadata = {
title: "CommonGround - Onboarding",
keywords: "onboarding, user, registration",
description: "CommonGround onboarding page for new users",
Copy link
Contributor

Choose a reason for hiding this comment

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

The description should be in Chinese as our users should mostly be based in Taiwan

import { useForm } from "@mantine/form";

export const metadata: Metadata = {
title: "CommonGround - Onboarding",
Copy link
Contributor

Choose a reason for hiding this comment

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

The title should be in Chinese as our users should mostly be based in Taiwan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants