Skip to content

Conversation

@kiritowu
Copy link
Owner

Description

This PR removes Prisma from the project. Managing a single user profile with a SQL database was unnecessarily complex and hard to maintain. The previous Supabase solution had issues with the database going to sleep, and Cloudflare D1 (SQLite) does not support storing arrays of strings easily. Using multiple tables to work around this would add even more complexity, so Prisma is being removed to simplify the codebase.

Changes

  • Removed Prisma and related database code.
  • Simplified the project’s dependencies.

Motivation

  • Reduce complexity and maintenance for managing simple user data.

@kiritowu kiritowu requested a review from Copilot August 16, 2025 07:43
@kiritowu kiritowu self-assigned this Aug 16, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes Prisma ORM and database dependencies from the project, replacing them with a simpler YAML-based data management approach. The change eliminates the complexity of managing a single user profile through SQL databases and transitions to static file-based data storage.

  • Removes all Prisma-related code, schema, migrations, and dependencies
  • Replaces database data loading with direct YAML file parsing
  • Updates type definitions to be standalone rather than Prisma-generated
  • Modifies template compilation and data transformation logic

Reviewed Changes

Copilot reviewed 20 out of 21 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tex/template.tex Updates template variables to match new YAML structure
src/routes/+page.svelte Replaces database data loading with YAML import and client-side transformation
src/routes/+layout.ts Adds static site generation configuration
src/routes/+layout.server.ts Removes server-side database loading logic
src/lib/types.ts Defines new standalone TypeScript interfaces
src/lib/profile.yaml Standardizes date formats
src/lib/components/*.svelte Updates import statements for new type definitions
scripts/1.compile-latex-template.js Simplifies template compilation to use YAML directly
prisma/* Removes all Prisma schema, migrations, and seed files
package.json Removes Prisma dependencies
.github/workflows/deploy.yml Removes database environment variables

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

category,
name: skill as string
}));
});
Copy link

Copilot AI Aug 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variable name skills is used both as the parameter and the destructured value, creating shadowing. Consider renaming the inner variable to avoid confusion.

Copilot uses AI. Check for mistakes.
@kiritowu kiritowu merged commit 6935fd3 into main Aug 16, 2025
2 checks passed
@kiritowu kiritowu deleted the fix/deprecate-prisma branch August 16, 2025 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants