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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user