Cleanup/code cleanup 2026 03 (#45)

* chore: cleanup of unused exports and stuff

* fix: media and languages was broken for english media

* fix: embedding model load was broken on standalone

---------

Co-authored-by: hugo <hugoms@me.com>
This commit is contained in:
Georg Bauerandhugo authored and GitHub committed 2026-03-10 19:54:38 +01:00
1 parent 4f9be93c6d
commit 1b4ab08c37
60 files changed
+176 -1696

No files matched your search

@@ -11,15 +11,6 @@ function read(relativePath: string): string {
describe('Phase 1 i18n hardcoded literals', () => {
it('does not keep known hardcoded user-facing literals in renderer components', () => {
const checks: Array<{ file: string; literals: string[] }> = [
{
file: 'src/renderer/components/PostSearchModal/PostSearchModal.tsx',
literals: [
'Search posts by title or content...',
'Searching...',
'Type at least 2 characters to search',
'Use ↑↓ to navigate, Enter to select, Esc to close',
],
},
{
file: 'src/renderer/components/StatusBar/StatusBar.tsx',
literals: ['<span>{totalPosts} posts</span>', '<span>{media.length} media</span>', 'Theme: {activeTheme}', 'aria-label="UI language"'],
+1 -1
View File
@@ -8,7 +8,7 @@
import { describe, it, expect, beforeEach } from 'vitest';
import { clearMacros, getMacro, registerMacro } from '../../../src/renderer/macros/registry';
import type { MacroParams, MacroRenderContext } from '../../../src/renderer/macros/types';
import photoArchiveMacro from '../../../src/renderer/macros/definitions/photo_archive';
import { photoArchiveMacro } from '../../../src/renderer/macros/definitions/photo_archive';
describe('photo_archive macro', () => {
beforeEach(() => {