Closed jacob-ai-bot[bot] closed 1 week ago
Hello human! 👋
This PR was created by JACoB to address the issue Unable to Edit Text Inputs on Onboarding Settings Page
Please review the PR carefully. Auto-generated code can and will contain subtle bugs and mistakes.
If you identify code that needs to be changed, please reject the PR with a specific reason. Be as detailed as possible in your comments. JACoB will take these comments, make changes to the code and push up changes. Please note that this process will take a few minutes.
Once the code looks good, approve the PR and merge the code.
Summary:
Description
Users are experiencing an issue on the onboarding settings page where they cannot edit the text input fields. Clicking on the text inputs does not place the cursor inside the field, and users are unable to modify any existing text or enter new information. This problem prevents users from updating their settings as needed.
Expected Behavior
When users navigate to the onboarding settings page, they should be able to interact with all text input fields. Clicking on a text input should allow users to place the cursor inside the field and edit the text content freely. @jacob-ai-bot --skip-build
Plan:
Step 1: Edit
/src/app/setup/[login]/[org]/[repo]/setup/Setup.tsx
Task: Update handleChange function to support nested settings updates and checkbox inputs
Instructions: In /src/app/setup/[login]/[org]/[repo]/setup/Setup.tsx, modify the 'handleChange' function to correctly update nested properties in the 'settings' state when input names contain nested paths (e.g., 'directories.components', 'testing.writeTests'). Implement a helper function that parses the 'name' string, splits it by '.', and updates the nested object accordingly. For checkbox inputs, ensure that the value is correctly obtained from e.target.checked instead of e.target.value. Adjust the 'handleChange' function to handle different input types (e.g., 'text', 'checkbox') appropriately without mutating the existing 'settings' object.
Exit Criteria: Users can edit text input fields and toggle checkboxes on the onboarding settings page, including nested fields like 'directories.components' and 'testing.writeTests', and changes are correctly reflected in the 'settings' state.