Conversation
…and fieldset test. Translations of nosp text.
app/javascript/packages/document-capture/components/optional-questions.scss
Outdated
Show resolved
Hide resolved
changelog: User-Facing Improvements, IdV document capture, Add optional questions when users decide not to continue
86cbe40 to
c1cd972
Compare
| @@ -0,0 +1,49 @@ | |||
| import { render } from '@testing-library/react'; | |||
There was a problem hiding this comment.
Tests look really thorough here. 👍🏻
spec/javascript/packages/document-capture/components/document-capture-abandon-spec.jsx.tsx
Show resolved
Hide resolved
spec/javascript/packages/document-capture/components/document-capture-abandon-spec.jsx.tsx
Outdated
Show resolved
Hide resolved
|
Since kellular is out, I requested a review from @daviddsilvanava to cover design considerations. |
| @@ -0,0 +1,21 @@ | |||
| import { FieldsetHTMLAttributes, ReactNode } from 'react'; | |||
|
|
|||
| export interface FieldSetProps extends FieldsetHTMLAttributes<HTMLFieldSetElement> { | |||
There was a problem hiding this comment.
Really nice work with these reusable components 👍
Interesting on the difference in capitalization between "Fieldset" and "FieldSet", even between React and TypeScript's built-in DOM typings. I'm not sure which is "correct", though I think I'd agree with you that its spelled-out "field set" as two words would make sense capitalized as you've proposed.
app/javascript/packages/document-capture/components/document-capture-abandon.tsx
Outdated
Show resolved
Hide resolved
daviddsilvanava
left a comment
There was a problem hiding this comment.
A couple items to flag:
-
There seems to be more line padding/spacing around the optional tag and survey question in the screenshot compared to Figma. Is there a way to tighten that up?
-
In the spanish translation, Tarjeta verde --> Tarjeta Verde
-
tarjeta de residente permanente --> Tarjeta de Residente Permanente
-
Carte verte américaine --> Carte Verte américaine
-
carte de résident permanent --> Carte de Résident Permanent
@daviddsilvanava , should we update translation doc here https://docs.google.com/document/d/1-1_DNOWj2z6V7vSN18SyhW3zrAkWgdVjPm-lueWJKIA/edit |
Yes, all set! |
@daviddsilvanava Updated screenshots. |
@dawei-nava on the third option in english (military ID), we also need a ")" to close the parentheses. |
@daviddsilvanava , updated, another question should we use "Military ID card" or "Military ID Card"? |
|
lower case is fine for Military ID card
…On Fri, Oct 20, 2023 at 2:52 PM dawei-nava ***@***.***> wrote:
A couple items to flag:
1. There seems to be more line padding/spacing around the optional tag
and survey question in the screenshot compared to Figma. Is there a way to
tighten that up?
2. In the spanish translation, Tarjeta verde --> Tarjeta Verde
3. tarjeta de residente permanente --> Tarjeta de Residente Permanente
4. Carte verte américaine --> Carte Verte américaine
5. carte de résident permanent --> Carte de Résident Permanent
@daviddsilvanava <https://github.com/daviddsilvanava> , should we update
translation doc here
https://docs.google.com/document/d/1-1_DNOWj2z6V7vSN18SyhW3zrAkWgdVjPm-lueWJKIA/edit
Yes, all set!
@daviddsilvanava <https://github.com/daviddsilvanava> Updated screenshots.
@dawei-nava <https://github.com/dawei-nava> on the third option in
english (military ID), we also need a ")" to close the parentheses.
@daviddsilvanava <https://github.com/daviddsilvanava> , updated, another
question should we use "Military ID card" or "Military ID Card"?
—
Reply to this email directly, view it on GitHub
<#9392 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVQYLCEDTGWKLQUCSS2DOM3YALJARAVCNFSM6AAAAAA6CVNNM2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZTGMYTKMZYGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@dawei-nava not sure why this came in as a separate comment, but see above |
kellular
left a comment
There was a problem hiding this comment.
Reviewed the updated screenshots -- this looks great, Dawei!
eileen-nava
left a comment
There was a problem hiding this comment.
I tested locally with and without a SP. Looks good. Approved.
| come_back_later: Lettre avec un crochet | ||
| legal_statement: | ||
| information_collection: >- | ||
| Esta recopilación de información cumple con los requisitos del título 44 |
There was a problem hiding this comment.
@dawei-nava I've been doing an audit of French/Spanish mismatches and stumbled upon this. It appears we have French and Spanish mixed up in these texts. (This text is Spanish)
There was a problem hiding this comment.
Actually, strangely it looks like the paragraph changes to French about halfway through ("Nous estimons ..."). The same happens in the Spanish implementation (changes from French to Spanish at the burden estimation portion ("Calculamos que tomará ...")
There was a problem hiding this comment.
@aduth , thanks, not sure what happened, it was supposed to be copied from translations.
🎫 Ticket
LG-11139: Add optional question about other ID types
🛠 Summary of changes
Add optional survey questions to document image capturing page.
Record user submission as analytics events.
Redirect user to SP specific or general account page when user chooses Exit or "Submit and exit".
📜 Testing Plan
Provide a checklist of steps to confirm the changes.
With Service Provider:
Without Service Provider:
Sample event:
{ "name":"Frontend: IdV: exit optional questions", "properties":{ "event_properties":{ "ids":[ { "name":"us_passport", "checked":false }, { "name":"resident_card", "checked":false }, { "name":"military_id", "checked":false }, { "name":"tribal_id", "checked":false }, { "name":"voter_registration_card", "checked":false }, { "name":"other", "checked":false } ], "flow_path":"standard", "acuant_sdk_upgrade_a_b_testing_enabled":"false", "use_alternate_sdk":"false", "acuant_version":"11.9.1" }, "new_event":true, "path":"/api/logger", "session_duration":19.410147, "user_id":"3321d388-1fc4-47bc-b7a0-5d59ef52d735", "locale":"en", "user_ip":"127.0.0.1", "hostname":"localhost", "pid":33993, "service_provider":null, "trace_id":null, "git_sha":"b2a23958", "git_branch":"feature/LG-11139-question-upon-exit", "user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36", "browser_name":"Chrome", "browser_version":"117.0.0.0", "browser_platform_name":"macOS", "browser_platform_version":"10.15.7", "browser_device_name":"Unknown", "browser_mobile":false, "browser_bot":false }, "time":"2023-10-16T18:54:03.411Z", "id":"b3f499f4-fed1-41e6-b7ef-6e250c744a36", "visitor_id":"fc02aabb-3cb8-4923-af91-b26ac1487b47", "visit_id":"ce63dcbb-f9d8-4461-9823-8b2bd11d7942", "log_filename":"events.log" }👀 Screenshots
If relevant, include a screenshot or screen capture of the changes.
Without Service Provider:
English:

Spanish:

French:
With Service Provider:
English:

Spanish:

French:
