[PR #104] [MERGED] feat(contact): add username input for better user identification #93

Closed
opened 2026-05-07 00:17:53 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/appen-isen/studysen/pull/104
Author: @BreizhHardware
Created: 11/3/2025
Status: Merged
Merged: 11/4/2025
Merged by: @dd060606

Base: devHead: hotfix/username-contact-form


📝 Commits (2)

  • fb4e1e4 feat(contact): add username input for better user identification
  • 942a7ee fix(contact): update username input style

📊 Changes

1 file changed (+30 additions, -1 deletions)

View changed files

📝 app/(settings)/contact.tsx (+30 -1)

📄 Description

This pull request improves the user experience in the contact form by handling cases where the user's name is not available in the settings. The main changes focus on ensuring a username is always provided, prompting the user for their name if it is missing, and updating the state management accordingly.

User experience improvements:

  • Added a check to set the username to "Anonyme" if it is missing from both settings and local state, or to use the value from settings if available.
  • When settings.username is empty, the UI now displays an explanatory message and an input field for the user to enter their name, making it easier to contact them if needed.

State management updates:

  • Introduced a new username state variable to manage the user's name within the component.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/appen-isen/studysen/pull/104 **Author:** [@BreizhHardware](https://github.com/BreizhHardware) **Created:** 11/3/2025 **Status:** ✅ Merged **Merged:** 11/4/2025 **Merged by:** [@dd060606](https://github.com/dd060606) **Base:** `dev` ← **Head:** `hotfix/username-contact-form` --- ### 📝 Commits (2) - [`fb4e1e4`](https://github.com/appen-isen/studysen/commit/fb4e1e44600f75b5d9763a4f4913f674a284f08a) feat(contact): add username input for better user identification - [`942a7ee`](https://github.com/appen-isen/studysen/commit/942a7ee57e5afb07140cd5b682a7b9a560d91f97) fix(contact): update username input style ### 📊 Changes **1 file changed** (+30 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `app/(settings)/contact.tsx` (+30 -1) </details> ### 📄 Description This pull request improves the user experience in the contact form by handling cases where the user's name is not available in the settings. The main changes focus on ensuring a username is always provided, prompting the user for their name if it is missing, and updating the state management accordingly. **User experience improvements:** * Added a check to set the username to "Anonyme" if it is missing from both `settings` and local state, or to use the value from `settings` if available. * When `settings.username` is empty, the UI now displays an explanatory message and an input field for the user to enter their name, making it easier to contact them if needed. **State management updates:** * Introduced a new `username` state variable to manage the user's name within the component. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 00:17:53 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/studysen#93
No description provided.