Skip to content

web/user: ensure modal container on user-settings page is min-height: 100% (cherry-pick #13402)#13413

Merged
BeryJu merged 1 commit intoversion-2025.2from
cherry-pick-f0065d-version-2025.2
Mar 6, 2025
Merged

web/user: ensure modal container on user-settings page is min-height: 100% (cherry-pick #13402)#13413
BeryJu merged 1 commit intoversion-2025.2from
cherry-pick-f0065d-version-2025.2

Conversation

@gcp-cherry-pick-bot
Copy link
Copy Markdown
Contributor

Cherry-picked web/user: ensure modal container on user-settings page is min-height: 100% (#13402)

  • web: Add InvalidationFlow to Radius Provider dialogues

What

  • Bugfix: adds the InvalidationFlow to the Radius Provider dialogues
    • Repairs: {"invalidation_flow":["This field is required."]} message, which was not propagated
      to the Notification.
  • Nitpick: Pretties ?foo=${true} expressions: s/\?([^=]+)=\$\{true\}/\1/

Note

Yes, I know I'm going to have to do more magic when we harmonize the forms, and no, I didn't add the
Property Mappings to the wizard, and yes, I know I'm going to have pain with the new version of
the wizard. But this is a serious bug; you can't make Radius servers with either of the current
dialogues at the moment.

  • This (temporary) change is needed to prevent the unit tests from failing.

# What

# Why

# How

# Designs

# Test Steps

# Other Notes

  • Revert "This (temporary) change is needed to prevent the unit tests from failing."

This reverts commit dddde09.

  • web/admin: ensure modal container on user-settings page is min-height: 100%

What

Add a min-height and auto-scroll directives to the CSS for the main section of the user-settings
page.

+                .pf-c-page__main {
+                    min-height: 100vw;
+                    overflow-y: auto;

Why

Without this, Safari refused to render any pop-up modals that were "centered" on the viewport but
were "beneath" the rendered content space of the container. As a result, users could not create new
access tokens or app passwords. This is arguably incorrect behavior on Safari's part, but 🤷‍♀️.
Adding overflow-y: auto on the container means that if the page is not long enough to host the
pop-up, it will be accessible via scrolling.

Testing

  • Using Safari, Visit the User->User Settings, click "Tokens and App Passwords" tab, and click
    "Create Token" or "Create App Password"
  • Observe that the dialog is now accessible.

Related Issue:

  • Fix a really stupid typo.

… 100% (#13402)

* web: Add InvalidationFlow to Radius Provider dialogues

## What

- Bugfix: adds the InvalidationFlow to the Radius Provider dialogues
  - Repairs: `{"invalidation_flow":["This field is required."]}` message, which was *not* propagated
    to the Notification.
- Nitpick: Pretties `?foo=${true}` expressions: `s/\?([^=]+)=\$\{true\}/\1/`

## Note

Yes, I know I'm going to have to do more magic when we harmonize the forms, and no, I didn't add the
Property Mappings to the wizard, and yes, I know I'm going to have pain with the *new* version of
the wizard. But this is a serious bug; you can't make Radius servers with *either* of the current
dialogues at the moment.

* This (temporary) change is needed to prevent the unit tests from failing.

\# What

\# Why

\# How

\# Designs

\# Test Steps

\# Other Notes

* Revert "This (temporary) change is needed to prevent the unit tests from failing."

This reverts commit dddde09.

* web/admin: ensure modal container on user-settings page is min-height: 100%

## What

Add a min-height and auto-scroll directives to the CSS for the main section of the user-settings
page.

```
+                .pf-c-page__main {
+                    min-height: 100vw;
+                    overflow-y: auto;
```

## Why

Without this, Safari refused to render any pop-up modals that were "centered" on the viewport but
were "beneath" the rendered content space of the container. As a result, users could not create new
access tokens or app passwords. This is arguably incorrect behavior on Safari's part, but 🤷‍♀️.
Adding `overflow-y: auto` on the container means that if the page is not long enough to host the
pop-up, it will be accessible via scrolling.

## Testing

- Using Safari, Visit the User->User Settings, click "Tokens and App Passwords" tab, and click
  "Create Token" or "Create App Password"
- Observe that the dialog is now accessible.

## Related Issue:

- [Unable to create API token in Safari
  #12891](#12891)

* Fix a really stupid typo.
@gcp-cherry-pick-bot gcp-cherry-pick-bot bot requested a review from a team as a code owner March 6, 2025 12:10
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 6, 2025

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 1333070
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/67c990be05fd260008c03a4b
😎 Deploy Preview https://deploy-preview-13413--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@BeryJu BeryJu merged commit 22af17b into version-2025.2 Mar 6, 2025
59 of 66 checks passed
@BeryJu BeryJu deleted the cherry-pick-f0065d-version-2025.2 branch March 6, 2025 12:15
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.73%. Comparing base (679bf17) to head (1333070).
Report is 2 commits behind head on version-2025.2.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@                Coverage Diff                 @@
##           version-2025.2   #13413      +/-   ##
==================================================
- Coverage           92.74%   92.73%   -0.01%     
==================================================
  Files                 793      793              
  Lines               40268    40268              
==================================================
- Hits                37345    37341       -4     
- Misses               2923     2927       +4     
Flag Coverage Δ
e2e 48.06% <ø> (-0.06%) ⬇️
integration 24.10% <ø> (ø)
unit 90.45% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 6, 2025

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-13330707760e8e250a65e0d6dfb91540ededdb0f
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-13330707760e8e250a65e0d6dfb91540ededdb0f

Afterwards, run the upgrade commands from the latest release notes.

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