Commit 5b7dbf3
committed
Reveal first/last characters of a newly created Personal Access Token
The token shown after creating a Personal Access Token was fully masked,
so users had no way to confirm they had copied the right value. The field
now reveals the first and last few characters in cleartext (the middle
stays masked), matching the partial display already used in the tokens
list.
Adds general `secureRevealStart` / `secureRevealEnd` props to ClipboardField
(default 0/0, so all other usages remain fully masked) and enables 4/4 in
the token creation dialog.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ws8U3Nx9CBQKWPPg1u2Yy41 parent bf41c5d commit 5b7dbf3
3 files changed
Lines changed: 48 additions & 1 deletion
File tree
- .server-changes
- apps/webapp/app
- components/primitives
- routes/account.tokens
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
63 | 93 | | |
64 | 94 | | |
65 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
66 | 100 | | |
67 | 101 | | |
68 | 102 | | |
| |||
73 | 107 | | |
74 | 108 | | |
75 | 109 | | |
| 110 | + | |
| 111 | + | |
76 | 112 | | |
77 | 113 | | |
78 | 114 | | |
| |||
87 | 123 | | |
88 | 124 | | |
89 | 125 | | |
| 126 | + | |
| 127 | + | |
90 | 128 | | |
91 | 129 | | |
92 | 130 | | |
| |||
100 | 138 | | |
101 | 139 | | |
102 | 140 | | |
103 | | - | |
| 141 | + | |
104 | 142 | | |
105 | 143 | | |
106 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
375 | 378 | | |
376 | 379 | | |
377 | 380 | | |
| |||
0 commit comments