refactor: standardize naming to camelCase for flow slugs and kebab-case for files#442
Conversation
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
View your CI Pipeline Execution ↗ for commit 48ca569
☁️ Nx Cloud last updated this comment at |
🔍 Preview Deployment: Website✅ Deployment successful! 🔗 Preview URL: https://pr-442.pgflow.pages.dev 📝 Details:
_Last updated: _ |
Merge activity
|
…se for files (#442) # Update Flow and Step Naming Conventions to camelCase This PR updates the naming conventions for flows and steps to use camelCase for slugs and kebab-case for file names. The changes include: 1. Renamed example flow file from `example_flow.ts` to `example-flow.ts` 2. Updated flow slugs from snake_case to camelCase (e.g., `example_flow` → `exampleFlow`) 3. Updated step slugs to follow camelCase convention 4. Updated file paths in imports and tests to use kebab-case 5. Added comprehensive naming convention documentation in `/concepts/naming-conventions/` 6. Updated all code examples in documentation to follow the new conventions These changes establish a consistent naming pattern across the codebase: - Flow slugs: camelCase (e.g., `greetUser`) - Step slugs: camelCase (e.g., `fetchData`) - File names: kebab-case (e.g., `greet-user.ts`) - Flow exports: PascalCase (e.g., `GreetUser`) - Worker directories: kebab-case + `-worker` (e.g., `greet-user-worker/`) This standardization improves code readability and follows JavaScript ecosystem conventions.

Update Flow and Step Naming Conventions to camelCase
This PR updates the naming conventions for flows and steps to use camelCase for slugs and kebab-case for file names. The changes include:
example_flow.tstoexample-flow.tsexample_flow→exampleFlow)/concepts/naming-conventions/These changes establish a consistent naming pattern across the codebase:
greetUser)fetchData)greet-user.ts)GreetUser)-worker(e.g.,greet-user-worker/)This standardization improves code readability and follows JavaScript ecosystem conventions.