Skip to content

Conversation

@Monviech
Copy link
Member

@Monviech Monviech commented Oct 8, 2025

Proposal to fix the issue with showing and hiding columns in the most minimal way.

  • Stat column always shows
  • It shows icons for each type of stat, but only if that stat has data
  • A refresh button in the same column can invalidate the cache via 27bd8125

Reference to alternative: #9239

image

…ays visible one, implement cache invalidation via refresh button
@Monviech Monviech self-assigned this Oct 8, 2025
@Monviech Monviech added the feature Adding new functionality label Oct 8, 2025
…bootgrid since nothing in it is needed anymore
…rmatted number in column and real full number in tooltip.
… no half bytes or half integers, this only matters if the base changed for better accuracy
…obal setting in filter_rule.volt so that no persistence is set on header clicks
@Monviech Monviech force-pushed the firewall-automation-cache branch from 0aae8cd to bca426f Compare October 9, 2025 09:50
@Monviech Monviech force-pushed the firewall-automation-cache branch from 25e6e38 to 4989a46 Compare October 9, 2025 12:14
@Monviech Monviech merged commit 5baba39 into master Oct 9, 2025
@Monviech Monviech deleted the firewall-automation-cache branch October 9, 2025 12:20
fichtner added a commit that referenced this pull request Oct 20, 2025
…ays visible one, implement cache invalidation via refresh button (#9272)

* firewall/automation: Consolidate the stats column into a combined always visible one, implement cache invalidation via refresh button

* Update src/opnsense/mvc/app/controllers/OPNsense/Firewall/Api/FilterController.php

Co-authored-by: Franco Fichtner <[email protected]>

* Update src/opnsense/service/conf/actions.d/actions_filter.conf

Co-authored-by: Franco Fichtner <[email protected]>

* Update src/opnsense/mvc/app/controllers/OPNsense/Firewall/Api/FilterController.php

Co-authored-by: Franco Fichtner <[email protected]>

* Move event binding into headerFormatter, remove all loaded.rs.jquery.bootgrid since nothing in it is needed anymore

* Make click handler safe

* Include number formatter into byteFormat as parameter switch, show formatted number in column and real full number in tooltip.

* Apply decimals if the base has been exceeded at least once, there are no half bytes or half integers, this only matters if the base changed for better accuracy

* Flip this around

* Split stats into two rows to safe on horizontal space

* Fix duplicate headerSort in opnsense_bootgrid.js, push sortable to global setting in filter_rule.volt so that no persistence is set on header clicks

* Add cache_ttl at correct spot

---------

Co-authored-by: Franco Fichtner <[email protected]>
(cherry picked from commit 5baba39)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Adding new functionality

Development

Successfully merging this pull request may close these issues.

4 participants