PictoPy icon indicating copy to clipboard operation
PictoPy copied to clipboard

BUG: PROD: v1.3.0-beta Onboarding Profile Picture Misaligns When Name Validation Error Appears

Open rohan-pandeyy opened this issue 1 month ago • 8 comments

BUG: PROD: v1.3.0-beta Onboarding Profile Picture Misaligns When Name Validation Error Appears

Description

In PictoPy v1.3.0-beta, the first step of the onboarding wizard allows users to enter their name and select a profile picture.

The name field correctly validates that a single word cannot exceed 30 characters. When this limit is exceeded, an error message appears below the name input:

A single word cannot exceed 30 characters.

However, displaying this validation error causes the profile picture circle to become vertically misaligned within the profile setup container.

The validation itself works as expected. The issue is limited to the profile picture's positioning when the error message appears.

Steps to Reproduce

  1. Launch PictoPy v1.3.0-beta for the first time.
  2. Navigate to Step 1 of the onboarding wizard.
  3. Enter a name containing a single word longer than 30 characters.
  4. Observe the validation error displayed below the name input.
  5. Notice the change in the profile picture circle's alignment.

Actual Behavior

  • The validation error is displayed correctly below the name input.
  • The profile picture circle shifts from its original position when the error message appears.
  • This causes the profile picture to become vertically misaligned with the name input and the surrounding layout.

Expected Behavior

  • The profile picture circle should maintain its original alignment regardless of whether the name validation error is displayed.
  • Displaying or removing the validation error should not cause the profile picture to shift vertically.
  • The profile setup container should maintain a consistent layout in both valid and invalid input states.

Environment

  • Application: PictoPy
  • Version: v1.3.0-beta
  • Location: Onboarding wizard, Step 1 (profile setup)
  • Category: Production Bug / UI Layout / Form Validation

Screenshots

Without error ⏬ Image

With error ⏬ Image

rohan-pandeyy avatar Oct 23 '26 07:10 rohan-pandeyy

⚠️ Potential Duplicate Issue (Semantic Match)

This issue appears semantically similar to the following issues in AOSSIE-Org/PictoPy:

  1. BUG: PROD: v1.3.0-beta First-Launch Onboarding Does Not Auto-Select the Default Avatar (#1645, open) https://github.com/AOSSIE-Org/PictoPy/issues/1645 Similarity: 69.2%

  2. test: add automated tests for per-word name validation in onboarding and settings (#1288, closed) https://github.com/AOSSIE-Org/PictoPy/issues/1288 Similarity: 60.7%

  3. BUG: Username is colliding with welcome text for a long username (more than 7 characters) (#311, closed) https://github.com/AOSSIE-Org/PictoPy/issues/311 Similarity: 56.8%

Please review before proceeding.

github-actions[bot] avatar Oct 23 '26 07:10 github-actions[bot]

@rohan-pandeyy can i work on this issue if this isnt been worked on already?

RitikaSen27 avatar Oct 23 '26 07:10 RitikaSen27

Hi @rohan-pandeyy if this isn't assigned yet, I’d like to work on this looks like the error text expanding the box is what pushing the avatar out of place i can fix the alignment so the avatar stay fix when the warning pops up

dhruvbit avatar Oct 23 '26 09:10 dhruvbit

Hi @rohan-pandeyy, I’d like to work on this issue if it’s still unassigned.

The avatar and name input share a flex items-end row, and the validation error is rendered inside the name column. When it appears, the column grows, the row gets taller, and the bottom-aligned avatar is pushed down.

My fix is to position the error absolutely below the row (inside a relative wrapper), so the row height stays constant and the avatar doesn’t move. I’ll attach before/after screenshots in the PR. Thanks!

omprakash20071125-a11y avatar Oct 23 '26 10:10 omprakash20071125-a11y

Assigning to @dhruvbit since @RitikaSen27 is already assigned to an open issue.

rohan-pandeyy avatar Oct 23 '26 11:10 rohan-pandeyy

Thank you for assigning this to me @rohan-pandeyy I'm starting work on the fix now. this is my frist contribution i am every excited !

dhruvbit avatar Oct 23 '26 11:10 dhruvbit

Hi @dhruvbit I have seen your PR and the attached video, and I think some issues still remain. When a long name triggers the error message, the avatar still visibly shifts downward and loses its vertical centering with the input field.

A cleaner way we can fix this is by isolating the error message from the avatar's alignment entirely. If we lock the avatar and the input field together in an items-center flex row, and place the error message in a separate block outside and below that row, they will stay perfectly aligned as a single unit.

omprakash20071125-a11y avatar Oct 23 '26 20:10 omprakash20071125-a11y

Hi @omprakash20071125-a11y,

Thanks for the feedback! The video currently on the PR was from an earlier commit. In the latest commit (4e28fa2), the avatar wrapper alignment has been updated (items-start with mt-5), which prevents the downward shift when the validation error triggers.

I updated the PR description with the latest recording

dhruvbit avatar Oct 24 '26 08:10 dhruvbit