Dynamic forms #49

Closed
opened 2021-06-18 21:48:44 +02:00 by Sceptique · 0 comments
Owner

The process I think of is:

  • user load the page
  • user click on a button
  • JS catches the form event
    • it looks at the attribute "dynamic-call" which points to the api entrypoint
    • it sends the data
    • fetch the output, check if no error occured
    • IF NEEDED fetch a new HTML DOM partial based on the attribute "dynamic-partial"
    • update the DOM (based on the partial or the api output)

Implementation goal will be:

  • catches + and - events
  • submit API request instead
  • make sure the API returns the current count (a parameter to force it may be added)
  • on success update the amount
  • on failure shows a flash error
The process I think of is: * user load the page * user click on a button * JS catches the form event * it looks at the attribute "dynamic-call" which points to the api entrypoint * it sends the data * fetch the output, check if no error occured * IF NEEDED fetch a new HTML DOM partial based on the attribute "dynamic-partial" * update the DOM (based on the partial or the api output) Implementation goal will be: * catches + and - events * submit API request instead * make sure the API returns the current count (a parameter to force it may be added) * on success update the amount * on failure shows a flash error
Sceptique added the
feature
label 2021-06-18 21:48:44 +02:00
Sceptique self-assigned this 2021-06-18 21:48:44 +02:00
Sceptique added this to the Sprint (v2.0 closed) project 2021-06-18 21:48:45 +02:00
Sceptique added this to the v2.0 (Make the UX great -not again-) milestone 2021-06-18 21:57:34 +02:00
Sign in to join this conversation.
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Sceptique/LifePex#49
No description provided.