[Node activity] Collect all node watches (events) on a dashboard
Create a new node type: Node Activity (or Node Story) to save histories (error logs to debug, like API calls, corpus generation, etc.)
Behaviour:
- The "node activity" feature will store the event history of child nodes
- Have to be one default node story per user per instance
- Access and permissions:
- the gargantua user (admin) can see the Node Story of other users on the Gargantext instance
- TO BE DEFINED: asking consent to the user to save and display logs
- Storage: in database, table nodes (using jsonb)
- Event infos:
- author
- date
- node id/name
- event name / action / status / anything useful
Notes for development
Typeclass NodeType Watch:
watch :: NodeType -> Watch
data Watch = WatchNumber | WatchText
Alert management in the frontend:
- visual icons (e.g. on node corpus, cron that restarts API calls, then notifies and modifies the icon icon with an update)