[X] I have searched for any related issues and avoided creating a duplicate issue.
Have you read our code of conduct?
[X] I have read and agree to the code of conduct
Feature as a user story
I recently released an update to the slack-block-builder library that includes helper functions for inline conditionals, which can be helpful in a few places here, for example:
It gets rid of the if, the duplicated copy, and keeps the view's code similar to the view itself. There are a few other similar places.
Another idea was to include partials, which was something we touched on during the talk around Tasks App at Frontiers:
Currently the navigation for the App Home is duplicated, they only differ in which button is primary. Could move those to a function that accepts a isOpenTasks: boolean parameter and returns the navigation with the correct button highlighted.
There is a general UI for empty task lists, that could be moved to a function that accepts a title and message.
I wonder if the open tasks checklist generation may also be moved to a partial to reduce the cognitive complexity of the view, where it could essentially be:
Is there an existing request for this?
Have you read our code of conduct?
Feature as a user story
I recently released an update to the slack-block-builder library that includes helper functions for inline conditionals, which can be helpful in a few places here, for example:
This can easily become the following:
It gets rid of the if, the duplicated copy, and keeps the view's code similar to the view itself. There are a few other similar places.
Another idea was to include partials, which was something we touched on during the talk around Tasks App at Frontiers:
isOpenTasks: boolean
parameter and returns the navigation with the correct button highlighted.title
andmessage
.Let me know what you think – happy to send over a PR!