This document details the requirements and user flows for the frontend implementation of Udra (Unbiased Dispute Resolution Assistant).
- User visits the Home Page.
- Views the dispute initiation form alongside the Udra mascot.
- Enters their perspective (from 10 to 2000 characters).
- Clicks the Send button.
- Observes a loading indicator during submission.
- Upon successful submission, the Summary Modal Dialog appears:
- User reviews and optionally edits the AI-generated summary.
- User copies or shares the summary and dispute link.
- User either navigates directly to the Dispute Page by clicking Go to Resolution or returns to the homepage by dismissing the modal.
- Partner receives and clicks the shared dispute link.
- Partner Response View is displayed:
- Partner reviews the context summary.
- Enters their perspective (from 10 to 2000 characters).
- Clicks the Submit button.
- Observes a loading indicator during processing.
- The Resolution View automatically appears upon successful submission.
- Initiator accesses the Dispute Page via the provided link:
- If the partner has not yet responded, the Initiator Waiting View appears.
- Initiator sees a clear status message indicating the waiting state.
- Optionally copies the dispute link or returns to the homepage.
- Both initiator and partner access the Dispute Page once the dispute is resolved:
- Resolution View is presented.
- Both perspectives are shown clearly side-by-side.
- Users review detailed resolution information.
- Users provide feedback via a star rating (1–5) and optional comments.
- Users can initiate a new discussion by clicking Start New Discussion, returning them to the homepage.
Warm, nature-inspired colors:
- Background:
#f6e9cf
(Light Beige/Papyrus) - Primary:
#7b9f97
(Sage Green/Pewter Green) - Secondary:
#b0d6cd
(Soft Mint/Aqua Haze) - Accent:
#b3aa99
(Warm Taupe/Nomad) - Text:
#4d4637
(Deep Warm Brown/Clinker)
- Main Text: Clean sans-serif font
- Headings: Slightly warmer sans-serif font
Minimalist, clean interface with generous white space and calming, nature-inspired visual elements.
Purpose: Facilitate initiation of disputes.
Visual Design:
- Minimalist interface prominently featuring the perspective input form.
- Udra mascot (mediator otter) centered prominently.
- Headline: "What's happening? Share your perspective."
- Large text area with a 2000-character limit and subtle character counter.
- Send button styled with primary color.
User Actions:
- Enter and submit perspective.
- Observe loading indicator.
- Automatically trigger Sharing Modal Dialog upon submission.
Purpose: Allow initiator to review, edit, and share the AI-generated summary.
Visual Design:
- Editable summary text field.
- Copy button with clear success indication.
- Mobile-friendly share button.
- Go to Resolution button to proceed directly to the dispute page.
User Actions:
- Edit summary text as needed.
- Copy or share the summary and dispute link.
- Close modal or navigate directly to dispute page.
Purpose: Display appropriate view based on dispute state and user role.
Requirements:
- Awaiting Partner Response:
- Partner sees Partner Response View.
- Initiator sees Initiator Waiting View.
- Resolved:
- Both parties see Resolution View.
Purpose: Collect partner's perspective.
Visual Design:
- Header: "Let's talk about {summary}"
- Large text area (2000-character limit).
- Submit button in primary color.
- Loading indicator during submission.
User Actions:
- Review summary context.
- Submit their perspective.
- Automatically proceed to Resolution View.
Purpose: Inform initiator of partner's pending response.
Visual Design:
- Clear, concise status message.
- Option to copy dispute link.
- Gentle animation indicating waiting status.
User Actions:
- Optionally copy the dispute link.
- Return to homepage.
Purpose: Present resolution clearly to both parties.
Visual Design:
- Side-by-side layout of both perspectives.
- Distinct resolution sections:
- Common Ground
- Different Perspectives
- Suggested Steps Forward
- Communication Strategies
- Simple star rating (1–5) and optional feedback comment box.
- Start New Discussion button.
User Actions:
- Review and compare perspectives.
- Provide feedback on resolution.
- Initiate a new discussion if desired.
- Real-time character counting.
- Inline error messaging.
- Prevent invalid submissions.
- Smooth animations signaling state changes.
- Clear success indicators.
- Subtle, non-intrusive error notifications.
- Easy dismissal methods (click outside, escape key).
- Appropriate focus management.
- Retained scroll position upon closure.
This document serves as guidance for frontend implementation and will evolve based on user feedback and development insights.