Skip to content

test: lock homepage footer license copy#88

Draft
rohan-patnaik wants to merge 1 commit into
mainfrom
fix/footer-license-copy
Draft

test: lock homepage footer license copy#88
rohan-patnaik wants to merge 1 commit into
mainfrom
fix/footer-license-copy

Conversation

@rohan-patnaik
Copy link
Copy Markdown
Owner

@rohan-patnaik rohan-patnaik commented Mar 19, 2026

Summary

  • add a homepage regression test for the footer license label
  • keep the existing shared metadata-driven GPL footer copy locked in

Scope

  • homepage footer license regression coverage only

Acceptance Criteria

  • homepage footer renders
  • rendered homepage output does not contain

[email protected] env:check
node scripts/env-check.mjs

Environment validation passed for required variables.

Warnings:

  • RESET_DATABASE_URL is empty. Optional dedicated Neon URL for npm run db:reset:local. Use a disposable local-only branch/database.
  • DEMO_DAILY_ACCOUNT_LIMIT is empty. Optional integer daily cap for admitted demo accounts (default 15).
  • DEMO_DAILY_CREDIT_LIMIT is empty. Optional integer daily credit budget per admitted account (default 20).
  • WEBHOOK_SECRET_ENCRYPTION_KEY is empty. Optional dedicated encryption key for webhook signing secrets. Falls back to SESSION_SECRET when omitted.
  • TELEMETRY_HMAC_KEY is empty. Recommended dedicated secret for telemetry HMAC. If unset, email delivery telemetry writes are skipped.
  • SENTRY_DSN_API is empty. Recommended Sentry DSN for API exception capture. Required before GA on staging/production.
  • SENTRY_DSN_WEB is empty. Recommended Sentry DSN for web exception capture. Required before GA on staging/production.
  • SENTRY_ENVIRONMENT is empty. Recommended Sentry environment label such as staging or production.,

[email protected] lint
eslint . --ext .ts,.tsx,.js,.mjs,
[email protected] test
vitest run

RUN v3.2.4 /Users/rpatnaik/Desktop/Work/Code/open-calendly

✓ apps/web/src/lib/api-base-url.test.ts (5 tests) 27ms
✓ apps/api/src/lib/booking-actions.test.ts (9 tests) 15ms
✓ apps/api/src/lib/booking-caps.test.ts (5 tests) 15ms
✓ apps/api/src/lib/availability.test.ts (4 tests) 18ms
✓ apps/api/src/lib/team-scheduling.test.ts (5 tests) 17ms
✓ apps/api/src/lib/holidays.test.ts (3 tests) 15ms
✓ apps/api/src/lib/microsoft-events.test.ts (9 tests) 17ms
✓ packages/shared/src/schemas.test.ts (42 tests) 7ms
✓ apps/api/src/lib/booking.test.ts (7 tests) 20ms
✓ apps/web/next.config.test.ts (4 tests) 57ms
✓ apps/api/src/lib/analytics.test.ts (9 tests) 18ms
✓ apps/api/src/lib/calendar-sync.test.ts (9 tests) 20ms
✓ apps/web/src/lib/public-booking.test.ts (7 tests) 13ms
✓ apps/api/src/lib/notification-workflows.test.ts (7 tests) 3ms
✓ apps/api/src/lib/calendar-writeback.test.ts (7 tests) 5ms
✓ apps/web/src/lib/demo-quota.test.ts (4 tests) 5ms
✓ apps/api/src/lib/webhooks.test.ts (7 tests) 5ms
✓ apps/api/src/lib/release-readiness.test.ts (6 tests | 1 skipped) 20ms
✓ apps/web/src/app/page.test.tsx (1 test) 8ms
✓ apps/web/security-headers.test.ts (8 tests) 3ms
✓ apps/api/src/lib/calendar-crypto.test.ts (2 tests) 2ms
✓ apps/api/src/lib/demo-credits.test.ts (13 tests) 3ms
✓ apps/api/src/lib/dev-auth.test.ts (7 tests) 4ms
✓ apps/web/src/app/marketing-routes.test.ts (3 tests) 3ms
✓ apps/api/src/lib/cors.test.ts (5 tests) 2ms
✓ apps/api/src/server/env.test.ts (4 tests) 2ms
✓ apps/api/src/server/webhook-deliveries.test.ts (2 tests) 6ms
✓ apps/api/src/lib/rate-limit.test.ts (6 tests) 3ms
✓ apps/api/src/lib/clerk-auth.test.ts (6 tests) 2ms
✓ apps/web/src/lib/auth-session.test.ts (6 tests) 2ms
✓ apps/web/src/lib/clerk-session-bridge.test.ts (6 tests) 2ms
✓ apps/api/src/lib/calendar-oauth-state.test.ts (4 tests) 2ms
✓ apps/web/src/app/organizer/page-state.test.ts (5 tests) 2ms
✓ apps/api/src/server/webhook-secret-storage.test.ts (4 tests) 3ms
✓ apps/web/src/lib/booking-outcome.test.ts (5 tests) 2ms
✓ apps/api/src/server/security-headers.test.ts (1 test) 1ms
✓ apps/api/src/lib/complexity-check.test.ts (2 tests) 2ms
✓ packages/db/src/client.test.ts (2 tests) 2ms
✓ apps/web/src/features/booking/components.test.tsx (1 test) 2ms
✓ apps/api/src/server/auth-session.test.ts (3 tests) 2ms
✓ apps/web/src/app/hero-art-carousel.test.tsx (3 tests) 20ms
✓ apps/web/src/components/globe-canvas.test.tsx (2 tests) 19ms

