Skip to content

Conversation

@sandhose
Copy link
Member

@sandhose sandhose commented Dec 2, 2025

Can be reviewed commit by commit

A few before/after screenshots:

FlowBeforeAfter
Element Desktop image image
Element Admin image image
Legacy SSO image image
Device code grant image image

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 2, 2025

Deploying matrix-authentication-service-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: e50a716
Status: ✅  Deploy successful!
Preview URL: https://b75ee32b.matrix-authentication-service-docs.pages.dev
Branch Preview URL: https://quenting-simpler-consent-scr.matrix-authentication-service-docs.pages.dev

View logs

@sandhose sandhose marked this pull request as ready for review December 2, 2025 17:25
@sandhose sandhose requested a review from a team as a code owner December 2, 2025 17:25
@sandhose sandhose force-pushed the quenting/simpler-consent-screen branch from 96a7152 to fbf5fbf Compare December 2, 2025 18:43
Copy link
Contributor

@reivilibre reivilibre left a comment

Choose a reason for hiding this comment

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

mostly good, trusting the screenshots for style decisions :-)

Comment on lines +172 to +179
// Fetch informations about the user. This is purely cosmetic, so we let it
// fail and put a 1s timeout to it in case we fail to query it
// XXX: we're likely to need this in other places
let localpart = &session.user.username;
let display_name = match tokio::time::timeout(
Duration::from_secs(1),
homeserver.query_user(localpart),
)
Copy link
Contributor

Choose a reason for hiding this comment

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

hehehe. It works I guess

Comment on lines 142 to 143
/// Filter which computes a hash between 1 and 6 of an input string, similar to
/// compound-web's useIdColorHash
Copy link
Contributor

Choose a reason for hiding this comment

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

similar, or giving identical results?

Copy link
Member Author

Choose a reason for hiding this comment

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

Identical; fixed in 4eb8543

{{ scopes }}
{% endcall %}
#}
{% macro unsafe_scopes(scopes) -%}
Copy link
Contributor

Choose a reason for hiding this comment

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

given the complexity of the macro, please put a few input/output examples in the comment

...though maybe we should register a Jinja2 filter instead, | filter_prefixes([...]) and have it in Rust code?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in e26a7f3

Please see LICENSE files in the repository root for full details.
-#}

{# Macro to remove 'unsafe' scope from a scope list. Usage:
Copy link
Contributor

Choose a reason for hiding this comment

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

...I think it's actually removing the safe ones but preserving the unsafe?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in e26a7f3

</h1>

<div class="session-card my-4">
<p class="text [&>span]:whitespace-nowrap [&>span]:text-[var(--cpd-color-text-link-external)]">
Copy link
Contributor

Choose a reason for hiding this comment

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

...do I want to ask what [&>span]:whitespace-nowrap is? Or [&>span]:text-[var(--cpd-color-text-link-external)] for that matter?

Copy link
Member Author

@sandhose sandhose Dec 3, 2025

Choose a reason for hiding this comment

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

Don't worry about it 🫶

It's some tailwind magic for direct children of that node which are spans. Plus arbitrary values around brackets

generates

.\[&>span\]:whitespace-nowrap > span {
  whitespace: nowrap;
}

.\[&>span\]:text-\[var(--cpd-color-text-link-external)\] > span {
  color: var(--cpd-color-text-link-external);
}

@sandhose sandhose requested a review from reivilibre December 3, 2025 12:49
@sandhose sandhose merged commit e1de5c5 into main Dec 3, 2025
20 checks passed
@sandhose sandhose deleted the quenting/simpler-consent-screen branch December 3, 2025 13:22
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.

3 participants