1
Fork 0
mirror of https://github.com/thegeneralist01/archivr synced 2026-07-22 19:25:48 +02:00

ui: comprehensive UI polish pass

- LoginPage/SetupPage: centered card layout with display font, styled fields and submit button
- Topbar: fix duplicate Settings nav item; add styled user-menu with username + logout button
- RunsView: format ISO timestamps to readable dates, add colored status badges (completed/failed/running)
- AdminView: view-tabs system, styled admin-table, admin-input, status-badge (active/disabled), btn-primary
- SettingsView: replace all inline styles with form-section/form-field/field-input/btn-primary/btn-danger
- CollectionsView: restructure create form with proper field labels and btn-primary
- TagsView: add Tags section heading with separator
- ContextRail: show visibility as human-readable label not raw number; fix assign-error class
- styles.css: add auth-loading, view-tabs, form utilities, btn variants, status badges,
  run-status pills, token-banner/row, checkbox-row, coll-create-form, tag-tree-header CSS
This commit is contained in:
TheGeneralist 2026-06-28 22:14:08 +02:00
parent 3ccfcce87b
commit 4311e85f95
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
21 changed files with 737 additions and 440 deletions

View file

@ -32,42 +32,53 @@ export default function SetupPage({ onComplete }) {
return (
<div className="setup-page">
<h1>Welcome to Archivr</h1>
<p>Create your owner account to get started.</p>
<form onSubmit={handleSubmit}>
<label>
Username
<input
type="text"
value={username}
onChange={e => setUsername(e.target.value)}
autoFocus
required
/>
</label>
<label>
Password
<input
type="password"
value={password}
onChange={e => setPassword(e.target.value)}
required
/>
</label>
<label>
Confirm password
<input
type="password"
value={confirm}
onChange={e => setConfirm(e.target.value)}
required
/>
</label>
{error && <p className="error">{error}</p>}
<button type="submit" disabled={loading}>
{loading ? 'Creating account\u2026' : 'Create account'}
</button>
</form>
<div className="setup-card">
<h1 className="setup-brand">Archivr</h1>
<p className="setup-tagline">Create your owner account to get started.</p>
<form onSubmit={handleSubmit}>
<div className="setup-field">
<label className="setup-label" htmlFor="setup-username">Username</label>
<input
className="setup-input"
id="setup-username"
type="text"
value={username}
onChange={e => setUsername(e.target.value)}
autoFocus
required
autoComplete="username"
/>
</div>
<div className="setup-field">
<label className="setup-label" htmlFor="setup-password">Password</label>
<input
className="setup-input"
id="setup-password"
type="password"
value={password}
onChange={e => setPassword(e.target.value)}
required
autoComplete="new-password"
/>
</div>
<div className="setup-field">
<label className="setup-label" htmlFor="setup-confirm">Confirm password</label>
<input
className="setup-input"
id="setup-confirm"
type="password"
value={confirm}
onChange={e => setConfirm(e.target.value)}
required
autoComplete="new-password"
/>
</div>
{error && <p className="setup-error">{error}</p>}
<button className="setup-submit" type="submit" disabled={loading}>
{loading ? 'Creating account\u2026' : 'Create account'}
</button>
</form>
</div>
</div>
);
}