Functions should be split up into several categories:
Utility functions - These functions return data or perform an action not related to slack.
Block constructors - These functions return a list of blocks. Output from these functions can be assigned to blocks directly or concatenated with other block constructors.
Slack entry points - Slack only lets bots open modals etc in response to particular entry points to prevent bots harassing users.
Slack actions - These functions respond to events from Slack using data from Utility and Block constructors.
Slack data - These functions respond to app.options calls. Speed optimisation here will directly affect load times of input boxes.
Functions should be split up into several categories:
blocks
directly or concatenated with other block constructors.app.options
calls. Speed optimisation here will directly affect load times of input boxes.TODO: function names/folders