Skip to content

Add eye toggle to reveal the Wi-Fi passphrase - #11720

Open
cristim wants to merge 4 commits into
omacom:quattrofrom
cristim:wifi-passphrase-reveal
Open

cristim wants to merge 4 commits into
omacom:quattrofrom
cristim:wifi-passphrase-reveal

Conversation

@cristim

@cristim cristim commented Sep 13, 2026 •

Copy link
Copy Markdown

Summary

Typing a Wi-Fi passphrase blind makes typos easy, and the only feedback is "Wrong password" after a connect attempt. This adds an eye button next to the passphrase field in the network panel to show or hide what was typed.

  • Eye button sits between the passphrase field and the Connect check, aligned with the field; the icon and tooltip switch between "Show passphrase" and "Hide passphrase".
  • Clicking it keeps focus in the passphrase field, so typing, Enter, and Esc keep working.
  • The reveal resets whenever the prompt moves to another network or closes, so a revealed passphrase never carries over.
  • The enterprise identity field lines up with the passphrase field.

Screenshots

The network name is blurred.

Before

Before: passphrase prompt with no reveal toggle

After (masked)

After: eye button next to the masked passphrase

After (revealed)

After: passphrase shown in plain text with the eye-off button

Testing

  • test/shell.d/network-test.sh passes, with new assertions: the passphrase is masked by default, the eye button toggles it, and it re-masks when the prompt changes.
  • Tested by hand in the running shell (applied to a cloned omarchy.network plugin): the toggle reveals and hides the passphrase and connecting still works.
  • ./test/shell has 5 failing files (config, locate, snapper, unowned-system-paths, version), but they fail the same way on unmodified quattro.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WYGLVsV5aH1ifehqLufoKo

@cristim

cristim commented Sep 14, 2026

Copy link
Copy Markdown
Author

Pushed d7c44f2 after a review pass:

  • Input method hints kept while revealed. Qt adds ImhSensitiveData | ImhNoPredictiveText | ImhNoAutoUppercase only while a TextInput masks its text (QQuickTextInputPrivate::effectiveInputMethodHints). So revealing the passphrase also let fcitx5, which is in the base packages, predict and learn it. pwField now sets those hints itself. An offscreen probe shows the effective hints go from 0 to 70 when revealed, with masked mode unchanged. network-test.sh asserts it.

Noted but not changed: once revealed, Qt allows Ctrl+C / Super+C, and a copied passphrase lands in the clipboard history. It takes a deliberate copy, which browsers and GTK's peek icon allow too.

test/shell.d/network-test.sh and ./test/cli pass. The layout is unchanged, so the screenshots still apply. The new commit wasn't run in a live shell.

cristim and others added 4 commits October 19, 2026 15:02
Typing a long passphrase blind makes typos easy and the only feedback
is "Wrong password" after a connect attempt. The toggle re-masks
whenever the prompt moves to another network or closes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WYGLVsV5aH1ifehqLufoKo
Qt adds ImhSensitiveData, ImhNoPredictiveText and ImhNoAutoUppercase to a
TextInput only while its echo mode masks the text, so the eye toggle also
told fcitx5 it could predict and remember the passphrase. Ask for them
explicitly so they hold in both states.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SNhNwBijbgSaQ3KLmKbGbo
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… the test

The network test only matched the first two input method hints and did not look at the tooltips, so dropping ImhNoAutoUppercase or replacing the translated tooltip with a literal English string left it green. Match all three hints and the catalog lookups so either regression fails.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@cristim
cristim force-pushed the wifi-passphrase-reveal branch from d7c44f2 to d449114 Compare October 19, 2026 13:02
@cristim

cristim commented Oct 19, 2026

Copy link
Copy Markdown
Author

Rebased onto current quattro. I also translated the two reveal tooltips, and the network test now pins the no-auto-uppercase hint and the translated tooltips so they can't regress quietly. network-test.sh and git diff --check pass.

@greptile-apps

greptile-apps Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

Adds an eye button to show or hide the Wi-Fi passphrase.

  • Wi-Fi passphrases can be checked before connecting.

No actionable issues found. Patch whitespace checks passed. Runtime tests and visual capture were not run; Quickshell is unavailable in this environment.

Reviews (1) · Last reviewed commit: "Pin the Wi-Fi reveal's auto-uppercase hi..." · Reviewed by Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants