Commit Graph

14 Commits

Author SHA1 Message Date
Stefan Sterz
926bfe7a89 spam-info-grid: style the spam info grid via css variables
by using css variables for the colored grid items in the spam info
grid, changing these colors based on media queries etc. is possible.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by:  Dominik Csapak <d.csapak@proxmox.com>
2023-03-15 15:38:54 +01:00
Thomas Lamprecht
63e00678b8 spam info grid: use 1:2 flex ratio between rule name and description
The rule names ain't _that_ long and it looks a bit better if name
and value are closer together

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-07 09:46:31 +01:00
Thomas Lamprecht
773489e36e spam info grid: code cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-07 09:46:31 +01:00
Thomas Lamprecht
ba8894541d spam info grid: use monospace font for score and level names
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-07 09:46:31 +01:00
Thomas Lamprecht
146c46f002 spam info grid: add score depending background colors gradations
based on the color of the recent patch add a darker and lighter level
for both, good and bad.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-07 09:46:31 +01:00
Thomas Lamprecht
282b960b59 spam info grid: sort by score by default
useful to have the levels sorted by their impact

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-07 09:46:31 +01:00
Dominik Csapak
d5aca48ee0 fix #4238: spam info grid: enable sorting & add colors for spam score
sorting the matching spam rules, e.g. by score, makes it easier to see
which rules have more weight in determining spam.

Additionally, color code the scores with colors akin to the rationale
in commit:
365f84c ("quarantines: color code deliver and delete buttons")

(red for positive spam scores, blue for negative ones)

and increase the font-weight for large spamscore contributing rules.

i chose a different blue tone that is more muted than what we use in
'info-blue' but is different from both the 'hover' color and the
'selected' color

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-11-07 09:46:31 +01:00
Thomas Lamprecht
c87d46fbe8 tree wide: eslint --fix
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-23 13:17:15 +02:00
Dominik Csapak
771bd0b94b jslint: remove trailing commas
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-23 17:29:17 +02:00
Dominik Csapak
4700c0375b hide column headers for spam level info
they dont give any useful information

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-29 09:42:59 +02:00
Dietmar Maurer
c811498512 SpamInfoGrid.js - use single store object
And only set/change url.
2017-09-29 08:02:02 +02:00
Dietmar Maurer
b4c60642b6 SpamInfoGrid.js - score need to be a numeric field
To make grid summary working.
2017-09-29 07:24:34 +02:00
Dietmar Maurer
f34abacac7 SpamInfoGrid.js - avoid border 2017-09-29 07:11:33 +02:00
Dominik Csapak
79a3f18d31 add SpamInfoGrid component
this component will be used to show the Spam info in the quarantine
in a nice tabular format

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:43:49 +02:00