Commit graph

19 commits

Author SHA1 Message Date
Zach Daniel
73615bb455 fix: don't return tuple from valid_next_state 2024-08-31 17:08:51 -04:00
Zach Daniel
c540d50593 fix: support accepting the :state attribute
fixes #36
2024-06-11 13:54:18 -04:00
Zach Daniel
f6bb45134b chore: update docs and tests to account for better error handler logic 2024-05-03 14:11:16 -04:00
Zach Daniel
ede73a1287 test: add missing line in tests 2024-05-02 23:59:31 -04:00
Zach Daniel
eedf68ec4e improvement: policy for including state machine in can? checks 2024-05-01 10:28:53 -04:00
Zach Daniel
773478a766 chore: add primary reads 2024-04-25 22:25:10 -04:00
Zach Daniel
8bec910e5e chore: format & credo 2024-03-29 18:22:57 -04:00
Zach Daniel
9129f4ceee improvement: update to Ash 3.0 2024-03-29 18:01:07 -04:00
James Harton
5cba78616c
improvement: Add possible_next_states helper. (#9)
* improvement: Add `possible_next_states` helper.

* chore: add `mix spark.cheat_sheets`.
2023-09-15 15:15:29 +12:00
Zach Daniel
fa109180e4 fix: scrub :* from the list of states
improvement: detect states used that don't exist and log an error
2023-09-12 08:40:18 -04:00
James Harton
cf2bef0e38
feat: Add next_state builtin change. (#6)
When there is only a single possible next state that can be transitioned into, we can automatically transition into that state.
2023-09-08 13:35:51 +12:00
Yousef Janajri
4f1b40281d
improvement: exclude star from state_machine_all_states/1 to avoid inclusion in add_attribuet builder (#4) 2023-08-25 09:37:45 -04:00
Zach Daniel
bd66b9236f improvement: make state diagrams the default chart
docs: docs improvements
2023-04-23 00:58:34 -06:00
Zach Daniel
bd0d8be69b chore: add docs/release config 2023-04-22 19:38:33 -06:00
Zach Daniel
e032cbbb5e improvement: require initial_states 2023-04-22 18:39:29 -06:00
Zach Daniel
885fd2c79b improvement: flow chart generation 2023-04-22 16:50:23 -06:00
Zach Daniel
06871a9977 chore: fsm -> state_machine, event -> transition 2023-04-21 22:33:28 -06:00
Zach Daniel
746ea32504 initial feature set 2023-04-21 13:25:39 -06:00
Zach Daniel
95a75b542a init 2023-04-21 11:43:36 -06:00