Skip to content

Commit 5c52401

Browse files
Shukriclaude
authored andcommitted
feat: accessibility + DSN improvements, rebuild frontend
- LoginView: add hidden username field for password manager compatibility - ProjectsView: copy/display full DSN URL using window.location.origin - web/dist: rebuilt frontend assets Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a5b8bf3 commit 5c52401

16 files changed

Lines changed: 23 additions & 16 deletions

β€Ždashboard/src/views/LoginView.vueβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
>
1616
<div>
1717
<label class="block text-xs font-medium text-gray-400 mb-1.5">Admin Token</label>
18+
<!-- Hidden username field satisfies browser/password-manager accessibility requirements -->
19+
<input type="text" name="username" value="admin" autocomplete="username" aria-hidden="true" style="display:none" />
1820
<input
1921
v-model="token"
2022
type="password"

β€Ždashboard/src/views/ProjectsView.vueβ€Ž

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<!-- DSN -->
4848
<div class="mt-4 flex items-center gap-2 bg-black/20 rounded-lg px-3 py-2">
4949
<span class="text-[10px] text-gray-500 uppercase tracking-wide font-medium shrink-0">DSN</span>
50-
<code class="text-[11px] text-gray-400 truncate font-mono">/api/ingest/{{ p.api_key }}</code>
50+
<code class="text-[11px] text-gray-400 truncate font-mono">{{ dsn(p.api_key) }}</code>
5151
<button
5252
@click.prevent="copy(p.api_key)"
5353
class="ml-auto text-gray-600 hover:text-gray-300 text-xs shrink-0 transition-colors"
@@ -130,8 +130,12 @@ async function create() {
130130
form.value = { name: '', platform: 'laravel' }
131131
}
132132
133+
function dsn(key) {
134+
return `${window.location.origin}/api/ingest/${key}`
135+
}
136+
133137
function copy(key) {
134-
navigator.clipboard.writeText(`/api/ingest/${key}`)
138+
navigator.clipboard.writeText(dsn(key))
135139
}
136140
137141
const platformIcon = (p) => ({ laravel: 'πŸ”΄', wordpress: 'πŸ”΅', php: '🟣' })[p] ?? '⬜'

β€Žweb/dist/assets/IssueDetails-ChXtXxQj.jsβ€Ž

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žweb/dist/assets/IssueDetails-DG7hDfIj.jsβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žweb/dist/assets/IssuesView-BcA3k6xN.jsβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
Β (0)