feat: farbcodierte Ablaufwarnung für Deployments (#180) - #231
Merged
Conversation
Deployments zeigen ihre verbleibende Laufzeit jetzt zweistufig farbcodiert
an, statt nur einer einzigen Warnstufe:
- Gelb ("warning"), sobald ein Deployment innerhalb von 3 Monaten vor
seinem expires_at liegt.
- Rot ("critical"), sobald es innerhalb von 6 Wochen vor Ablauf liegt.
- Der bestehende "expired"-Zustand (nach expires_at) bleibt rot.
getExpiryState() in src/utils/deployment.ts wird von der backend-getriebenen
Einzelschwelle (expiry_warning_at) auf zwei feste, aus expires_at berechnete
Fenster umgestellt. Die Schwellen (6 Wochen / 3 Monate) liegen als benannte
Konstanten im Frontend; ein Kommentar hält fest, dass diese Dauern laut
Issue-Diskussion später aus dem Backend kommen könnten. Die Frage, ob jede
Verlängerung vom Backend akzeptiert wird, ist separat in #184 nachverfolgt.
Konsumenten aktualisiert:
- Dashboard.tsx: eigenes rotes Warndreieck für "critical" neben dem gelben
"warning"-Icon und dem roten "expired"-Oktagon.
- DeploymentDetails.tsx: Ablauf-Banner wird bei "critical" und "expired"
rot dargestellt, bei "warning" gelb, mit passender Überschrift je Zustand.
Closes #180
LostLunaris
approved these changes
Jul 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deployments zeigen ihre verbleibende Laufzeit jetzt zweistufig farbcodiert an, statt nur einer einzigen Warnstufe:
getExpiryState() in src/utils/deployment.ts wird von der backend-getriebenen Einzelschwelle (expiry_warning_at) auf zwei feste, aus expires_at berechnete Fenster umgestellt. Die Schwellen (6 Wochen / 3 Monate) liegen als benannte Konstanten im Frontend; ein Kommentar hält fest, dass diese Dauern laut Issue-Diskussion später aus dem Backend kommen könnten. Die Frage, ob jede Verlängerung vom Backend akzeptiert wird, ist separat in #184 nachverfolgt.
Konsumenten aktualisiert:
Closes #180