Skip to content

LG-3191: one mobile page to submit them all#3994

Merged
solipet merged 9 commits intomasterfrom
dprice-lg-3191-one-mobile-page-to-submit-them-all
Jul 31, 2020
Merged

LG-3191: one mobile page to submit them all#3994
solipet merged 9 commits intomasterfrom
dprice-lg-3191-one-mobile-page-to-submit-them-all

Conversation

@solipet
Copy link
Copy Markdown
Contributor

@solipet solipet commented Jul 30, 2020

We've redesigned the doc_auth backstop to a much simpler form, and now it is the same for the desktop and mobile flows.

I've added an undocumented flag, document_capture_react_enabled, that if set to 'false' will skip over the React code import thus disabling the react version of the form. This was done to make it easy for development and test, but should never be set in a deployed environment (except perhaps personal).

Here's a screenshot of the final result. I tried to get the margins to match the design, but it seems the design system classes don't have quite the granularity required, e.g., mt2 is a 1 rem margin-top, while mt3 is 2 rem. If we want 1.5 rem, we would have to include custom css.

The error message at the top is only included upon a failure to proof, while the "For best results" sections are always present.

Screen Shot 2020-07-29 at 8 56 06 PM

aduth added a commit that referenced this pull request Jul 30, 2020
**Why**: To simplify future reconciliation
@solipet solipet force-pushed the dprice-lg-3191-one-mobile-page-to-submit-them-all branch from 7645b40 to f17bbf3 Compare July 30, 2020 17:28
Copy link
Copy Markdown
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

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

I'll defer to others on design and/or more of the Rails-specific implementation. From my testing, it appears to work quite well, and doesn't conflict with the React implementation on both desktop and mobile. There's graceful fallback in JavaScript-disabled environment as well. I left a few minor comments. I note that there's quite a bit of duplication of the mobile code, though as you mention, if it's something that is likely to be temporary, I don't see it as being of much concern.

aduth added a commit that referenced this pull request Jul 31, 2020
* Add DeviceContext context

**Why**: Since the design incorporates elements which vary depending on support for rear-facing ("environment") and front-facing ("user") video capture support, we need a means to be able to make this value available to all components of the application

* Add documents introduction component

**Why**: While the introductory text is the same for desktop and mobile, on mobile devices it (1) occurs as its own standalone step and (2) includes one fewer instructions items (file size recommendation)

* Abstract PageHeading component

**Why**: To consolidate styling for page headings, in anticipation of future refactoring away from using Basscss

* Render introductory instructions common to all devices

* Align locale string naming to #3994

**Why**: To simplify future reconciliation

* Simplify DeviceContext to simple object of isMobile

**Why**: While we may need more granular detail of device-specific constraints, it's unclear as of yet how that will be implemented.
@aduth
Copy link
Copy Markdown
Contributor

aduth commented Jul 31, 2020

Reported conflicts are from #3990. In that branch, I tried to align directly with the string keys / names you proposed here, so it's fair to err on your side:

git rebase -X theirs origin/master

@solipet solipet force-pushed the dprice-lg-3191-one-mobile-page-to-submit-them-all branch from f17bbf3 to 10b4b73 Compare July 31, 2020 20:35
@solipet solipet force-pushed the dprice-lg-3191-one-mobile-page-to-submit-them-all branch from 10b4b73 to aaebfe4 Compare July 31, 2020 20:47
@solipet solipet merged commit 877a5ff into master Jul 31, 2020
@solipet solipet deleted the dprice-lg-3191-one-mobile-page-to-submit-them-all branch July 31, 2020 21:12
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