Deployment fixes, add HPP logo

This commit is contained in:
2026-05-04 22:21:07 +12:00
parent 2799946091
commit ebee72d4df
24 changed files with 768 additions and 45 deletions
+6 -6
View File
@@ -303,7 +303,7 @@
<div class="auth-card auth-card-loading">
<div class="auth-header">
<div class="client-logo-block">
<img class="hero-login-logo" src="/lean101-login-logo.png" alt="Lean 101" />
<img class="hero-login-logo" src="/logo-hsf.png" alt="Lean 101" />
<div class="client-logo-copy">
<p class="eyebrow">Client Workspace</p>
<strong>Hunter Premium Produce</strong>
@@ -327,7 +327,7 @@
<div class="auth-footer">
<div class="lean-brand">
<img class="footer-login-logo" src="/lean101-login-logo.png" alt="Lean 101" />
<img class="footer-login-logo" src="/logo-hsf.png" alt="Lean 101" />
</div>
<div class="auth-meta">
<span class="version-badge">
@@ -344,7 +344,7 @@
<div class="auth-card auth-card-login">
<div class="auth-header">
<div class="client-logo-block">
<img class="hero-login-logo" src="/lean101-login-logo.png" alt="Lean 101" />
<img class="hero-login-logo" src="/logo-hsf.png" alt="Lean 101" />
<div class="client-logo-copy">
<p class="eyebrow">Client Sign-In</p>
<strong>Hunter Premium Produce</strong>
@@ -389,7 +389,7 @@
<div class="auth-footer">
<div class="lean-brand">
<img class="footer-login-logo" src="/lean101-login-logo.png" alt="Lean 101" />
<img class="footer-login-logo" src="/logo-hsf.png" alt="Lean 101" />
</div>
<div class="auth-meta">
<span class="version-badge">
@@ -798,13 +798,13 @@
}
.hero-login-logo {
width: min(100%, 19rem);
width: min(100%, 24rem);
height: auto;
display: block;
}
.footer-login-logo {
width: 9.8rem;
width: 12rem;
height: auto;
display: block;
}
@@ -1,7 +1,13 @@
import { redirect } from '@sveltejs/kit';
import { api } from '$lib/api';
import { featureFlags } from '$lib/features';
import { getStoredClientSession, hasModuleAccess, hasStoredClientSession } from '$lib/session';
export async function load({ fetch }) {
if (!featureFlags.mixCalculatorSessionHistory) {
throw redirect(307, '/mix-calculator/new');
}
if (!hasStoredClientSession()) {
return {
sessions: []
@@ -1,5 +1,6 @@
<script lang="ts">
import MixCalculatorWorkspace from '$lib/components/MixCalculatorWorkspace.svelte';
import { featureFlags } from '$lib/features';
let { data } = $props();
</script>
@@ -11,7 +12,11 @@
<p class="eyebrow">Mix Calculator</p>
<h2>Session unavailable.</h2>
<p>The requested mix calculator session could not be loaded with the current access scope.</p>
<a class="secondary-button" href="/mix-calculator">Back to session history</a>
{#if featureFlags.mixCalculatorSessionHistory}
<a class="secondary-button" href="/mix-calculator">Back to session history</a>
{:else}
<a class="secondary-button" href="/mix-calculator/new">New mix session</a>
{/if}
</section>
{/if}
@@ -1,5 +1,6 @@
<script lang="ts">
import MixCalculatorPrintSheet from '$lib/components/MixCalculatorPrintSheet.svelte';
import { featureFlags } from '$lib/features';
let { data } = $props();
</script>
@@ -11,7 +12,11 @@
<p class="eyebrow">Mix Calculator</p>
<h2>Printable session unavailable.</h2>
<p>The saved session could not be loaded for printing.</p>
<a class="secondary-button" href="/mix-calculator">Back to session history</a>
{#if featureFlags.mixCalculatorSessionHistory}
<a class="secondary-button" href="/mix-calculator">Back to session history</a>
{:else}
<a class="secondary-button" href="/mix-calculator/new">New mix session</a>
{/if}
</section>
{/if}