Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cosign improvements #729

Merged
merged 8 commits into from
Nov 18, 2024
Merged

Cosign improvements #729

merged 8 commits into from
Nov 18, 2024

Conversation

sergei-maertens
Copy link
Member

@sergei-maertens sergei-maertens commented Nov 11, 2024

Closes open-formulieren/open-forms#4320 (partially), required for backend PR open-formulieren/open-forms#4808

Copy link

codecov bot commented Nov 11, 2024

Codecov Report

Attention: Patch coverage is 82.50000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 64.08%. Comparing base (d70b5ae) to head (c0098ef).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
src/components/CoSign/CosignStart.jsx 66.66% 6 Missing ⚠️
src/components/routingActions.jsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #729      +/-   ##
==========================================
- Coverage   64.36%   64.08%   -0.29%     
==========================================
  Files         299      300       +1     
  Lines        6126     6161      +35     
  Branches     1369     1384      +15     
==========================================
+ Hits         3943     3948       +5     
- Misses       2152     2183      +31     
+ Partials       31       30       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@sergei-maertens sergei-maertens force-pushed the feature/4320-cosign-improvements branch 2 times, most recently from a596cec to b1294d0 Compare November 11, 2024 14:31
@sergei-maertens sergei-maertens marked this pull request as ready for review November 15, 2024 16:13
@sergei-maertens sergei-maertens force-pushed the feature/4320-cosign-improvements branch from e927761 to c1a88d9 Compare November 18, 2024 10:40
Copy link
Contributor

@vaszig vaszig left a comment

Choose a reason for hiding this comment

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

  • Should we change CosignStart.js to CosignStart.jsx?
  • One more conflict appeared!

…s if links in emails are not allowed

The link in emails are proper deep-links that bring the user
directly to the required start page.
… login URL

If a code query parameter is present in the route params, use it to
pre-populate the code parameter for the ?next param, which redirects
to the submission look-up page on the backend. This will allow the
backend to shortcut the form by auto-populating it and validating the
authentication state, requiring less user input.

This page also works without the parameter and follows the 'old' flow.
The login screens will be updated accordingly to redirect to this page.
…igning

Added extra paragraph/body clarifying the cosign context.

On the CosignStart page, this is displayed as is, without extra heading
or background color because the regular login options are (by definition)
not displayed on this page.

On the regular form start page, the extra paragraph is included under
the heading. This entire section is only displayed when no links are
included in the cosign email.
…end drive the content of the confirmation page more

Added example with simulated backend data for the cosign confirmation
page.
The <Story of=...> was deprecated earlier, which caused the buttons
not to be properly displayed any longer.
The backend will gain the ability to include the cosign link/button,
which will be rendered as a primary button. To point out the
right call to actions, the 'return to website' link has been
made a secondary button/action.

Stories have been updated to reflect the default templates in the
backend.
@sergei-maertens sergei-maertens force-pushed the feature/4320-cosign-improvements branch from c1a88d9 to c0098ef Compare November 18, 2024 17:13
@sergei-maertens sergei-maertens merged commit 5ca3c4b into main Nov 18, 2024
14 of 15 checks passed
@sergei-maertens sergei-maertens deleted the feature/4320-cosign-improvements branch November 18, 2024 17:24
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.

Various co-sign improvements
2 participants