feat: improve navigation and add security scans
Security / Secrets (gitleaks) (push) Successful in 1m29s
Lint / Lint (push) Successful in 1m43s
Security / Dependencies (Trivy) (push) Successful in 1m59s
Security / Code (Semgrep) (push) Successful in 3m34s
Tests / Dashboard checks (push) Successful in 1m2s
Tests / Go backend (push) Successful in 3m13s
Docker / Docker Build & Push (push) Successful in 8m15s

- Hide the lone navigation tab and show mobile menus as overlays
- Add secret, code, and dependency scanning to CI
- Update test workflows and remove an unused frontend dependency
This commit is contained in:
Gabriel20xx committed 2026-10-27 09:54:10 +00:00
1 parent 85e6db67b5
commit 817236f349
23 files changed
+299 -74

No files matched your search

@@ -36,12 +36,12 @@ describe('ProfileDialog password changes', () => {
await submit();
expect(onSave).not.toHaveBeenCalled();
expect(screen.getByText('Enter your current password to change it.')).toBeTruthy();
expect(screen.getByText('Enter your current password to change your email or password.')).toBeTruthy();
await fill('currentPassword', 'old-password');
await submit();
expect(onSave).not.toHaveBeenCalled();
expect(screen.getByText('Enter a current authenticator code to change your password.')).toBeTruthy();
expect(screen.getByText('Enter a current authenticator code to change your email or password.')).toBeTruthy();
await fill('totpToken', '123456');
await submit();
@@ -54,6 +54,13 @@ describe('primary color', () => {
expect(styleText()).not.toContain('#db3e24');
});
it('uses dark text on light colors where white would be hard to read', () => {
applyPrimaryColor('app', 'Honey');
const [light] = styleText().split("[data-theme='dark']");
expect(light).toContain('--sc-primary-fg: #2a2b0d !important;');
expect(light).not.toContain('--sc-primary-fg: #ffffff !important;');
});
it('makes the hover lighter on dark and darker on light', () => {
applyPrimaryColor('app', 'Clover');
const [light, dark] = styleText().split("[data-theme='dark']");