Skip to content

πŸš€ Release: beta β†’ master#56

Closed
rajashish147 wants to merge 6 commits into
masterfrom
beta
Closed

πŸš€ Release: beta β†’ master#56
rajashish147 wants to merge 6 commits into
masterfrom
beta

Conversation

@rajashish147
Copy link
Copy Markdown
Collaborator

@rajashish147 rajashish147 commented Mar 29, 2026

πŸš€ Automated Release PR

This PR contains all changes from beta to master.


πŸ“¦ Latest Changes

  • chore: regenerate package-lock.json for single-package setup
  • refactor: flatten repo structure (apps/api β†’ root, preserve history)
  • refactor(ci): fix TypeScript check and modernize workflow naming
  • refactor(ci): eliminate .env.ci β€” move all vars to GHA env block
  • chore: codebase audit cleanup and env contract hardening
  • feat: implement snapshot tables and worker for optimized metrics retrieval
  • Auto-managed PR
  • Do not edit manually

…ieval

- Added snapshot tables: employee_last_state, pending_expenses, employee_metrics_snapshot, and active_users to improve read performance.
- Created a snapshot worker to handle updates to these tables based on attendance and expense events.
- Updated profile service to utilize snapshot data for faster response times.
- Introduced a BullMQ queue for managing snapshot jobs, ensuring idempotency and efficient processing.
- Implemented rollback SQL for safely reverting the snapshot migration if necessary.
- Delete dead code: dedup.ts (never imported), errors.txt dump
- Delete dead config: .env.monitoring.ci (never used in CI), apps/web/.env.example
- Delete stale runbooks: cert-renewal-failure, container-crash, deploy-failure, monitoring-failure
- Fix deploy.yml: fieldtrack.conf -> api.conf (critical nginx sync bug)
- Add env.ts guard comment block (schema change checklist for all 4 sync targets)
- Add process.env contract guard to pr.yml and deploy.yml (CI gate)
- Add chmod 600 for .env.monitoring in deploy-bluegreen.sh (defense-in-depth)
- Update .gitignore: remove stale .env.monitoring.ci whitelist entry
- Clarify SUPABASE_JWT_SECRET as test-only in .env.example
- Fix env.ts: APP_ENV valid values comment, superRefine rule numbering
- All 501 tests pass (270 unit + 231 integration), tsc --noEmit clean
@rajashish147 rajashish147 disabled auto-merge April 2, 2026 18:31
@fieldtrack-tech fieldtrack-tech deleted a comment from vercel Bot Apr 2, 2026
- Delete apps/api/.env.ci (file-based env loading in CI eliminated)
- Move all 24 non-secret CI defaults into backend-ci job env: block in pr.yml
- Replace docker run --env-file with individual -e VAR flags (Docker
  inherits values from GHA runner env set by job env: block)
- Supabase secrets stay as GitHub Secrets, consolidated in same env: block
- Remove !.env.ci whitelist from .gitignore
- Update env.ts guard comment: .env.ci -> .github/workflows/pr.yml

Env architecture is now:
  Runtime     β†’ process.env only (unchanged)
  CI/CD       β†’ GitHub Secrets + GHA env: block only
  Dev/docs    β†’ apps/api/.env.example only
@rajashish147 rajashish147 enabled auto-merge (squash) April 2, 2026 18:34
- Replace npx tsc with npm run typecheck: Fixes 'This is not the tsc command you are looking for' error by using locally installed TypeScript via npm scripts instead of npx fallback
- Add working-directory: apps/api to typecheck step for proper path resolution
- Rename backend β†’ api throughout: Reflects backend-only monorepo (no frontend)
  - detect-changes outputs: backend β†’ api
  - job name: backend-ci β†’ api-ci
  - job display name: Backend CI β†’ API CI
  - all conditional checks: needs.detect-changes.outputs.backend β†’ api
- Consolidate test steps: Unit + Integration tests run together via npm test (vitest run)
- Result: Simpler, cleaner, deterministic CI pipeline with zero npx issues
- git mv apps/api/* to repo root (preserves file history via renames)
- Inline packages/types/src/index.ts β†’ src/types/shared.ts
- Remove @fieldtrack/types workspace dependency; update 11 source imports to relative paths (../../types/shared.js)
- Remove composite tsconfig, declarationMap, and project references
- Rewrite Dockerfile for single-package build (no workspace layers)
- Update .dockerignore for flat structure
- Fix all CI/CD workflows: remove apps/api/, packages/, npx usage, workspace commands
- Remove packages/ directory (config and types)
auto-merge was automatically disabled April 2, 2026 19:26

Pull request was closed

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