Skip to content

feat(web): content calendar view (per-account) - #245

Merged
ajianaz merged 1 commit into
developfrom
feat/241-content-calendar
Sep 2, 2026
Merged

feat(web): content calendar view (per-account)#245
ajianaz merged 1 commit into
developfrom
feat/241-content-calendar

Conversation

@ajianaz

@ajianaz ajianaz commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

What

  • New /admin/calendar page: weekly (Mon–Sun) and monthly grids, toggleable via Tabs.
  • Prev / Today / Next navigation; items placed by scheduled_at in the display timezone, bucketed per day and time-sorted.
  • Account filter (Select, "All accounts" default) — refetch on change.
  • Each item: time + caption snippet + StatusBadge variant by status; click opens the shared ScheduleDetail modal with approve/reject/delete HITL actions and in-place reload.
  • "Calendar" entry added to the admin nav (CalendarDays icon).
  • SSR-safe: anchor date is set client-only to avoid hydration mismatch; fetch window = visible grid ±1 day with a stale-response sequence guard.

Why

Closes #241 (split from #191). Schedules were only visible as a flat list; a calendar view makes review load and content gaps obvious at a glance, per account.

Testing

  • bun run build (SvelteKit) → exit 0, clean
  • bun run check → 0 errors in changed files (2 pre-existing errors in admin/media/+page.svelte exist on develop and are untouched by this PR)
  • Data layer reuses existing listSchedules({from, to, account_id}) / listAccounts() — no API changes


/** YYYY-MM-DD key in the display timezone (en-CA formats as ISO-like). */
function dayKey(d: Date): string {
return new Intl.DateTimeFormat('en-CA', {
</div>

<div class="form-group">
<label class="form-label" for="calendar-account">Account</label>
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

New /admin/calendar page: weekly and monthly grids with prev/today/next
navigation, per-account filter, items placed by scheduled_at in the display
timezone, status badges, and click-through to the shared ScheduleDetail
component (approve/reject/delete HITL actions with in-place reload).
Admin nav gains a Calendar entry. SSR-safe: anchor date set client-only,
fetches run through the same effect pattern as the schedules page.
@ajianaz
ajianaz force-pushed the feat/241-content-calendar branch from 8870eb0 to 52099fc Compare September 2, 2026 05:53
@ajianaz
ajianaz merged commit fe205b2 into develop Sep 2, 2026
12 checks passed
@ajianaz
ajianaz deleted the feat/241-content-calendar branch September 2, 2026 06:00
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.

feat(web): Content Calendar view (per-account weekly/monthly grid)

2 participants