π¨ Step 4: UX Mode
Days 4-5 of your journey
You know what to build and how to build it. Now it's time to design how it looks and feels. UX mode helps you plan your user interface and user flows before you write a single line of code.
Purposeβ
In UX mode, OneMillion Code acts as a product designer. It will:
- Help you sketch out wireframes and layouts
- Design user flows (what happens when a user clicks X?)
- Plan responsive layouts for mobile and desktop
- Guide you through component design decisions
When to Use This Modeβ
Use UX mode when:
- You've finished planning and are ready to design the interface
- You want to map out how users will navigate your app
- You need help deciding on layout and component structure
- You want to plan responsive design before coding
Available Toolsβ
| Tool | Purpose |
|---|---|
read | Review your spec and plan docs |
edit | Create wireframe descriptions and design docs |
browser | Research design patterns and UI inspiration |
Example Promptsβ
Wireframingβ
Based on my spec, help me wireframe the main screen
of my water reminder app. What should the user see first?
Component Designβ
What components do I need for a settings page?
List them out with what each one does.
User Flow Mappingβ
Walk me through the user flow from opening the app
to setting their first reminder. What screens do they see?
Responsive Layout Planningβ
How should my app layout change between mobile and desktop?
What should stack vs. sit side-by-side?
Design Decisionsβ
Should I use a sidebar or a bottom navigation?
My app has 3 main sections.
The UX Processβ
1. Map Your Screensβ
List every screen your user will see:
Main screens for Water Reminder:
- Home (counter + quick log button)
- History (daily/weekly view)
- Settings (reminder interval, goals)
- Onboarding (first-time setup)
2. Design User Flowsβ
For each key action, map the steps:
Setting a reminder:
Home β Settings β Choose interval β Confirm β Back to Home
3. Wireframe Key Screensβ
Describe what goes where on each screen:
Home Screen:
βββββββββββββββββββ
β Water Today β
β π§ β
β 5 / 8 β
β β
β [+ Log Water] β
β β
β Next reminder β
β in 25 min β
βββββββββββββββββββ
4. Plan Componentsβ
Break screens into reusable pieces:
Components needed:
- WaterCounter (shows current/goal)
- LogButton (big tap target)
- ReminderTimer (countdown)
- HistoryChart (daily bars)
5. Consider Responsive Layoutβ
Think about how layouts adapt:
Mobile: Single column, stacked
Tablet: Two columns where it makes sense
Desktop: Sidebar + main content area
What OneMillion Code Will Doβ
When you ask OneMillion Code about UX, it will:
- Review your spec β Understand what features need UI
- Suggest layouts β Propose screen arrangements
- Map flows β Show how users move between screens
- Identify components β Break the UI into buildable pieces
- Consider edge cases β Empty states, loading, errors
Key Concepts for Beginnersβ
Wireframesβ
A wireframe is a simple sketch of a screen. No colors, no fancy graphicsβjust boxes and text showing where things go. Think of it as a blueprint.
User Flowβ
A user flow is the path a user takes to accomplish a task. Like directions on a map: "Start here, click this, see that, done."
Componentsβ
A component is a reusable piece of your interface. A button is a component. A navigation bar is a component. You build big screens out of small components.
Responsive Designβ
Responsive design means your app looks good on any screen sizeβphone, tablet, or desktop. Elements rearrange and resize to fit.
Common Mistakesβ
Mistake 1: Skipping UX and Jumping to Codeβ
Problem: You start coding without knowing what you're building visually. Fix: Spend an hour in UX mode. It saves days of rewriting later.
Mistake 2: Overdesigningβ
Problem: Spending too long making pixel-perfect wireframes. Fix: Keep it rough. You just need enough to know what to build.
Mistake 3: Forgetting Mobileβ
Problem: Designing only for desktop, then mobile looks broken. Fix: Design mobile-first. It's easier to expand than to shrink.
Mistake 4: Ignoring Empty Statesβ
Problem: What does the app look like before the user has any data? Fix: Design the "first use" experience. It's the first impression.
Progress Checkpointsβ
- All screens identified and listed
- Key user flows mapped out
- Main screens wireframed (rough is fine)
- Components identified
- Mobile layout considered
- Empty states planned
When to Move Onβ
You're ready for π» Build mode when:
- β You know what every screen looks like (roughly)
- β You know how users move between screens
- β You've identified the components you need
- β You have a plan for mobile vs. desktop layout
Switching to Build Modeβ
When you're ready, switch to Build mode:
Slash command: /build
Or say: "I know what the UI looks like. Let's start building it."
A walkthrough video for UX mode is in production. Check back soon or join our Discord for updates.