Page MenuHomePhabricator

MOBILE FUNCTION EDITOR: footer buttons
Closed, DeclinedPublic

Description

When in mobile, there should be two buttons at the bottom of the page:

  1. DONE
  2. gray state when the button is invalid (see desktop version for validity parameters)
  3. normal state when the button is valid
  4. on click: confirmation dialog (see T306265) and
    • if "DONE" selected, go to to view function
    • if "CANCEL" selected, close dialog
  1. Implement function
  2. gray state when the button is invalid (same validity parameters as done)
  3. primary state when the button is valid
  4. on click: confirmation dialog (see T306265) and
    • if "DONE" selected, go to implementation page (NOTE: there are no mobile mocks for implementation page yet)
    • if "CANCEL" selected, close dialog

figma link: https://www.figma.com/file/z4PDWdNVvwEtRMMozW8Fvi/Function-editor?node-id=1686%3A7760

Event Timeline

I want to run through this quickly with @aminalhazwani before implementing - will do that next week when he returns from vacation.

MShilova_WMF changed the task status from Open to Stalled.Aug 22 2022, 3:15 PM
gengh changed the task status from Stalled to Open.Sep 6 2022, 2:26 PM

Chatted with Amin and we concluded that having a different workflow between desktop and mobile for submitting an edit to a function doesn't quite make sense here. Particularly,

  1. We don't need to have different copy between desktop and mobile versions ("Done" vs. "Implement function")
  2. Having two different flows (pop-up on cancel vs. pop-up on save) could be confusing for users
  3. Having different redirections (back to the function page vs. to creating a new implementation) could be confusing for users.

Given that, I'd propose we mark this ticket as declined/invalid.

+1 to marking this as declined/invalid.