feat(settings): wire ANALYSIS_BACKGROUND into landing loader and add CI notes

This commit is contained in:
2026-05-16 20:20:36 +02:00
parent eb999444d7
commit 7fdef49b8c
6 changed files with 20 additions and 49 deletions
@@ -0,0 +1,8 @@
import { test, expect } from 'vitest';
import { settingsService } from '../../lib/settings.server';
test('landing loader respects ANALYSIS_BACKGROUND', async () => {
await settingsService.set('ANALYSIS_BACKGROUND', { enabled: true }, 'test');
const val = await settingsService.get('ANALYSIS_BACKGROUND');
expect(val).toEqual({ enabled: true });
});
+6
View File
@@ -1,6 +1,12 @@
import { Link } from "react-router";
import Navbar from "../components/Navbar";
import AlpacaAccountInfo from "../components/AlpacaAccountInfo";
import { settingsService } from '~/lib/settings.server';
export async function loader() {
const analysisBackground = (await settingsService.get('ANALYSIS_BACKGROUND')) ?? { enabled: false };
return { analysisBackground };
}
export default function Landing() {
return (