Skip to content

Conversation

@anonymoususer72041
Copy link
Contributor

@anonymoususer72041 anonymoususer72041 commented Dec 5, 2025

Summary

  • Replace textarea-based address fields with single-line <input> fields for candidates, contacts and companies in the main UI.
  • Adjust the rendering of the <input-address> placeholder in CareersUI.php so that it expands to a single-line <input> instead of a textarea-like field. The careers portal templates stored in the database are not modified by this PR.

Motivation

  • Address fields in the main UI and the careers portal are typically used as single-line inputs in practice, and treating them as textareas was inconsistent with other fields such as city, state or postal code.
  • In the careers portal, the previous textarea-style address field could mislead applicants into thinking they should enter their entire postal address block (street, zip/postal code, city, country) into a single field because of its large, multiline appearance. A single-line input makes it clearer that only the street address line is expected, consistent with the surrounding fields.
  • While working on this change I noticed some remaining legacy patterns around address1 / address2 / address3 and newline-based addresses (e.g. in old schema upgrade steps and in the contacts vCard export). These are not addressed in this PR.

@anonymoususer72041 anonymoususer72041 force-pushed the refactor/ui-single-line-address branch from 3dd96ef to e187c3d Compare December 5, 2025 12:17
anonymoususer72041 added a commit to anonymoususer72041/OpenCATS that referenced this pull request Dec 11, 2025
commit 1176778
Author: anonymoususer72041 <247563575+anonymoususer72041@users.noreply.github.com>
Date:   Fri Dec 5 14:54:37 2025 +0100

    Drop legacy address2 from candidates add form

commit e187c3d
Author: anonymoususer72041 <247563575+anonymoususer72041@users.noreply.github.com>
Date:   Fri Dec 5 10:52:02 2025 +0100

    Use single-line address input in careers portal apply form

commit 44320d6
Author: anonymoususer72041 <247563575+anonymoususer72041@users.noreply.github.com>
Date:   Fri Dec 5 09:04:02 2025 +0100

    Use single-line address inputs for candidates, contacts and companies
@anonymoususer72041
Copy link
Contributor Author

It looks like the fix for #356 (merged into develop via #526) never made it into master, so this Pull Request includes the missing id="address" behavior again.

@RussH RussH self-assigned this Jan 26, 2026
Copy link
Member

@RussH RussH left a comment

Choose a reason for hiding this comment

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

While this cleans up the UI, shrinking the address to a single line breaks formatting for international users (specifically in the UK). Addresses often require multiple lines for Suite/Floor/Business Center details before the street address. I recommend keeping the multi-line support or using a textarea.

@anonymoususer72041
Copy link
Contributor Author

Thanks for calling this out – agreed that UK/international addresses often need additional lines.

At the same time, there are also regions where a single address line is the norm, so I’d like to avoid presenting a large textarea by default (especially for candidates), since that can imply "write a full postal block here".

Instead of only keeping multi-line addresses as free-form text, I can re-introduce proper "Address Line 2" support end-to-end. On the recruiter-facing side, I’d make Address Line 2 optional. For the careers portal, I’d keep it optional as well, so you can use it in your template if need.

Would you be happy with that approach?

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