Skip to content

feat/integrations#23

Open
michakfromparis wants to merge 14 commits into
mainfrom
feat/integrations
Open

feat/integrations#23
michakfromparis wants to merge 14 commits into
mainfrom
feat/integrations

Conversation

@michakfromparis

Copy link
Copy Markdown
Owner

No description provided.

- Introduced a new `integrations.md` document detailing the integration of GraphQL Rust Codegen with various tools and frameworks.
- Included sections on installation, configuration, and advanced integration patterns for seamless TypeScript and Rust workflows.
- Provided troubleshooting tips and real-world examples to enhance user understanding and facilitate easier implementation.
- Ensured clarity and structure to support developers in leveraging the full capabilities of the integration.
…n features

- Renamed the project in the README for clarity.
- Added a comprehensive integration guide for using GraphQL Code Generator with Rust, detailing a unified TypeScript + Rust workflow.
- Included instructions for generating TypeScript types and Rust database code in a single command.
- Enhanced the documentation structure with new sections on configuration and combined workflows, improving user onboarding and understanding of the tool's capabilities.
…evels

- Added a new Logger struct to manage verbosity levels and provide structured logging throughout the application.
- Implemented methods for info, debug, trace, success, warning, and error logging, enhancing output clarity and consistency.
- Included `#[allow(dead_code)]` annotations for unused methods to maintain code clarity.
- Introduced a new `Integration` struct to facilitate integration with existing Tauri + GraphQL Code Generator projects.
- Implemented configuration handling for output directory, script addition, and force overwrite options.
- Added functionality to read and update `codegen.yml` with a new `rust_codegen` section, ensuring seamless integration.
- Included methods to add relevant scripts to `package.json`, enhancing user experience and automation.
- Ensured comprehensive logging throughout the integration process for better visibility and user guidance.
- Added a Logger instance to the code generation process for improved visibility and traceability.
- Updated the generate_all_code function to include logging for directory creation, schema generation, entity file generation, and migration creation.
- Enhanced logging messages to provide detailed feedback on the generation process, including counts of generated files and operations performed.
…ities

- Introduced an `Integration` module to facilitate integration with existing projects.
- Refactored the `Logger` usage for better organization and clarity.
- Updated the `generate_all_code` function calls to use the crate scope for consistency.
- Added command handling for integration commands, enhancing the CLI functionality.
- Maintained existing commented code for clarity and future reference.
… integration

- Introduced a new `Integrate` command to the CLI, allowing users to specify output directory, skip package.json scripts, and force overwrite existing configurations.
- Enhanced the CLI functionality to support seamless integration with existing Tauri + GraphQL Code Generator projects.
- Maintained existing commented code for clarity and future reference.
…enerator

- Added a new section detailing integration steps for existing Tauri projects, including prerequisites and workflow enhancements.
- Provided clear instructions for adding Rust code generation to Tauri apps, including command usage and configuration modifications.
- Highlighted integration benefits, ensuring users understand the seamless addition of Rust capabilities without disrupting existing setups.
…QL Code Generator

- Added a section for initializing new projects from scratch, providing clear command usage.
- Included instructions for integrating Rust database code generation into existing Tauri + GraphQL projects, detailing the necessary commands for setup and generation.
- Improved overall structure and clarity of the README to facilitate user onboarding and understanding of the integration process.
…dule

- Reordered imports in `integration.rs` for clarity.
- Adjusted indentation and formatting in logging messages to enhance readability.
- Refactored script addition logic in `integration.rs` to maintain consistent formatting.
- Cleaned up trailing whitespace in `main.rs` and ensured proper newline at the end of `lib.rs` for consistency.
- Updated `generate_all_code` function calls in integration tests to include a Logger instance for improved visibility during code generation.
- Ensured consistent logging across multiple test cases to facilitate debugging and traceability of the code generation process.
- Removed the conditional compilation for the `serde_yaml` crate as it is no longer needed.
- Cleaned up the import section for better organization and clarity.
@codecov

codecov Bot commented Oct 3, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 14.10256% with 134 lines in your changes missing coverage. Please review.
✅ Project coverage is 53.45%. Comparing base (b93ac2d) to head (6081d46).

Files with missing lines Patch % Lines
src/integration.rs 0.00% 96 Missing ⚠️
src/logger.rs 40.74% 16 Missing ⚠️
src/main.rs 0.00% 16 Missing ⚠️
src/cli.rs 0.00% 3 Missing ⚠️
src/lib.rs 78.57% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #23      +/-   ##
==========================================
- Coverage   55.93%   53.45%   -2.49%     
==========================================
  Files           9       11       +2     
  Lines        1768     1897     +129     
==========================================
+ Hits          989     1014      +25     
- Misses        779      883     +104     
Files with missing lines Coverage Δ
src/config.rs 60.93% <ø> (ø)
src/generator.rs 78.34% <ø> (ø)
src/generator/diesel.rs 85.94% <ø> (ø)
src/generator/sea_orm.rs 85.39% <ø> (ø)
src/cli.rs 51.72% <0.00%> (-5.97%) ⬇️
src/lib.rs 84.72% <78.57%> (-0.74%) ⬇️
src/logger.rs 40.74% <40.74%> (ø)
src/main.rs 0.00% <0.00%> (ø)
src/integration.rs 0.00% <0.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- Moved the DatabaseType enum definition from cli.rs to config.rs for better separation of concerns.
- Updated all relevant imports across the codebase to reflect the new location of DatabaseType.
- Enhanced readability and maintainability by cleaning up import statements in various modules.
- Removed unnecessary blank lines in cli.rs and main.rs for better organization.
- Reordered imports in generator.rs, diesel.rs, and sea_orm.rs to maintain consistency and clarity.
- Updated import statements in cli_tests.rs to reflect the new location of DatabaseType, enhancing code maintainability.
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.

1 participant