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
Ilia Mashkov
98eab35615
fix(fonts): remove unused FontCategory import from unifiedFontStore
2026-01-29 14:38:33 +03:00
Ilia Mashkov
7fbeef68e2
feat(fonts): implement Phase 2 - Unified Font Store
...
- Implemented UnifiedFontStore extending BaseFontStore
- Added pagination support with derived metadata
- Added provider-specific shortcuts (setProvider, setCategory, etc.)
- Added pagination methods (nextPage, prevPage, goToPage)
- Added category getter shortcuts (sansSerifFonts, serifFonts, etc.)
- Updated store exports to include unified store
- Fixed typo in googleFontsStore.svelte.ts (createGoogleFontsStore)
Phase 2/7: Proxy API Integration for GlyphDiff
2026-01-29 14:38:07 +03:00
Ilia Mashkov
55a560b785
feat(appliedFontsStore): implement the logic to update font link when font weight changes
2026-01-20 14:17:41 +03:00
Ilia Mashkov
1bd2a4f2f8
fix(fontshareStore): add normalization to reduce amount of requests
2026-01-20 09:36:39 +03:00
Ilia Mashkov
9cbf4fdc48
doc: comments for codebase and updated documentation
2026-01-18 15:55:07 +03:00
Ilia Mashkov
e0e0d929bb
chore: add import shortcuts
2026-01-18 14:53:14 +03:00
Ilia Mashkov
37ab7f795e
feat(selectedFontsStore): create selectedFontsStore to manage selected fonts collection
2026-01-18 14:52:12 +03:00
Ilia Mashkov
4d04761d88
feat(appliedFontsStore): create Applied Fonts Manager to manage fonts download
2026-01-18 12:46:11 +03:00
Ilia Mashkov
7678ab271d
fix: lint warnings
Build / build (pull_request) Failing after 49s
Lint / Lint Code (pull_request) Failing after 38s
Test / Svelte Checks (pull_request) Failing after 44s
2026-01-14 15:14:58 +03:00
Ilia Mashkov
955cc66916
feat: new version of unifiedFontStore
2026-01-13 20:10:44 +03:00
Ilia Mashkov
30cb9ada1a
fix(Font): refresh types
2026-01-13 20:06:58 +03:00
Ilia Mashkov
a29b80efbb
feature: Create BaseFontStore class with Tanstack query logic and FontshareStore, GoogleFontsStore based on it
2026-01-13 20:02:20 +03:00