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:
@@ -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"'],
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user