mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(web): link Dashboard stats to Releases page (#1281)
* feat(web): link stats to release table - added Errored Pushes - Made Recent Activity same color as Stats * feat(releasetable): made links a separate row https://i.imgur.com/ZoAOrXP.png remove comment * added LinkIcon to StatsItem - Changed grid-cols to 2, as we now have 4 for narrow widths * fix linting * move some text modifier to parent element * feat: add scale on hover with transition deduplicated some classes * adapt gap between StatsItems for mobile remove border and title on stats divs --------- Co-authored-by: Fabricio Silva <hi@fabricio.dev> Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com>
This commit is contained in:
parent
937d62fb82
commit
3b60365483
8 changed files with 79 additions and 37 deletions
|
@ -551,7 +551,8 @@ FROM (
|
|||
CROSS JOIN (
|
||||
SELECT
|
||||
COUNT(CASE WHEN status = 'PUSH_APPROVED' THEN 0 END) AS push_approved_count,
|
||||
COUNT(CASE WHEN status = 'PUSH_REJECTED' THEN 0 END) AS push_rejected_count
|
||||
COUNT(CASE WHEN status = 'PUSH_REJECTED' THEN 0 END) AS push_rejected_count,
|
||||
COUNT(CASE WHEN status = 'PUSH_ERROR' THEN 0 END) AS push_error_count
|
||||
FROM release_action_status
|
||||
) AS foo`
|
||||
|
||||
|
@ -562,7 +563,7 @@ CROSS JOIN (
|
|||
|
||||
var rls domain.ReleaseStats
|
||||
|
||||
if err := row.Scan(&rls.TotalCount, &rls.FilteredCount, &rls.FilterRejectedCount, &rls.PushApprovedCount, &rls.PushRejectedCount); err != nil {
|
||||
if err := row.Scan(&rls.TotalCount, &rls.FilteredCount, &rls.FilterRejectedCount, &rls.PushApprovedCount, &rls.PushRejectedCount, &rls.PushErrorCount); err != nil {
|
||||
return nil, errors.Wrap(err, "error scanning row")
|
||||
}
|
||||
|
||||
|
|
|
@ -150,6 +150,7 @@ type ReleaseStats struct {
|
|||
FilterRejectedCount int64 `json:"filter_rejected_count"`
|
||||
PushApprovedCount int64 `json:"push_approved_count"`
|
||||
PushRejectedCount int64 `json:"push_rejected_count"`
|
||||
PushErrorCount int64 `json:"push_error_count"`
|
||||
}
|
||||
|
||||
type ReleasePushStatus string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue