Skip to content

Repository files navigation

◷ Preact Content Release Planner

A multichannel release calendar with readiness tracking, recurrence, schedule collision detection, rescheduling, and coordination notes.

Preact TypeScript Tailwind CSS RRule Vite

Deploy with Vercel


✨ Highlights

  • Calendar and List Views: Switches between a monthly planning board and a chronological release queue.
  • Channel Filters: Isolates web, email, mobile, and social work with distinct visual treatment.
  • Recurring Releases: Expands RRule schedules into visible-month occurrences without duplicating source records.
  • Collision Detection: Warns when releases on the same channel overlap by date, time, and duration.
  • Readiness Tracking: Keeps status, checklist, owner, locales, and coordination notes beside the schedule.
  • Direct Rescheduling: Edits date, time, duration, and recurrence from the selected release panel.
  • New Release Flow: Creates validated local releases and immediately places them in calendar context.
  • Durable Planning State: Persists changes in IndexedDB and restores the original fixture on demand.
  • Desktop-Aware Layout: Preserves a complete calendar on wide screens and intentional horizontal scanning on mobile.

🧱 Project Structure

public/
|-- favicon.svg
`-- sample-releases.json
src/
|-- app.tsx
|-- index.css
|-- main.tsx
|-- components/
|   |-- calendar-board.tsx
|   `-- release-panel.tsx
|-- domain/
|   `-- releases.ts
`-- services/
    `-- release-store.ts

🛠️ Tech Stack

  • Preact 10, TypeScript 6, Vite 8, and Tailwind CSS 4
  • RRule, Zod, nanoid, Preact Signals, Lucide icons, and date-fns
  • IndexedDB persistence through idb-keyval

📦 Included Demo Data

public/sample-releases.json provides synthetic campaign releases across web, email, mobile, and social channels. The fixture includes multiple statuses, localization sets, readiness gaps, a recurring brief, ownership context, and a deliberate overlapping email slot.

🚀 Local Development

npm install
npm run dev

Open http://localhost:5173.

🔌 Extension Notes & Nuances

  • A collision means two releases on the same channel have overlapping duration intervals.
  • Recurring occurrences are calculated for the visible month without duplicating source records.
  • Dates are stored as ISO timestamps and edited through the user's local datetime control.
  • Persist an explicit organization timezone in production and distinguish wall-clock schedules from UTC instants.
  • Validate recurrence limits, daylight-saving transitions, channel lead times, and publishing windows on the backend.
  • Replace src/services/release-store.ts with a versioned scheduling API while retaining the release contract.
  • Add optimistic concurrency or record versions before several coordinators can reschedule the same release.
  • Treat collision warnings as planning assistance; channel providers and publishing jobs remain authoritative.
  • The calendar is desktop-oriented by nature; narrow screens receive deliberate horizontal calendar scrolling and a stacked detail panel.

🧪 Build & Checks

npm run format:check
npm run build
npm run preview
npm audit --omit=dev

🌐 Vercel Deployment

{
  "$schema": "https://openapi.vercel.sh/vercel.json",
  "framework": "vite",
  "buildCommand": "npm run build",
  "outputDirectory": "dist",
  "rewrites": [
    {
      "source": "/(.*)",
      "destination": "/index.html"
    }
  ]
}

📄 License

MIT License. See LICENSE.

Releases

Packages

Contributors

Languages