Closed KPHowley closed 2 years ago
@cduong5 -can you post the latest prototype you shared here.
@fyliu Please provide update
I found a package (react select) that can potentially be made to do exactly what we need. My plan is to first hook up the data to it and then tweak the styling. No blockers I can spend maybe 4 hours on it this week ETA 2 weeks since I'm not sure if I can finish this week
I would like to demo the current state of the input field to get further inputs about styling and behavior.
Notes after reading the current Figma design. I didn't know that the design was updated. I need to evaluate the feasibility of these requirements.
@seenaiype Some screenshots hidden below
Question: Should an invalid AIN tag cause navigation to be disabled?
@fyliu - if this is a required field (which it is) we should verify the length is correct on AIN
From the meeting, we (@KPHowley, @Shaeeka, @fyliu) decided that it's better to not allow users to create invalid tags that they would then have to delete and re-enter with the correct number. We want to create only valid tags. The next button logic would stay the same, it'd be enabled if there's any tags are present (with other required inputs satisfied).
Browsers render a highlight around the active input fields. It makes the AIN input halo around the mask rather than the whole AIN box. We want to have it look consistent with the other input boxes.
@Shaeeka please make a new issue to create a work around for the highlighting of the ain cell. We decided that it was going to be solved by the numbers appearing outside of the box, and the box only having enter a new number in it. As soon as you press enter, it should move the numbers to a gray tag above and keep you in the box the box to enter again.
When you finish making the issue, please close this issue and add the number of the new issue here
My fault for tagging the pull request to close the issue. The pull request was all the functionality minus the last bit of UI tweaking for the input focus we talked about at a previous meeting.
It seems like the problem is in the Input Mask component taking that focus. The React Select component displays the input focus behavior the same way the design specified. I tried for a while and it feels like there's no way to make it work like the original design if we want to keep using Input Mask.
The workaround that Bonnie mentioned could be a viable way to do this. We just make Input Mask into the input field and let it take the input focus. We remove the original outline of the React Select component and display the AIN values if they're available. The only thing is collapsing the empty space when there's no AIN value yet.
Anyway, these are my thoughts on how to continue with this.
At the meeting, we decided to do these updates
I did the fixes discusses yesterday but the following is not resolved and will take longer than today's merge deadline.
Question: Is it okay if the Next page button is not disabled when there's an error in the AIN input?
Question 2: Should the AIN length error or the empty input error have priority?
From the meeting tonight.
Fixes:
New problem:
Update: the backspace doesn't delete AIN problem has to do with the React Input Mask component stopping propagation of the backspace event. I don't know if that's a thing that all inputs do, but the React Select component relies on the event to work correctly. Our choices are these:
The above are the options and the drawbacks of each. This is a big issue for keyboard-only usage. It's not a problem if the user can use a mouse pointer.
Please confirm if this issue will be continuing or if a new issue replaces this @fyliu @KPHowley
Overview
Allow multiple AIN's to be entered in the text box for AIN #, by implementing a Tag system.
Action Items
Target Features
Resources/Instructions
See mockup and prototype here: https://www.figma.com/file/nD9QK56Mzq7xNSaSUoeGx0/TDM-Calculator?node-id=4919%3A17250