core icon indicating copy to clipboard operation
core copied to clipboard

Firewall alias first page list view does not display category color dot consistently

Open julsssark opened this issue 1 year ago • 0 comments

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

  • [ x] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
  • [ x] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue

Describe the bug

The first page of the Firewall alias list does not always show the category dot. Refreshing the list will cause the category dot to display.

Tip: to validate your setup was working with the previous version, use opnsense-revert (https://docs.opnsense.org/manual/opnsense_tools.html#opnsense-revert)

To Reproduce

Steps to reproduce the behavior:

  1. Ensure you have a category defined and that the first page of the firewall alias has one alias that allows a category label to be added. I can duplicate the issue with 7 or 100 items listed so increase the list length if needed.
  2. Set sort to by name. I duplicated the issue with Description sorted, so it may not be dependent which field is sorted.
  3. Add category to an alias on the first page and click apply. Confirm that the category color dot is is visible next to the alias name.
  4. Select Firewall->Categories
  5. Select Firewall->Aliases. Category color dot is missing from the alias.
  6. Repeat steps 4 and 5. Sometimes switching out and back needs to be done more than once to get the dot to disappear.

Expected behavior

Category color dot should always appear next to alias name when a category is set for that alias.

Describe alternatives you considered

None. This is a display issue and the category is working correctly.

Screenshots

My Alias list with the category dot color correctly displayed.

2024-10-15_14-02-39

Relevant log files

If applicable, information from log files supporting your claim.

Additional context

Add any other context about the problem here.

Environment

Software version used and hardware type if relevant, e.g.:

OPNsense 24.7.6-amd64 OPNsense 24.7.5-amd64 (duplicated problem in a clean test environment) Safari 18.0.1 on Mac Also duplicated on Google Chrome 129.0.6668.101 on Mac

julsssark avatar Oct 15 '24 21:10 julsssark