Enhance status component and dashboard functionality

- Updated the status component template to include a new trigger for task status checks.
- Modified the status component's Go implementation to reflect the new trigger in the HTML output.
- Improved the UpdateIssue handler to conditionally set the assignee based on form input.
- Enhanced the dashboard template to include a new dependencies section for issues, allowing users to add dependencies dynamically.
- Refactored the dashboard's issue rows to utilize JavaScript functions for rendering status, type, and priority badges, improving maintainability and readability.
This commit is contained in:
Robin Olsen
2026-04-01 14:37:31 +02:00
parent f755e9f01e
commit 2f0426b58f
14 changed files with 335 additions and 53 deletions

View File

@@ -103,9 +103,10 @@ func (e *Expector) Nil(value any, message string) *Expector {
}
func (e *Expector) NotNil(value any, message string) *Expector {
check := NewCheck(message, value != nil)
e.Checks = append(e.Checks, check)
return e
if value == nil {
return e.Fail(message + " is wrong")
}
return e.Pass(message + " is correct")
}
func (e *Expector) Contains(s, substr, message string) *Expector {