Open Bug 1917267 Opened 2 months ago Updated 7 days ago

[WebCompat Reporter] Implement the UI for the Android WebCompat Reporter

Categories

(Fenix :: General, task, P1)

All
Android
task

Tracking

(Not tracked)

People

(Reporter: titouan, Assigned: 007)

References

(Depends on 5 open bugs, Blocks 2 open bugs)

Details

(Whiteboard: [fxdroid][group4] )

Implement the UI provided on Figma

Depends on: 1871470
Depends on: 1917346

A redux layer will also be constructed for this feature

Assignee: tthibaud → nbond
Blocks: 1925090

Distilling all of the UI behavior from the Figma

Behavior of the url textfield:

  • The URL field is prepopulated.
  • Show an error and error icon when an invalid URl is entered

Behavior of "Send more info" link text button

  • Close the form and navigate to "www.webcompat.com"
  • Persist the currently-entered form data

Behavior of the cancel button:

  • Clears the form, clear the persisted data, and close the panel

Behavior of the optional description textfield:

  • Max 6 lines should be displayed.
  • As more text is entered and lines are added, the content above this textfield should scroll up

Behavior of the back button:

  • Closes the form but persists the currently-entered data.
  • Return to the webpage (with the menu closed).

Behavior of the "Send" button:

  • Perform the "send" action and show a Snackbar (both are handled in Bug 1925090).
  • Clears-out any persisted data.
  • Return to the webpage (with the menu closed).
  • The send should only be enabled when a valid URL is entered.

As part of this work we will need to:

  • Add the form data to AppState
  • Add a navigation middleware for handling navigation side effects and navigating away from the form to the webcompat site.

Data persistence

  • Hitting the back button or the "send more info" button should retain the currently-entered form data.
  • We only need to persist the data for one tab. If a user navigates to a new tab and opens the form, the form is reset.
  • Data is NOT persisted between app launches
Blocks: 1925099
Depends on: 1927885
Depends on: 1927892
Depends on: 1927893
Depends on: 1927894
Depends on: 1920539
No longer blocks: 1925090
You need to log in before you can comment on or make changes to this bug.