Skip to content

Review only, do not merge: business hours final head (#120) - #125

Closed
pietervw wants to merge 7 commits into
mainfrom
claude/project-thread-2qdnr8-review
Closed

pietervw wants to merge 7 commits into
mainfrom
claude/project-thread-2qdnr8-review

Conversation

@pietervw

Copy link
Copy Markdown
Collaborator

Review only. Do not merge.

#120 reached OpenCode's 3-round auto-review cap. This PR carries the same head commit (6314433) so OpenCode can review the final code of #120. It will be closed once the review is in; #120 is the PR that merges.


Generated by Claude Code

Each member sets weekly hours in their own time zone (Settings > Business
hours). The Workspace availability gains Auto: every Product's widget is
Live while at least one member is inside their hours and Away otherwise.
Live and Away stay manual overrides; existing Workspaces keep theirs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016HiQRzMW7y1XUBDbZvyNhT
…option (BH2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016HiQRzMW7y1XUBDbZvyNhT
…-2qdnr8

# Conflicts:
#	prisma/schema.prisma
#	src/app/(app)/(page)/settings/settings-nav.tsx
…2 Resolved

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016HiQRzMW7y1XUBDbZvyNhT
…nessHours)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016HiQRzMW7y1XUBDbZvyNhT
Node's and the browser's tzdata can differ, so the server now renders only
the selected zone and UTC; the browser's full list arrives through
useSyncExternalStore after hydration, avoiding a mismatch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016HiQRzMW7y1XUBDbZvyNhT
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2c1814b2-9050-4291-bf02-2c5b7da157db
Commits

Reviewing files that changed from the base of the PR and between 7fb549c and 6314433.

Files selected for processing: 24

  • docs/FRD.md
  • docs/database-load.md
  • docs/design/app-shell.md
  • docs/open-questions.md
  • docs/openapi-draft.json
  • prisma/migrations/20261122090000_business_hours/migration.sql
  • prisma/schema.prisma
  • src/app/(app)/(page)/settings/hours/actions.ts
  • src/app/(app)/(page)/settings/hours/business-hours-form.tsx
  • src/app/(app)/(page)/settings/hours/page.tsx
  • src/app/(app)/(page)/settings/settings-nav.tsx
  • src/app/(app)/actions.ts
  • src/app/(app)/shell-data.tsx
  • src/components/layout/__tests__/availability-control.test.tsx
  • src/components/layout/app-shell.tsx
  • src/components/layout/availability-control.tsx
  • src/components/layout/header.tsx
  • src/lib/__tests__/business-hours.test.ts
  • src/lib/__tests__/db-load-caches.test.ts
  • src/lib/availability.ts
  • src/lib/business-hours.ts
  • src/lib/product-lookup-cache.ts
  • src/lib/widget.ts
  • src/lib/workspace.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@github-actions

Copy link
Copy Markdown

OpenCode review

Commit 6314433 · model zai-coding-plan/glm-5.3 · review round 1 of 3 · workflow run

No issues found. This PR adds per-member business hours (Prisma columns, a /settings/hours page with a hydration-safe form, pure scheduling helpers) and a third AUTO availability mode that the widget resolves per request against cached member hours; docs, the OpenAPI draft and tests are updated coherently. The core logic (overnight intervals, all-day, DST, validation, cache invalidation, admin-only AUTO, cross-workspace refusal) is well tested and tenant-scoped, and I could not validate any defect after tracing every candidate through the surrounding code.

No findings above the confidence bar.

Not verified
  • Runtime behavior: as a read-only reviewer I could not run npm run verify:fast, the build, or the Playwright E2E suites
  • Browser-rendering behavior of the business-hours form (hydration transition of the time-zone list, Switch/fieldset disabled states) was assessed by code reading only
  • Actual Node ICU tzdata vs browser tzdata differences at runtime (e.g. a browser zone rejected by the server) could not be exercised

Automated, advisory review. It does not approve, block, or change this PR, and it is refreshed on every push.

@pietervw pietervw closed this Nov 22, 2026
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.

2 participants