Use file mtime for design-spec last-activity #20

Merged
arne merged 1 commit from design-spec-mtime into main 2026-04-06 09:44:51 +02:00
Owner

Design specs in the Design stage always glowed sodium because designs.File had no modification time — the web handler passed Active: true unconditionally.

This adds a ModTime field to designs.File, populated from os.Stat in LocalSource and from the Forgejo contents API's last_modified field in ForgejoSource. The project handler now computes Active via isActive(f.ModTime), the same 7-day window rule used for every other flow item.

Closes #6

Design specs in the Design stage always glowed sodium because `designs.File` had no modification time — the web handler passed `Active: true` unconditionally. This adds a `ModTime` field to `designs.File`, populated from `os.Stat` in `LocalSource` and from the Forgejo contents API's `last_modified` field in `ForgejoSource`. The project handler now computes `Active` via `isActive(f.ModTime)`, the same 7-day window rule used for every other flow item. Closes #6
Closes #6

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
arne force-pushed design-spec-mtime from 99d1017933 to 92667fc721 2026-04-06 09:44:47 +02:00 Compare
arne merged commit 221276103d into main 2026-04-06 09:44:51 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
arne/orbit!20
No description provided.