Test Files 42 passed (42)
Tests 249 passed | 1 skipped (250)
Start at 18:56:10
Duration 1.55s (transform 916ms, setup 0ms, collect 3.71s, tests 397ms, environment 499ms, prepare 2.59s),

[email protected] typecheck
npm run typecheck --workspaces --if-present

@opencalendly/[email protected] typecheck
tsc --project tsconfig.json --noEmit

@opencalendly/[email protected] typecheck
tsc --project tsconfig.json --noEmit

@opencalendly/[email protected] typecheck
tsc --project tsconfig.json --noEmit

@opencalendly/[email protected] typecheck
tsc --project tsconfig.json --noEmit, and pass

Docs

  • Updated

Summary by CodeRabbit

  • Tests

    • Added regression test for the homepage footer to verify it displays the correct open source license label and excludes conflicting license text.
  • Documentation

    • Added backlog entry documenting the requirement for consistent license labeling on the homepage footer, including validation criteria.

@github-actions
Copy link
Copy Markdown

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 19, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d920abe5-1f3c-495e-9a5f-5211670b270e

📥 Commits

Reviewing files that changed from the base of the PR and between ec32c3d and ed05b9b.

📒 Files selected for processing (2)
  • apps/web/src/app/page.test.tsx
  • docs/BACKLOG.md

📝 Walkthrough

Walkthrough

New Vitest test file validates that the homepage footer displays the correct GPL-3.0-only license label and excludes MIT License references. Corresponding backlog entry documents this requirement with acceptance criteria and validation checklist.

Changes

Cohort / File(s) Summary
Homepage License Test & Documentation
apps/web/src/app/page.test.tsx, docs/BACKLOG.md
Added regression test asserting homepage footer renders "Open source · GPL-3.0-only" and excludes "MIT License". Test mocks next/link and local components. Backlog entry (Feature 77) documents the requirement and validation steps.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Poem

🐰 Hop, hop! The footer now stands tall,
GPL-3.0, no MIT's call!
Tests ensure the truth rings clear,
License fixed, no worries here! 🏷️

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the primary change: adding a test to lock/protect the homepage footer license copy.
Description check ✅ Passed The description covers main sections (Summary, Scope, Acceptance Criteria) and includes CI output evidence of passed validations, but Acceptance Criteria text appears incomplete and lacks explicit checklist confirmations for most validation steps.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/footer-license-copy
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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