From 38c62320d6e2da7c9b1e94e0841d73333f02d078 Mon Sep 17 00:00:00 2001 From: maksdeb_g Date: Thu, 3 Sep 2026 13:26:17 +0800 Subject: [PATCH 1/5] feat: misc mobile view --- frontend/src/components/Form.tsx | 14 +++---- frontend/src/components/Input.tsx | 5 +-- .../pages/client/pycon/register/Register.tsx | 20 +++++----- .../register/steps/MiscellaneousStep.tsx | 39 +++++++++++-------- 4 files changed, 38 insertions(+), 40 deletions(-) diff --git a/frontend/src/components/Form.tsx b/frontend/src/components/Form.tsx index 10d8ff46..ee46e99b 100644 --- a/frontend/src/components/Form.tsx +++ b/frontend/src/components/Form.tsx @@ -117,22 +117,18 @@ const FormError = React.forwardRef { - if (!body) { - return ' '; - } - - return body; - }; + if (!body) { + return null; + } return (

- {getError()} + {body}

); }); diff --git a/frontend/src/components/Input.tsx b/frontend/src/components/Input.tsx index c0202027..a444772b 100644 --- a/frontend/src/components/Input.tsx +++ b/frontend/src/components/Input.tsx @@ -10,9 +10,8 @@ const Input = React.forwardRef(({ className, type, { const { eventId } = useParams(); @@ -91,27 +90,28 @@ const Register: FC = () => { return (
+ {currentStep.id === 'Miscellaneous' &&
Registration
}
- {showStepper && !shouldBeVertical && ( -
- -
+ {currentStep.id !== 'EventDetails' && currentStep.id !== 'Success' && ( + <> +

{currentStep.title}

+ {currentStep.id === 'Miscellaneous' && ( +

A few more things to help us make the event better for you.

+ )} + )} - {currentStep.id !== 'EventDetails' && currentStep.id !== 'Success' &&

{currentStep.title}

} -
{showStepper && shouldBeVertical && (
)} -
{currentStep.id === 'EventDetails' && } {currentStep.id === 'BasicInfo' && } @@ -141,8 +141,6 @@ const Register: FC = () => { {showFAQs && }
- -
); }; diff --git a/frontend/src/pages/client/pycon/register/steps/MiscellaneousStep.tsx b/frontend/src/pages/client/pycon/register/steps/MiscellaneousStep.tsx index f3e3af5a..021a5082 100644 --- a/frontend/src/pages/client/pycon/register/steps/MiscellaneousStep.tsx +++ b/frontend/src/pages/client/pycon/register/steps/MiscellaneousStep.tsx @@ -17,19 +17,22 @@ interface Props { const MiscellaneousStep: FC = () => { return ( - <> -
+
+
+

Community

{({ field }) => ( -
- Are you a member of any local tech community? +
+ field.onChange(Boolean(value))} value={field.value} className="flex flex-wrap gap-4 py-3 mt-auto">
- - + - +
@@ -39,13 +42,14 @@ const MiscellaneousStep: FC = () => { {({ field }) => ( -
- Would you like to volunteer in the future? +
+ field.onChange(Boolean(value))} value={field.value} className="flex flex-wrap gap-4 py-3 mt-auto">
-
@@ -55,15 +59,16 @@ const MiscellaneousStep: FC = () => { )}
- -
+ +
+

Preferences (optional)

{({ field }) => (
- + Dietary Restrictions - +
)} @@ -72,16 +77,16 @@ const MiscellaneousStep: FC = () => { {({ field }) => (
- + Accessibility Needs - +
)}
- +
); }; From c2eb7fdae65d0cd0c47ec26d5c7bd45b0563322a Mon Sep 17 00:00:00 2001 From: maksdeb_g Date: Thu, 3 Sep 2026 14:35:36 +0800 Subject: [PATCH 2/5] feat: responsive tablet view --- .../src/pages/client/pycon/register/steps/MiscellaneousStep.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/client/pycon/register/steps/MiscellaneousStep.tsx b/frontend/src/pages/client/pycon/register/steps/MiscellaneousStep.tsx index 021a5082..75c871c5 100644 --- a/frontend/src/pages/client/pycon/register/steps/MiscellaneousStep.tsx +++ b/frontend/src/pages/client/pycon/register/steps/MiscellaneousStep.tsx @@ -60,7 +60,7 @@ const MiscellaneousStep: FC = () => {
-
+

Preferences (optional)

{({ field }) => ( From 62517b6ba736d7d3a3d81192a1e9d856803fbf85 Mon Sep 17 00:00:00 2001 From: maksdeb_g Date: Thu, 3 Sep 2026 16:50:24 +0800 Subject: [PATCH 3/5] style: used pre-existing styling for tailwind classes --- .../pycon/register/steps/MiscellaneousStep.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/pages/client/pycon/register/steps/MiscellaneousStep.tsx b/frontend/src/pages/client/pycon/register/steps/MiscellaneousStep.tsx index 75c871c5..e3e142cf 100644 --- a/frontend/src/pages/client/pycon/register/steps/MiscellaneousStep.tsx +++ b/frontend/src/pages/client/pycon/register/steps/MiscellaneousStep.tsx @@ -17,12 +17,12 @@ interface Props { const MiscellaneousStep: FC = () => { return ( -
+
-

Community

+

Community

{({ field }) => ( -
+