Renamed Kiosks. Clarified Volunteer flow status.
This commit is contained in:
parent
fa7ea35fd5
commit
6c21efcb16
7 changed files with 13 additions and 12 deletions
|
|
@ -9,10 +9,10 @@
|
||||||
import Departments from './pages/Departments.svelte'
|
import Departments from './pages/Departments.svelte'
|
||||||
import Users from './pages/Users.svelte'
|
import Users from './pages/Users.svelte'
|
||||||
import Import from './pages/Import.svelte'
|
import Import from './pages/Import.svelte'
|
||||||
import Kiosk from './pages/Kiosk.svelte'
|
import VolunteerKiosk from './pages/VolunteerKiosk.svelte'
|
||||||
import VolunteerSignup from './pages/VolunteerSignup.svelte'
|
import VolunteerSignup from './pages/VolunteerSignup.svelte'
|
||||||
import ConfirmEmail from './pages/ConfirmEmail.svelte'
|
import ConfirmEmail from './pages/ConfirmEmail.svelte'
|
||||||
import GateUI from './pages/GateUI.svelte'
|
import GateKiosk from './pages/GateKiosk.svelte'
|
||||||
import ScheduleBoard from './pages/ScheduleBoard.svelte'
|
import ScheduleBoard from './pages/ScheduleBoard.svelte'
|
||||||
import Settings from './pages/Settings.svelte'
|
import Settings from './pages/Settings.svelte'
|
||||||
import Nav from './components/Nav.svelte'
|
import Nav from './components/Nav.svelte'
|
||||||
|
|
@ -96,7 +96,7 @@
|
||||||
{#if loading}
|
{#if loading}
|
||||||
<!-- checking session -->
|
<!-- checking session -->
|
||||||
{:else if kioskToken}
|
{:else if kioskToken}
|
||||||
<Kiosk />
|
<VolunteerKiosk />
|
||||||
{:else if isVolunteerSignup}
|
{:else if isVolunteerSignup}
|
||||||
<VolunteerSignup />
|
<VolunteerSignup />
|
||||||
{:else if isConfirmEmail}
|
{:else if isConfirmEmail}
|
||||||
|
|
@ -104,8 +104,8 @@
|
||||||
{:else if !session}
|
{:else if !session}
|
||||||
<Login onlogin={onLogin} />
|
<Login onlogin={onLogin} />
|
||||||
{:else if role === 'gatekeeper'}
|
{:else if role === 'gatekeeper'}
|
||||||
<!-- Gate users get the full-screen GateUI instead of the standard layout -->
|
<!-- Gate users get the full-screen GateKiosk instead of the standard layout -->
|
||||||
<GateUI {session} {onLogout} />
|
<GateKiosk {session} {onLogout} />
|
||||||
{:else}
|
{:else}
|
||||||
<div class="layout">
|
<div class="layout">
|
||||||
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
||||||
|
|
|
||||||
|
|
@ -130,6 +130,7 @@ tr:hover td { background: rgba(255,255,255,0.02); }
|
||||||
text-transform: uppercase; letter-spacing: 0.04em;
|
text-transform: uppercase; letter-spacing: 0.04em;
|
||||||
}
|
}
|
||||||
.badge-checked { background: rgba(34,197,94,0.15); color: var(--c-success); }
|
.badge-checked { background: rgba(34,197,94,0.15); color: var(--c-success); }
|
||||||
|
.badge-confirmed { background: rgba(99,102,241,0.15); color: var(--c-accent-h); }
|
||||||
.badge-unchecked { background: rgba(122,127,150,0.15); color: var(--c-muted); }
|
.badge-unchecked { background: rgba(122,127,150,0.15); color: var(--c-muted); }
|
||||||
.badge-partial { background: rgba(245,158,11,0.15); color: var(--c-warn); }
|
.badge-partial { background: rgba(245,158,11,0.15); color: var(--c-warn); }
|
||||||
.badge-role { background: rgba(99,102,241,0.15); color: var(--c-accent-h); }
|
.badge-role { background: rgba(99,102,241,0.15); color: var(--c-accent-h); }
|
||||||
|
|
|
||||||
|
|
@ -9,5 +9,5 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<button class="btn btn-success btn-sm" onclick={handle} disabled={loading}>
|
<button class="btn btn-success btn-sm" onclick={handle} disabled={loading}>
|
||||||
{loading ? '…' : '✓ Check in'}
|
{loading ? '…' : '✓ Ready'}
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -424,9 +424,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div style="text-align:right">
|
<div style="text-align:right">
|
||||||
{#if tk.checked_in_at}
|
{#if tk.checked_in_at}
|
||||||
<span class="badge badge-checked">In {fmtTime(tk.checked_in_at)}</span>
|
<span class="badge badge-checked">Checked in {fmtTime(tk.checked_in_at)}</span>
|
||||||
{:else}
|
{:else}
|
||||||
<span class="badge badge-unchecked">Pending</span>
|
<span class="badge badge-unchecked">Not checked in</span>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="text-muted" style="font-size:0.75rem">{tk.source}</div>
|
<div class="text-muted" style="font-size:0.75rem">{tk.source}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -183,8 +183,8 @@
|
||||||
{/if}
|
{/if}
|
||||||
<select bind:value={filterChecked} style="width:auto">
|
<select bind:value={filterChecked} style="width:auto">
|
||||||
<option value="">All</option>
|
<option value="">All</option>
|
||||||
<option value="false">Not checked in</option>
|
<option value="false">Not ready</option>
|
||||||
<option value="true">Checked in</option>
|
<option value="true">Ready</option>
|
||||||
</select>
|
</select>
|
||||||
<span class="text-muted" style="font-size:0.85rem;white-space:nowrap">
|
<span class="text-muted" style="font-size:0.85rem;white-space:nowrap">
|
||||||
{filtered.length} shown
|
{filtered.length} shown
|
||||||
|
|
@ -236,8 +236,8 @@
|
||||||
{/if}
|
{/if}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<span class="badge {v.checked_in ? 'badge-checked' : 'badge-unchecked'}">
|
<span class="badge {v.checked_in ? 'badge-checked' : v.email_confirmed ? 'badge-confirmed' : 'badge-unchecked'}">
|
||||||
{v.checked_in ? 'Checked in' : 'Pending'}
|
{v.checked_in ? 'Ready' : v.email_confirmed ? 'Confirmed' : 'Unconfirmed'}
|
||||||
</span>
|
</span>
|
||||||
{#if v.checked_in_at}
|
{#if v.checked_in_at}
|
||||||
<div class="text-muted" style="font-size:0.75rem">
|
<div class="text-muted" style="font-size:0.75rem">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue