fix: double-v in version display, reset error counts on issue deletion
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -469,12 +469,14 @@ func (s *Store) DeleteAppTelemetry(appName string) (int64, error) {
|
|||||||
return res.RowsAffected()
|
return res.RowsAffected()
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteAppIssues removes all known-issue records for a specific app.
|
// DeleteAppIssues removes all known-issue records for a specific app
|
||||||
|
// and zeroes the error/warning counters in telemetry history.
|
||||||
func (s *Store) DeleteAppIssues(appName string) (int64, error) {
|
func (s *Store) DeleteAppIssues(appName string) (int64, error) {
|
||||||
res, err := s.db.Exec("DELETE FROM app_log_issues WHERE app_name = ?", appName)
|
res, err := s.db.Exec("DELETE FROM app_log_issues WHERE app_name = ?", appName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
|
s.db.Exec("UPDATE app_telemetry SET log_errors = 0, log_warnings = 0 WHERE app_name = ?", appName)
|
||||||
return res.RowsAffected()
|
return res.RowsAffected()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -236,7 +236,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
<footer style="margin-top: 2rem; color: var(--text-muted); font-size: 0.8rem; text-align: center;">
|
<footer style="margin-top: 2rem; color: var(--text-muted); font-size: 0.8rem; text-align: center;">
|
||||||
Felhom Hub <span style="font-family: var(--font-mono)">v{{hubVersion}}</span>
|
Felhom Hub <span style="font-family: var(--font-mono)">{{hubVersion}}</span>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -91,7 +91,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
<footer style="margin-top: 2rem; color: var(--text-muted); font-size: 0.8rem; text-align: center;">
|
<footer style="margin-top: 2rem; color: var(--text-muted); font-size: 0.8rem; text-align: center;">
|
||||||
Felhom Hub <span style="font-family: var(--font-mono)">v{{hubVersion}}</span>
|
Felhom Hub <span style="font-family: var(--font-mono)">{{hubVersion}}</span>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<footer style="margin-top: 2rem; color: var(--text-muted); font-size: 0.8rem; text-align: center;">
|
<footer style="margin-top: 2rem; color: var(--text-muted); font-size: 0.8rem; text-align: center;">
|
||||||
Felhom Hub <span style="font-family: var(--font-mono)">v{{hubVersion}}</span>
|
Felhom Hub <span style="font-family: var(--font-mono)">{{hubVersion}}</span>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user