Skip to content

Better handling for users entering long names#4590

Merged
wes-otf merged 8 commits into
themesfrom
fix/add-max-len-to-name
Jun 23, 2025
Merged

Better handling for users entering long names#4590
wes-otf merged 8 commits into
themesfrom
fix/add-max-len-to-name

Conversation

@wes-otf

@wes-otf wes-otf commented Jun 20, 2025

Copy link
Copy Markdown
Contributor

Fixes #4589. This adds a global max character limit to the full_name field, working both in the application form and the account settings. There's a few other fixes also bundled in this:

  • Better handling for displaying long names in application details, submission all (table & list views), etc
  • In account view, the slack max input field not showing character count
  • Added translation to a few strings

Test Steps

  • Set FORCE_LOGIN_FOR_APPLICATION = False
  • Ensure when submitting an application and not logged in, you cannot submit a name longer than 255 chars
  • Ensure character count updates on typing for both name & slack fields in the account view

… with fixes for names over 255 chars when applying
@wes-otf wes-otf added Type: Bug Bugs! Things that are broken :-/ Type: Patch Mini change, used in release drafter labels Jun 20, 2025
@theskumar

Copy link
Copy Markdown
Member

Can we do this pull request against the themes branch please?

@wes-otf wes-otf changed the base branch from main to themes June 20, 2025 15:35
@wes-otf wes-otf marked this pull request as draft June 20, 2025 15:55
@wes-otf wes-otf requested review from frjo and theskumar and removed request for theskumar June 20, 2025 16:51
@wes-otf wes-otf marked this pull request as ready for review June 20, 2025 16:51
@wes-otf

wes-otf commented Jun 20, 2025

Copy link
Copy Markdown
Contributor Author

@theskumar wasn't thinking when I made the branch originally - should be set now though

Comment thread hypha/apply/funds/blocks.py Outdated
class FullNameBlock(ApplicationMustIncludeFieldBlock):
name = "full_name"
description = "Full name"
widget = forms.TextInput()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this is not needed. I need to remove from the title block as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it wasn't! I also removed it from the title block too so you didn't have to

@theskumar

Copy link
Copy Markdown
Member

Minor comment, otherwise looks good to me. I think you can ahead and merge after that minor change.

@wes-otf wes-otf merged commit 7a5639b into themes Jun 23, 2025
1 check passed
@theskumar theskumar deleted the fix/add-max-len-to-name branch July 20, 2025 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug Bugs! Things that are broken :-/ Type: Patch Mini change, used in release drafter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Users can submit names longer than the field maximum

2 participants