Deploy to demo#1
Conversation
Flexion forms release
Changesets publish release
Remove tests from precommit hook
Version Packages
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Demo tweaks
|
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @flexion/forms-design@0.2.3 ### Patch Changes - 82bb94d: Make form link in form list optional - f3bc441: More aggressive refresh of forms list on AvailableFormList ## @flexion/forms-server@0.2.3 ### Patch Changes - Updated dependencies [82bb94d] - Updated dependencies [f3bc441] - @flexion/forms-design@0.2.3 ## @flexion/forms-sandbox@0.2.3 ### Patch Changes - @flexion/forms-server@0.2.3 ## @flexion/forms-server-doj@0.2.3 ### Patch Changes - @flexion/forms-server@0.2.3 ## @flexion/forms-spotlight@0.2.3 ### Patch Changes - Updated dependencies [82bb94d] - Updated dependencies [f3bc441] - @flexion/forms-design@0.2.3 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
## 🤖 Installing Claude Code GitHub App This PR adds a GitHub Actions workflow that enables Claude Code integration in our repository. ### What is Claude Code? [Claude Code](https://claude.com/claude-code) is an AI coding agent that can help with: - Bug fixes and improvements - Documentation updates - Implementing new features - Code reviews and suggestions - Writing tests - And more! ### How it works Once this PR is merged, we'll be able to interact with Claude by mentioning @claude in a pull request or issue comment. Once the workflow is triggered, Claude will analyze the comment and surrounding context, and execute on the request in a GitHub action. ### Important Notes - **This workflow won't take effect until this PR is merged** - **@claude mentions won't work until after the merge is complete** - The workflow runs automatically whenever Claude is mentioned in PR or issue comments - Claude gets access to the entire PR or issue context including files, diffs, and previous comments ### Security - Our Anthropic API key is securely stored as a GitHub Actions secret - Only users with write access to the repository can trigger the workflow - All Claude runs are stored in the GitHub Actions run history - Claude's default tools are limited to reading/writing files and interacting with our repo by creating comments, branches, and commits. - We can add more allowed tools by adding them to the workflow file like: ``` allowed_tools: Bash(npm install),Bash(npm run build),Bash(npm run lint),Bash(npm run test) ``` There's more information in the [Claude Code action repo](https://github.com/anthropics/claude-code-action). After merging this PR, let's try mentioning @claude in a comment on any PR to get started!
Code Review - PR #1: Deploy to demoOverviewThis automated PR syncs changes from main to demo, including a significant organizational migration from Stats: +1,168 additions / -625 deletions across 103 files 🔴 Critical Issues1. Commented-out Typecheck in CI PipelineLocation: The TypeScript type checking has been commented out: # - name: Typecheck source code
# shell: bash
# run: pnpm typecheckImpact: This disables critical type safety validation in CI, which could allow type errors to be merged into the codebase. Recommendation: This should be temporary only. Create a tracking issue to re-enable type checking and fix any blocking issues. If this is intentional due to migration issues, add a comment explaining why and when it will be restored. 2. Disabled Pre-commit TestsLocation: Tests have been disabled in the pre-commit hook: echo "*** NOTE: Running tests is temporarily disabled ***"
#pnpm test:ciImpact: Developers can commit code without running tests locally, increasing the risk of broken code reaching CI/CD. Recommendation: Add a TODO with a tracking issue number. Consider at minimum running fast unit tests even if integration tests are skipped. 3. Disabled Deployment WorkflowLocation: The entire deployment job is commented out: # deploy:
# needs: [build-image]
# uses: ./.github/workflows/_terraform-apply.ymlImpact: Docker images are built but never deployed, which could be confusing and wasteful of CI resources. Recommendation: Either remove the build-image job if deployment is disabled, or document why deployment is disabled and when it will be re-enabled. 4. Missing NPM_TOKEN in Release WorkflowLocation: #NPM_TOKEN: ${{ secrets.NPM_TOKEN }}Impact: If packages are configured to publish to GitHub Package Registry, the commented NPM_TOKEN may cause silent failures or unexpected behavior. Recommendation: Verify whether this token is needed for GitHub Package Registry publishing. If using
|
Code Review - PR #1: Deploy to demoThis is a large sync PR (331 files changed) merging changes from main to demo. I've focused my review on the most significant additions and changes. 🎯 Major Changes Identified
✅ Strengths1. GitHub Actions Workflows
2. Database Migration
3. CLI Commands
|
PR Review: Deploy to demo (Main → Demo Sync)OverviewThis is a large automated sync PR (336 files, +5388/-3491 lines) merging changes from main to demo. Given the scope, I've focused on the most significant additions and potential concerns. Key Additions & Observations✅ Positive Changes1. Documentation Improvements
2. GitHub Workflows for AI Integration
3. LLM Request Caching
4. CLI Enhancements
|
Pull Request ReviewThis is an automated sync PR from main to demo with 345 files changed. Here's my review focusing on the key changes: 🎯 Overall AssessmentStatus: ✅ APPROVED with minor recommendations This is a substantial sync containing infrastructure improvements, new documentation, workflow additions, and dependency updates. The changes are well-structured and follow project conventions. 🔍 Key Changes Reviewed1. GitHub Workflows (Security & Best Practices) ✅New Files:
Observations:
Recommendation: Consider adding a timeout to prevent runaway workflows: jobs:
claude-review:
timeout-minutes: 15 # Add this2. Documentation (CLAUDE.md, AGENTS.md, DOCS.md) ✅Excellent additions:
Strengths:
3. Infrastructure Changes (AWS/Terraform CDK)
|
| Issue | Severity | Location | Status |
|---|---|---|---|
| UUID-based password generation | HIGH | sandbox-stack.ts:156 |
|
| Overly permissive IAM policies | MEDIUM | sandbox-stack.ts:251,268 |
|
| Skip final snapshot enabled | MEDIUM | sandbox-stack.ts:201 |
|
| Database in public subnets | LOW | sandbox-stack.ts:178 |
ℹ️ Mitigated by publiclyAccessible:false |
🧪 Test Coverage
No test files found for new infrastructure code. Consider adding tests for:
sandbox-stack.ts- Infrastructure validation tests- Workflow files - Basic syntax validation
📋 Recommendations
Must Fix
- Replace UUID password generation with proper cryptographic password generation in
sandbox-stack.ts
Should Consider
- Add workflow timeouts to prevent resource exhaustion
- Apply least-privilege IAM policies
- Set
skipFinalSnapshot: falsefor persistent environments - Fix typo in CLI forms command description
- Add infrastructure unit tests
Nice to Have
- Consider dedicated private subnets for RDS
- Scope Bedrock IAM policy to specific models
✅ What's Working Well
- Comprehensive documentation strategy
- Proper GitHub Actions security configuration
- Clean CLI implementation with good separation of concerns
- Consistent code formatting and structure
- Up-to-date dependency versions
- Node version alignment across environments
🎬 Conclusion
This PR is safe to merge after addressing the HIGH severity password generation issue. The other recommendations are for hardening and best practices but don't block deployment.
Suggested Action: Fix the password generation in sandbox-stack.ts, then merge. Other improvements can be tracked in follow-up issues.
🤖 Review generated by Claude Code
Automated PR to sync changes from main to demo.