summaryrefslogtreecommitdiff
path: root/src/fsm.go
AgeCommit message (Collapse)Author
2022-04-22Refactor: Restructure projectjwijenbergh
- Add an internal folder where all the internal code lives - Make a state.go and state_test.go for the public interface This gives a more clear separation between functions and modules. It also makes this a more typical Go project setup.
2022-04-22FSM: Make data for transitions optionaljwijenbergh
2022-04-20Refactor: Eliminate most uses of pointers in structsjwijenbergh
2022-04-20FSM: Check if the FSM is defined for transitions and state checksjwijenbergh
2022-04-20Profiles: Implement SetProfileID instead of getting generic datajwijenbergh
2022-04-20FSM: More states and fix graph orderjwijenbergh
2022-04-19Profiles: Implement basic functionality for sending a profile_idJeroen Wijenbergh
2022-04-19OAuth improvements: Also ensure tokens based on config stateJeroen Wijenbergh
2022-04-14FSM graph generation: Add generation using mermaid as defaultjwijenbergh
Dot from graphviz kept re-ordering (e.g. flipping edges) which is annoying when showing the graph live
2022-04-14FSM Transitions: Add descriptionsjwijenbergh
2022-04-14Simplify FSM by removing hierarchyjwijenbergh
2022-04-07FSM: Different color for non-activated current states and a legendjwijenbergh
2022-04-05OAuth: Comment failing test for nowjwijenbergh
We need to uncomment this again when we find a proper fix. The problem is that our FSM only allows OAuth changes when we're not authenticated. When we're already authenticated and we want to completely re-do the oauth process, this is not possible. While we could go back to the not authenticated phase, this means that we're also leaving the connected phase. Decouple authentication and connection?
2022-04-05Remove duplicate graph writing codejwijenbergh
2022-04-05Add debug variable to save a live fsm graphjwijenbergh
2022-03-31Initial approach to creating a fsm with states and substatesjwijenbergh