Structuring of Actions in the Store
Structure
All actions within the Untracked Map Store slice are organized under a shared actions
namespace.
Layer-specific actions are grouped inside the layers
namespace, with each layer having its own sub-namespace (for example, plant
for the Planting Layer).
Actions that are not tied to a particular layer are placed after the layers
namespace, grouped under a namespace that reflects their feature (such as timeline
for Timeline-related actions).
Naming
Action names should clearly and concisely describe the effect of the action. Since the structure already indicates the relevant layer or feature, the action name itself should focus on what the action does. For example, actions.layers.plant.toggleShowLabel
specifically toggles the visibility of labels in the Plant Layer. Avoid redundant or overly verbose names. Instead, use verbs that directly express the intended change or operation.