Skip to content

Conversation

@EliasJHL
Copy link
Owner

This pull request introduces significant improvements to the backend architecture by modularizing the GraphQL schema, updating the Prisma data model to support workspace-level labels, and enhancing resolver and dependency management. The changes improve maintainability, scalability, and clarity of the codebase, especially around GraphQL and data modeling.

GraphQL Schema Modularization and Expansion:

  • Migrated from a single schema.graphql file to a modular schema structure, splitting types and operations into multiple files (schemas/*.graphql). This allows easier management and extension of the GraphQL API. [1] [2] [3] [4] [5] [6]
  • Updated backend initialization in index.mjs to dynamically load all schema files using @graphql-tools/load and GraphQLFileLoader, replacing the previous static file read.

Prisma Data Model Updates:

  • Refactored the Label model to associate labels with a Workspace rather than a Board, supporting workspace-level label management. Updated related fields in Workspace and Board models accordingly. [1] [2] [3]

Resolver and Dependency Enhancements:

  • Added new resolvers for labels and file uploads, and integrated them into the main resolver export to support expanded schema functionality. [1] [2] [3]
  • Updated backend/package.json to include new GraphQL tools dependencies required for schema loading and management.

Environment and Configuration Improvements:

  • Removed hardcoded Minio secrets from .env and replaced with a template .env.template to improve security and configurability. Added documentation for all environment variables. [1] [2]

Minor Syntax and Consistency Updates:

  • Standardized import statements and formatting across backend files for improved readability and consistency. [1] [2] [3]

@EliasJHL EliasJHL self-assigned this Nov 22, 2025
@vercel
Copy link
Contributor

vercel bot commented Nov 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
task-flow Ready Ready Preview Comment Nov 22, 2025 8:52pm

@EliasJHL EliasJHL merged commit cb67471 into main Nov 22, 2025
3 checks passed
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