Skip to content
TheChatArchiveThe Chat Archive
gpt-5.5-high-webdev· OpenAIHugging Face Arena WebDev Preferences (2026)

Build a production-quality single-page web app called “PTIT Study Planner”. Goal: Help a…

  1. User

    Build a production-quality single-page web app called “PTIT Study Planner”.

    Goal: Help a university student plan courses for one semester and detect schedule conflicts.

    Requirements:

    1. Use React + TypeScript.
    2. Create at least 12 realistic sample courses. Each course must include:
      • Course code
      • Course name
      • Number of credits
      • Lecturer
      • Day of week
      • Start and end time
      • Room
      • Category
    3. The user must be able to:
      • Search courses by name or code
      • Filter by day and category
      • Sort by course name, credits, or start time
      • Add and remove courses from a selected schedule
    4. Detect schedule conflicts correctly:
      • Courses conflict only when they occur on the same day
      • Time ranges overlap
      • Back-to-back courses such as 09:00–10:00 and 10:00–11:00 must NOT be considered conflicting
    5. Display:
      • Total selected credits
      • Number of selected courses
      • A clear weekly timetable
      • Conflict warnings that identify exactly which courses conflict
    6. Add a maximum-credit setting. Default is 24 credits.
      • Warn the user when the selected schedule exceeds the limit
      • Do not automatically remove courses
    7. Make the interface fully responsive:
      • Desktop layout
      • Mobile layout at approximately 390px width
    8. Include dark mode and light mode.
    9. Persist the selected courses and theme using localStorage.
    10. Do not use a backend, external API, or fake buttons.
    11. Every visible button and control must work.
    12. Use accessible labels, keyboard-friendly controls, and readable contrast.
    13. Before finishing:
    • Review the app for logic errors
    • Test the conflict detection with at least five edge cases
    • Fix any issue found
    1. Do not merely explain the solution. Build the working app.
  2. Assistant

    Implemented the production-quality single-page “PTIT Study Planner” app.

    Files updated:

    • src/App.tsx: Full React + TypeScript planner with sample courses, filters, sorting, selected schedule, timetable, conflict detection, credit warnings, dark mode, and localStorage persistence.
    • src/index.css: Tailwind dark-mode variant, responsive base styles, and subtle motion keyframes.
    • index.html: Updated browser title to “PTIT Study Planner”.

    Verified:

    • npm run build completed successfully via build_project.
    • Conflict detection uses strict overlap logic, so back-to-back courses like 09:00-10:00 and 10:00-11:00 are not conflicts.
    • Added a built-in conflict self-test covering at least five edge cases: overlap, back-to-back, different-day same-time, contained ranges, shared start time, and multi-pair overlap chains.
    • No backend, external API, or fake controls were added.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.