Ilia Mashkov
dc6e15492a
test: mock fontStore and update FontStore type signatures
2026-04-09 19:40:31 +03:00
Ilia Mashkov
45eac0c396
refactor: delete BaseFontStore and UnifiedFontStore — FontStore is the single implementation
2026-04-08 10:07:36 +03:00
Ilia Mashkov
468d2e7f8c
feat(FontStore): export through entity barrel files
2026-04-08 09:55:40 +03:00
Ilia Mashkov
2a761b9d47
feat(FontStore): implement lifecycle, param management, async methods, shortcuts, pagination, category getters, singleton — all tests green
2026-04-08 09:54:27 +03:00
Ilia Mashkov
a9e4633b64
feat(FontStore): implement fetchPage with error wrapping
2026-04-08 09:50:16 +03:00
Ilia Mashkov
778988977f
feat(FontStore): implement state getters, pagination, buildQueryKey, buildOptions
2026-04-08 09:47:25 +03:00
Ilia Mashkov
9a9ff95bf3
test(FontStore): write full TDD spec and empty shell (InfiniteQueryObserver)
2026-04-08 09:43:29 +03:00
Ilia Mashkov
752e38adf9
test: full test coverage of baseFontStore and unifiedFontStore
Workflow / build (pull_request) Successful in 55s
Workflow / publish (pull_request) Has been skipped
2026-04-08 09:33:04 +03:00
Ilia Mashkov
9c538069e4
test(UnifiedFontStore): add isEmpty and destroy tests
2026-04-06 12:26:08 +03:00
Ilia Mashkov
71fed58af9
test(UnifiedFontStore): add category getter tests
2026-04-06 12:24:23 +03:00
Ilia Mashkov
fee3355a65
test(UnifiedFontStore): add filter change reset tests
2026-04-06 12:19:49 +03:00
Ilia Mashkov
2ff7f1a13d
test(UnifiedFontStore): add filter setter tests
2026-04-06 11:35:56 +03:00
Ilia Mashkov
6bf1b1ea87
test(UnifiedFontStore): add pagination navigation tests
2026-04-06 11:34:53 +03:00
Ilia Mashkov
3ef012eb43
test(UnifiedFontStore): add pagination state tests
2026-04-06 11:34:03 +03:00
Ilia Mashkov
5df60b236c
test(UnifiedFontStore): cover fetchFn typed error paths and error getter
2026-04-05 15:20:15 +03:00
Ilia Mashkov
df3c694909
feat(UnifiedFontStore): throw FontNetworkError and FontResponseError in fetchFn
2026-04-05 14:07:26 +03:00
Ilia Mashkov
a1a1fcf39d
feat(BaseFontStore): expose error getter
2026-04-05 11:03:00 +03:00
Ilia Mashkov
b40e651be4
refactor(Font/model): move baseFontStore and unifiedFontStore to subdirectories, rename errors/index to errors/errors
2026-04-05 11:02:42 +03:00
Ilia Mashkov
c6dabafd93
chore(appliedFontsStore): move FontBufferCache, FontEvicionPolicy and FontLoadQueue to appliedFontsStore/utils
2026-04-05 08:25:05 +03:00
Ilia Mashkov
e88cca9289
test(FontBufferCache): change mock fetcher type
2026-04-04 16:43:54 +03:00
Ilia Mashkov
d4cf6764b4
test(appliedFontsStore): rewrite tests with describe grouping and full coverage
2026-04-04 10:38:20 +03:00
Ilia Mashkov
5a065ae5a1
refactor: extract #fetchChunk, replace Promise.allSettled with self-describing results
2026-04-04 09:58:41 +03:00
Ilia Mashkov
20110168f2
refactor: extract #processFont and #scheduleProcessing from touch and #processQueue
2026-04-04 09:52:45 +03:00
Ilia Mashkov
f88729cc77
fix: guard AbortError from retry counting; eviction policy removes stale keys
2026-04-04 09:40:21 +03:00
Ilia Mashkov
d21de1bf78
chore(appliedFontsStore): use created collaborators classes
2026-04-03 16:09:10 +03:00
Ilia Mashkov
37e0c29788
refactor: loadFont throws FontParseError instead of re-throwing raw error
2026-04-03 15:42:08 +03:00
Ilia Mashkov
46ce0f7aab
feat: extract FontBufferCache with injectable fetcher
2026-04-03 15:24:14 +03:00
Ilia Mashkov
128f341399
feat: extract FontEvictionPolicy with TTL and pin/unpin
2026-04-03 15:06:01 +03:00
Ilia Mashkov
64b97794a6
feat: extract FontLoadQueue with retry tracking
2026-04-03 15:01:36 +03:00
Ilia Mashkov
d6eb02bb28
feat: add FontFetchError and FontParseError typed errors
2026-04-03 14:44:06 +03:00
Ilia Mashkov
a711e4e12a
chore(appliedFontsStore): move generateFontKey into separate function and cover it with tests
2026-04-03 12:50:50 +03:00
Ilia Mashkov
05e4c082ed
feat(appliedFontsStore): move font loading logic into loadFont function and cover it with tests
2026-04-03 12:29:48 +03:00
Ilia Mashkov
b602b5022b
chore(appliedFontsStore): move the FontLoadRequestConfig type and other types from appliedFontsStore into types directory
2026-04-03 12:25:38 +03:00
Ilia Mashkov
5249d88df7
feat(appliedFontsStore): create separate yieldToMainThread function with proper tests
2026-04-03 11:05:29 +03:00
Ilia Mashkov
e553cf1f10
feat(appliedFontsStore): create separate getEffectiveConcurrency function with proper tests
2026-04-03 11:03:48 +03:00
Ilia Mashkov
a6c8b50cea
fix(appliedFontsStore): solve ttl based fonts purge by adding cache for on-screen fonts
Workflow / build (pull_request) Successful in 3m45s
Workflow / publish (pull_request) Has been skipped
2026-04-03 09:35:16 +03:00
Ilia Mashkov
af4137f47f
refactor(Font): consolidate API layer and update type structure
2026-03-02 22:18:21 +03:00
Ilia Mashkov
3abe5723c7
test(appliedFontStore): change mockFetch
2026-02-18 20:16:50 +03:00
Ilia Mashkov
77668f507c
feat(appliedFontsStore): add extensive documentation, implement optimization and usage of browser apis to ensure flawless ux and avoid ui freezing
2026-02-16 15:06:49 +03:00
Ilia Mashkov
1f793278d1
chore: remove comment
2026-02-16 14:12:00 +03:00
Ilia Mashkov
7aa9fbd394
feat(appliedFontsStore): explicidly state usage of woff2
2026-02-10 18:05:13 +03:00
Ilia Mashkov
1fc9572f3d
feat(appliedFontStore): use FontFace constructor, improve the performance and add test coverage for basic logic
2026-02-10 10:14:46 +03:00
Ilia Mashkov
422363d329
chore: remove unused code
2026-02-09 17:33:09 +03:00
Ilia Mashkov
1e2daa410c
fix(baseFontStore): fix the filtration problem when results didnt update after filter was deselected
Workflow / build (pull_request) Successful in 1m5s
2026-02-05 11:45:36 +03:00
Ilia Mashkov
adf6dc93ea
feat(appliedFontsStore): improvement that allow to use correct urls for variable fonts and fixes font weight problems
2026-02-05 11:44:16 +03:00
Ilia Mashkov
596a023d24
chore: add export/import
2026-02-05 11:40:59 +03:00
Ilia Mashkov
961475dea0
refactor(appliedFontsStore): migrate from direct <link> with css towards font-face approach
2026-02-02 12:10:12 +03:00
Ilia Mashkov
b1ce734f19
feat(VirtualList): VirtualList now supports pagination, it loads batches when user scrolls near the end of current batch
2026-01-31 11:48:14 +03:00
Ilia Mashkov
471e186e70
fix: Fix undefined query data and add fallback to Fontshare API
...
- Add gcTime parameter to TanStack Query config
- Add response validation in fetchFn with detailed logging
- Add fallback to Fontshare API when proxy fails
- Add USE_PROXY_API flag for easy switching
- Fix FontVirtualList generic type constraint
- Simplify font registration logic
- Add comprehensive console logging for debugging
Fixes: Query data cannot be undefined error
2026-01-29 15:20:51 +03:00
Ilia Mashkov
07a37af71a
feat(fonts): implement Phase 6 - Cleanup and Removal
...
- Deleted src/entities/Font/model/store/googleFontsStore.svelte.ts
- Deleted src/entities/Font/model/store/fontshareStore.svelte.ts
- Deleted src/entities/Font/model/services/fetchGoogleFonts.svelte.ts
- Deleted src/entities/Font/model/services/fetchFontshareFonts.svelte.ts
- Deleted src/entities/Font/model/services/index.ts
- Updated Font entity exports to remove deprecated stores
- Updated model index exports to remove deprecated services
- Updated store index to only export unified store
Phase 6/7: Proxy API Integration for GlyphDiff
2026-01-29 14:47:03 +03:00