Skip to content

Commit

Permalink
Merge pull request #85 from david-lev/flows-update-data
Browse files Browse the repository at this point in the history
Flows update data
  • Loading branch information
david-lev authored Nov 28, 2024
2 parents 687f6e3 + 2e8033b commit 98d840d
Show file tree
Hide file tree
Showing 9 changed files with 437 additions and 248 deletions.
36 changes: 18 additions & 18 deletions docs/source/content/examples/sign_up_flow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ Let's start from the ``START`` screen. This screen welcomes the user and allows
text="Click here to sign up",
on_click_action=Action(
name=FlowActionType.NAVIGATE,
next=ActionNext(
type=ActionNextType.SCREEN,
next=Next(
type=NextType.SCREEN,
name="SIGN_UP",
),
payload={
Expand All @@ -73,8 +73,8 @@ Let's start from the ``START`` screen. This screen welcomes the user and allows
text="Click here to login",
on_click_action=Action(
name=FlowActionType.NAVIGATE,
next=ActionNext(
type=ActionNextType.SCREEN,
next=Next(
type=NextType.SCREEN,
name="LOGIN",
),
payload={
Expand Down Expand Up @@ -132,8 +132,8 @@ The ``SIGN_UP`` screen allows the user to sign up (create an account). Let's tak
text="Already have an account?",
on_click_action=Action(
name=FlowActionType.NAVIGATE,
next=ActionNext(
type=ActionNextType.SCREEN,
next=Next(
type=NextType.SCREEN,
name="LOGIN",
),
payload={
Expand Down Expand Up @@ -283,8 +283,8 @@ Ok, now to the ``LOGIN`` screen. This screen allows the user to login to their e
text="Don't have an account?",
on_click_action=Action(
name=FlowActionType.NAVIGATE,
next=ActionNext(
type=ActionNextType.SCREEN,
next=Next(
type=NextType.SCREEN,
name="SIGN_UP",
),
payload={
Expand Down Expand Up @@ -451,8 +451,8 @@ Here is all the flow code in one place:
Footer,
Layout,
Action,
ActionNext,
ActionNextType,
Next,
NextType,
FlowActionType,
ComponentRef,
InputType,
Expand Down Expand Up @@ -485,8 +485,8 @@ Here is all the flow code in one place:
text="Click here to sign up",
on_click_action=Action(
name=FlowActionType.NAVIGATE,
next=ActionNext(
type=ActionNextType.SCREEN,
next=Next(
type=NextType.SCREEN,
name="SIGN_UP",
),
payload={
Expand All @@ -502,8 +502,8 @@ Here is all the flow code in one place:
text="Click here to login",
on_click_action=Action(
name=FlowActionType.NAVIGATE,
next=ActionNext(
type=ActionNextType.SCREEN,
next=Next(
type=NextType.SCREEN,
name="LOGIN",
),
payload={
Expand Down Expand Up @@ -534,8 +534,8 @@ Here is all the flow code in one place:
text="Already have an account?",
on_click_action=Action(
name=FlowActionType.NAVIGATE,
next=ActionNext(
type=ActionNextType.SCREEN,
next=Next(
type=NextType.SCREEN,
name="LOGIN",
),
payload={
Expand Down Expand Up @@ -622,8 +622,8 @@ Here is all the flow code in one place:
text="Don't have an account?",
on_click_action=Action(
name=FlowActionType.NAVIGATE,
next=ActionNext(
type=ActionNextType.SCREEN,
next=Next(
type=NextType.SCREEN,
name="SIGN_UP",
),
payload={
Expand Down
8 changes: 5 additions & 3 deletions docs/source/content/flows/flow_json.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ Here you will find all the components that make up a Flow JSON object.
.. autoclass:: Screen()

.. autoclass:: ScreenData()
:members: ref, ref_in
:members: ref, ref_in, update

.. autoclass:: ScreenDataUpdate()

.. autoclass:: Layout()

Expand Down Expand Up @@ -86,9 +88,9 @@ Here you will find all the components that make up a Flow JSON object.

.. autoclass:: OpenUrlAction()

.. autoclass:: ActionNext()
.. autoclass:: Next()

.. autoclass:: ActionNextType()
.. autoclass:: NextType()

.. autoclass:: ScreenDataRef()

Expand Down
Loading

0 comments on commit 98d840d

Please sign in to comment.