Derived metadata, and log entries colored by severity (#122)
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
A plugin's `derive` rules work out metadata from what a moment or duration already has (a tag's value, or a value at a path, through an optional map) for the other plugins to read, like middleware between the saved metadata and the plugins that draw it. A rule sets its key only where the entity has none, and derived values are never saved: they exist only as the timeline is drawn. Overviews carry what the rules read, so viewers see the same; duration bands now carry their tags. The official Log severity colors plugin uses it: every log format's severity (the severity: tag, or the format's own severity field, as for access logs) becomes the color Moment colors reads, and the plugin draws it itself too. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/6b2b53b3d2a2cebfa7a76900696df550ada3e890
Related
Open Derived metadata, and log entries colored by severity (#122) in the timeline