gpt-5.5-high-webdev· OpenAI
Arena WebDev Preferences (2026)
Build a production-quality single-page web app called “PTIT Study Planner”. Goal: Help a…
- 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:
- Use React + TypeScript.
- 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
- 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
- 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
- Display:
- Total selected credits
- Number of selected courses
- A clear weekly timetable
- Conflict warnings that identify exactly which courses conflict
- Add a maximum-credit setting. Default is 24 credits.
- Warn the user when the selected schedule exceeds the limit
- Do not automatically remove courses
- Make the interface fully responsive:
- Desktop layout
- Mobile layout at approximately 390px width
- Include dark mode and light mode.
- Persist the selected courses and theme using localStorage.
- Do not use a backend, external API, or fake buttons.
- Every visible button and control must work.
- Use accessible labels, keyboard-friendly controls, and readable contrast.
- Before finishing:
- Review the app for logic errors
- Test the conflict detection with at least five edge cases
- Fix any issue found
- Do not merely explain the solution. Build the working app.
- 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 buildcompleted successfully viabuild_project.- Conflict detection uses strict overlap logic, so back-to-back courses like
09:00-10:00and10:00-11:00are 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.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.