You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- add dash icon in "Render navigation menu" for forms with all fields filled with `0`
- add blue circle icon in "Render navigation menu" for forms that some field(s) filled in, but nothing submitted
## Questions
- Where does "cache input" happen in these flows?
- Is there a different warning icon for accepted versus not-accepted warnings? Or is it not possible to leave a page without accepting the warning? Also, accepting warnings is not yet included in any of the flows.
The reason will be displayed to describe this comment to others. Learn more.
@jschuurk-kr attempt to make your diagram for the navigation menu a bit simpler. I think it's just these 6 statements, that should be evaluated for each menu item. Wouldn't that be easier then your flowchart? I ignored the 'illegal state', because I think that should be something you evaluate before even attempting to render the menu.
State of a menu-item:
Evaluate these top to bottom. The first one that evaluates to true is the state of the menu item
index of menu-item > furthers page user has seen: disabled (no icon, no link)
index of menu-item == current: current (arrow icon, bold, no link)
index of menu-item == furthes: 'unsubmitted' (blue dot)
page contains errors: error: error icon
page contains warnings and warnings have been accepted: warning: warning icon
The reason will be displayed to describe this comment to others. Learn more.
@jorisleker You're right that it can and should be simpler. Thanks!
I still prefer the flowchart. Some of that is personal preference, but by making a new one based on your description I realized the case "submitted data is not empty and valid" was missing from your description.
So I added that case to your description and put both your description and the new flowchart in a new commit. There are some interesting differences in choice of words between the two us, related to how this would be implemented. I think there's two options: maken it high-level enough to be independent from the implementation or update the doc after implementation.
Am curious what other people's preferences are about description vs flowchart. The flowchart is definitely linear enough that you don't lose much compared to a description.
The reason will be displayed to describe this comment to others. Learn more.
Yeah I missed the most obvious case, nice catch.
No preference for text/diagrams. Diagrams are a lot easier to comprehend when logic isn't lineair. But harder to maintain (if you use the github web interface).
02a1e6b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jschuurk-kr attempt to make your diagram for the navigation menu a bit simpler. I think it's just these 6 statements, that should be evaluated for each menu item. Wouldn't that be easier then your flowchart? I ignored the 'illegal state', because I think that should be something you evaluate before even attempting to render the menu.
State of a menu-item:
Evaluate these top to bottom. The first one that evaluates to true is the state of the menu item
disabled
(no icon, no link)current
(arrow icon, bold, no link)error
: error iconwarning
: warning iconempty
: dash icon02a1e6b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jorisleker You're right that it can and should be simpler. Thanks!
I still prefer the flowchart. Some of that is personal preference, but by making a new one based on your description I realized the case "submitted data is not empty and valid" was missing from your description.
So I added that case to your description and put both your description and the new flowchart in a new commit. There are some interesting differences in choice of words between the two us, related to how this would be implemented. I think there's two options: maken it high-level enough to be independent from the implementation or update the doc after implementation.
Am curious what other people's preferences are about description vs flowchart. The flowchart is definitely linear enough that you don't lose much compared to a description.
02a1e6b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I missed the most obvious case, nice catch.
No preference for text/diagrams. Diagrams are a lot easier to comprehend when logic isn't lineair. But harder to maintain (if you use the github web interface).
02a1e6b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
teamwork! 💪 🙂