Commit graph

473 commits

Author SHA1 Message Date
Devin AI
041e13e95c lint: remove unused svelte-ignore comments (17 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-24 05:45:51 +00:00
Devin AI
248000134b lint: disable svelte/no-at-html-tags rule for trusted content
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-24 05:45:14 +00:00
Devin AI
3b46df5c7b lint: add svelte-ignore comments for @html tags (17 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-24 05:43:42 +00:00
Devin AI
903308ce3f lint: fix misc errors (no-case-declarations, empty interfaces, empty catch blocks) (12 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-24 05:41:12 +00:00
Devin AI
62263e5785 lint: fix unused expressions by adding void operator (26 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-24 05:39:21 +00:00
Devin AI
e24e935fc4 lint: remove remaining duplicate stop-color properties (12 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-24 05:38:16 +00:00
Devin AI
24aadb4602 lint: remove duplicate style properties in AvatarSVG (22 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-24 05:37:43 +00:00
Devin AI
8cbbd6d89c lint: fix undefined variables by adding missing type imports (22 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-24 05:32:40 +00:00
Devin AI
f3bd552eca lint: remove remaining unused imports and variables (20 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-24 05:31:03 +00:00
Devin AI
2df4819fef lint: remove unused imports and variables in admin components (15 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-24 05:29:32 +00:00
Devin AI
0bdbd26deb lint: remove unused imports in api routes and stories (9 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-24 05:28:11 +00:00
Devin AI
30fde044d7 lint: remove unused imports and functions (7 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-24 05:26:28 +00:00
Devin AI
38b8b8995c lint: remove unused imports and rename unused variables (6 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-23 14:44:59 +00:00
Devin AI
ee31ed9a1e lint: remove unused imports and variables (8 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-23 14:43:41 +00:00
Devin AI
1cda37dafb lint: remove unused set functions from store files (6 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-23 14:42:30 +00:00
Devin AI
6caf2651ac lint: remove unused imports and variables in server files (6 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-23 14:41:22 +00:00
Devin AI
29f2da61dd lint: remove unused imports and rename unused catch errors (8 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-23 14:40:06 +00:00
Devin AI
14e18fb1bb lint: remove unused imports and rename unused parameters (6 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-23 14:38:52 +00:00
Devin AI
865308fdfe lint: configure eslint to ignore underscore-prefixed unused vars
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-23 14:37:56 +00:00
Devin AI
c1fbb6920c lint: remove unused imports, variables, and parameters (9 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-23 14:35:49 +00:00
Devin AI
6ae7a18443 lint: remove unused imports and variables (8 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-23 14:34:09 +00:00
Devin AI
841ee79885 lint: remove more unused imports and variables (5 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-23 14:32:37 +00:00
Devin AI
018fc67b2c lint: remove unused imports, variables, and dead code (10 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-23 14:30:57 +00:00
Devin AI
3e2336bc5c lint: remove more unused imports and variables (6 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-23 14:29:05 +00:00
Devin AI
3f5969a08c lint: remove unused imports and variables (11 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
2025-11-23 14:26:56 +00:00
3a1670c096
Merge pull request #19 from jedmund/hotfix/project-loading
fix: add missing migration for project header visibility fields
2025-11-23 06:06:49 -08:00
f7d6f23b78 fix: add missing migration for project header visibility fields
Fixes P0 production error where projects failed to load due to missing
database columns. The schema was updated in commit 12d2ba1 to add three
Boolean fields (showFeaturedImageInHeader, showBackgroundColorInHeader,
showLogoInHeader) but no migration was created.

This migration adds the missing columns to the Project table with their
proper defaults (all true), resolving the "column does not exist" error
in production.
2025-11-23 06:05:42 -08:00
b06842bcab
Merge pull request #18 from jedmund/cleanup/linter
Linter cleanup Part 1
2025-11-23 05:57:49 -08:00
4ae445681e docs: update progress doc 2025-11-23 05:56:35 -08:00
6408e7f85d wip: start fixing server utility any types
- add ContentNode interface for content rendering
- replace any with proper types in content.ts (15 -> 6 errors)
- use Record<string, unknown> for dynamic content objects
- add type assertions for content arrays
2025-11-23 05:52:42 -08:00
93795577cd fix: complete frontend component any type cleanup
- replace any with Prisma types (Post, Project, Album, Media)
- use Component type for Svelte component parameters
- use Snippet type for Svelte 5 render slots
- use Record<string, unknown> for dynamic objects
- add proper type guards for error handling
- fix editor extension types with proper generics
- all frontend components now have zero any type errors
2025-11-23 05:50:22 -08:00
3d77922a99 fix: replace more any types in components
- fix edra placeholder components with proper editor context types
- fix gallery image types with proper type assertions
- fix ProseMirror transaction types in link manager
- fix command types in composer toolbar
- replace any with unknown where type is dynamic
2025-11-23 05:37:28 -08:00
9c746d51c0 fix: replace any types in frontend components
- use Leaflet types (L.Map, L.Marker, L.LeafletEvent) for map components
- use Post and Project types from Prisma for form components
- use JSONContent type for editor instances
- use Snippet type for Svelte 5 render functions
- use EditorView type for TipTap/ProseMirror views
- use proper type guards for error handling
- add editor interface types for save/clear methods
2025-11-23 05:32:09 -08:00
8ec4c582c1 fix: eliminate remaining any types in API routes
- use Prisma.JsonValue and Prisma input types throughout
- add proper type guards for array and object checks
- replace any with Record<string, unknown> where appropriate
- all API/RSS routes now have zero any type errors
2025-11-23 05:28:05 -08:00
73c2fae7b8 fix: complete API route type safety improvements
- add ProjectUpdateBody interface for partial updates
- use Prisma.ProjectUpdateInput for update operations
- replace all remaining any types in projects endpoints
- consistent use of proper types across all API routes
2025-11-23 05:16:55 -08:00
f6737ee19c fix: replace remaining any types in API routes
- add AlbumPhoto, BlockContent, AppleMusicData types
- add ProjectCreateBody interface for request validation
- use Prisma.ProjectWhereInput for query filters
- use Prisma.JsonValue for JSON fields
- add proper type guards for content validation
2025-11-23 05:14:19 -08:00
aab78f3909 fix: replace any types in API routes with proper Prisma types
- add ContentNode, GalleryItem, TextNode, ParagraphNode, DocContent types
- use Prisma.JsonValue for JSON column content
- use Prisma.ProjectUpdateInput and Prisma.PostUpdateInput for update payloads
- improve type guards for content filtering
- replace any[] with never[] for empty placeholder arrays
2025-11-23 05:04:04 -08:00
056e8927ee fix: replace any types with proper types in admin components
- add GalleryItem type for media/gallery item unions
- add EdraCommand import for editor command types
- add Post, Media imports from Prisma
- add BlockContent, DraftPayload, PostPayload, PhotoPayload types
- replace any with proper types in form handlers and callbacks
- use unknown for truly dynamic data, Record types for object props
2025-11-23 05:00:59 -08:00
94e13f1129 chore: auto-fix linting issues with eslint --fix
Apply automatic fixes for prefer-const violations and other
auto-fixable linting errors. Reduces error count from 613 to 622.
2025-11-23 04:48:06 -08:00
ec0431d2b0 fix: extract JSON-LD script generation to resolve parsing errors
Refactor inline template literals with nested JSON.stringify() into
separate derived variables. Fixes 6 ESLint parsing errors in route files.
2025-11-23 04:47:26 -08:00
d60eba6e90 fix: require pnpm >= 10 in package.json engines 2025-11-23 03:52:35 -08:00
d994a5bf96 fix: upgrade to pnpm 10 for psn-api compatibility 2025-11-23 03:50:52 -08:00
e4cc4e22c7 fix: update psn-api to use pnpm and simplify railpack config 2025-11-23 03:49:52 -08:00
59714b2d83 fix: enable corepack and install yarn before pnpm install 2025-11-23 03:41:31 -08:00
79a439c634 fix: switch to Railpack with proper pnpm and yarn configuration 2025-11-23 03:39:23 -08:00
e7c652460e fix: add yarn to nixpacks for psn-api dependency 2025-11-23 03:36:08 -08:00
e6392da856 fix: remove dev.db from git and configure Railway properly 2025-11-23 03:33:59 -08:00
aadb00dce7 fix: disable engine-strict and add nixpacks config for Railway 2025-11-23 03:30:05 -08:00
28f20de66a fix: continuing to migrate to pnpm 2025-11-23 03:25:20 -08:00
8721158da9 Update build script 2025-11-23 03:10:26 -08:00