SFDigitalServices / formio-sfds

The form.io theme for sf.gov
https://formio-sfds.herokuapp.com/
MIT License
15 stars 2 forks source link

Language fixes + debugging improvements #169

Closed shawnbot closed 3 years ago

shawnbot commented 3 years ago

A couple of bug fixes and preview/debugging enhancements in this PR:

  1. Fixes #153 by explicitly disabling conditionals in all components (not just "layout") in the translate view
  2. Applies the same fix to enable embedded translation support of all components, including content
  3. Fixes a typo in the rewritten URL that was preventing us from testing different versions of formiojs
  4. Adds JS in the preview proxy to hijack translation links to set the form language
  5. Adds a FormioSFDS.forms getter to access only the upgraded forms as an array, which is useful for debugging form instances on sf.gov in the console
vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/sfds/formio-sfds/gmgdyfeno
✅ Preview: https://formio-sfds-git-language-updates.sfds.vercel.app

github-actions[bot] commented 3 years ago

Size Change: +114 B (0%)

Total Size: 88.9 kB

Filename Size Change
dist/formio-sfds.standalone.js 69.1 kB +114 B (0%)
ℹ️ View Unchanged | Filename | Size | Change | | :--- | :---: | :---: | | `dist/common.css` | 332 B | 0 B | | `dist/formio-sfds.css` | 14 kB | 0 B | | `dist/portal.js` | 5.36 kB | 0 B |

compressed-size-action