renew: stage 1 #25
Labels
No labels
bug
critical
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 1 hour 26 minutes
Due date
kir68k
1 hour 26 minutes
No due date set.
Reference
kir68k/lattice#25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Focus: Finishing the login flow
Notes
I'll want to write documentation later for how the program works since it's partly a learning exercise so far, however,
I can already lay out some stuff.
Messages
Messages are split between two categories, based on whether they influence the TUI actor; every possible message incoming to
Latticelives atapp::message, while any other kind of message lives in their respective actor module. (it's pretty much the same but currentlyappis its own folder/mod, whereas the "feature" actors are not, and all live as single files undersrc/actorxd)For example, with the login flow, it should go kinda like this:
LoginRequested(inapp::message) -> Lattice receives this from UI (ui events as messages explained in later stage)Login(insession.rs) -> SessionActor receives this from Lattice, like a forwarder.LoginOk/LoginFailed(inapp::message) -> Lattice receives from SessionActor.Or, more visually:
Note: I'm making these issues as to keep track with stuff, since this migration is kinda big and i forget details quickly.I also slept 4 hours today and know ill forget everything if i dont save it somewhere. I like the issue format for this purpose.
I wanna write more of them, helps split up the whole migration. The format should be like this one, with a "focus" describing in 1 line what is being done in the stage, and a summary + list if i already know changes (can be more than that, but i liek summaries and bullets!!).
oh also i will want SSO login support, i wanted that since day 1 even if i didn't use it back then. last week i was doing oidc related stuff, so i understand that a bit more too.
commenting now but will be its own issue or sth later
gonna work on this in a bit