Open
Conversation
Added a mock get request for the v2 themes api. On closer inspection, the v3 form api endpoint expects the `theme` to be a string/uuid value. This detail has been updated in the form type definition, and clearified with a comment.
6 tasks
33acbe1 to
5cc3b84
Compare
As all form steps in the new admin-ui share their literals, we need a single point of truth for these step literals. By adding the internal (frontend-only) value `_stepLiterals`, the form can easily manage one collection of literals. This also ensures that, even if all form steps are removed, we keep the literals stored in a safe place. Before submitting the form details to the backend, we simply replace the step literals with the literals set by `_stepLiterals` and all step literals will be synced.
Added the basic configuration fields for the presentation settings page.
5cc3b84 to
d8e94cd
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #48 +/- ##
==========================================
+ Coverage 78.59% 86.36% +7.76%
==========================================
Files 37 41 +4
Lines 285 330 +45
Branches 51 54 +3
==========================================
+ Hits 224 285 +61
+ Misses 55 37 -18
- Partials 6 8 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The form literals are handled and updated by a separate Formik Form. This LiteralsForm is used in a Modal dialog on the presentation settings page.
d8e94cd to
86a3d01
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Partly closes #12
Adding the presentation settings page.
The buttons preview will require future changes, to display the actual button styling used in the form and the selected theme. This will be picked up with #47.
The "Go to general settings" button will be included in another PR #49.
The 'Knopteksten formulier' modal isn't exactly like the design describes it. It will require quite some changes to make it closer resemble the look and feel of the design. I've discussed it with Lidwien, and we decided to keep it as is for now.
I've made a PR to the Maykin admin-ui so we can adjust the modal padding a bit better, but still a lot of work is required to make the modal similar to the design.