Skip to content

polish(auth): design-system text styles + insecure-connection warning#337

Merged
91jaeminjo merged 2 commits into
mainfrom
polish/auth
Jun 10, 2026
Merged

polish(auth): design-system text styles + insecure-connection warning#337
91jaeminjo merged 2 commits into
mainfrom
polish/auth

Conversation

@WilliamKarolDiCioccio

@WilliamKarolDiCioccio WilliamKarolDiCioccio commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Auth-module design-system polish (clear-cut + design-reviewed items). Layout/spacing and new features are out of scope — to follow later.

The module was already adopted in the integration phase: the design-system scanner reports zero hard-rule hits. This PR covers the remaining compliance gaps:

home_screen.dart

  • Error-banner text built its style from a bare TextStyle(color:) → now textTheme.bodyMedium?.copyWith(color:), matching its ConnectNotice sibling.
  • BoxConstraints(maxWidth: 400) magic number → named _maxContentWidth const (alongside _logoSize).
  • Insecure connection is a warning, not an error — it doesn't block connecting (there's a "Connect anyway"). Icon recolored colorScheme.errorcolorScheme.warning (SymbolicColors).
  • Insecure-warning body and consent-notice body get explicit textTheme.bodyMedium.

auth_callback_screen.dart

  • Error message gets explicit textTheme.bodyMedium.

Every free-standing Text now carries an explicit Soliplex textTheme style chosen to match its role; ListTile/AppBar titles already render through the brand textTheme via their component themes and are left as-is.

No behavioral or layout change. flutter analyze clean; 276 auth tests pass.

WilliamKarolDiCioccio and others added 2 commits June 9, 2026 18:31
…max-width

Two design-system tidies on the home screen:
- The URL error banner built its text style from a bare TextStyle(color:);
  base it on textTheme.bodyMedium like its ConnectNotice sibling so the
  banner inherits the themed type instead of the ambient default.
- Extract the magic BoxConstraints(maxWidth: 400) into a named
  _maxContentWidth const, matching the existing _logoSize.

No behavioral change. First (clear-cut) PR of the auth polish sweep;
subjective layout/colour items to follow.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Per design review:
- The insecure-connection screen is a warning, not an error — it doesn't
  prevent connecting (there's a "Connect anyway"). Recolor the warning icon
  from colorScheme.error to colorScheme.warning (SymbolicColors).
- Give every free-standing Text an explicit textTheme style, chosen to match
  its role and current appearance: the insecure-warning body, the consent
  notice body, and the auth-callback error message all become bodyMedium.
  (ListTile/AppBar titles already render through the brand textTheme via their
  component themes, so they're left as-is.)

No layout changes. flutter analyze clean; 276 auth tests pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@WilliamKarolDiCioccio WilliamKarolDiCioccio changed the title polish(auth): design-system tidies on the home screen polish(auth): design-system text styles + insecure-connection warning Jun 9, 2026
@91jaeminjo 91jaeminjo merged commit c3c4342 into main Jun 10, 2026
6 checks passed
@91jaeminjo 91jaeminjo deleted the polish/auth branch June 10, 2026 03:28
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