Skip to content

system: distill service widget essence based on #9608#10178

Open
fichtner wants to merge 1 commit intomasterfrom
service-redo
Open

system: distill service widget essence based on #9608#10178
fichtner wants to merge 1 commit intomasterfrom
service-redo

Conversation

@fichtner
Copy link
Copy Markdown
Member

Important notices

Before you submit a pull request, we ask you kindly to acknowledge the following:


Describe the problem

See ticket.


Describe the proposed solution

Less wasted space, move process status to background color.

Screenshot 2026-04-20 at 10 10 09

Related issue

#7887

@fichtner fichtner requested review from sopex and swhite2 April 20, 2026 08:31
@fichtner fichtner self-assigned this Apr 20, 2026
<button data-service_action="${action}" data-service="${id}"
class="btn btn-xs btn-default srv_status_act2"
style="font-size: 10px; padding: 2px 6px;"
<span data-service_action="${action}" data-service="${id}"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one could argue cursor: pointer here

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure why not

<span data-service_action="${action}" data-service="${id}"
class="srv_status_act2"
title="${title}" data-toggle="tooltip">
<i class="fa fa-fw fa-${icon}"></i>
Copy link
Copy Markdown
Member

@swhite2 swhite2 Apr 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The icons seem a bit transparent / lower in opacity / muted to me, or is this an optical illusion?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after fighting button styles this was a happy little accident removing the button, but we can improve visibility further I think

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I for one will not stand in the way of Bob Rossin' the UI.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A happy tree is all that is missing.


getMarkup() {
return $(`<div id="services-container" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); padding: 5px; gap: 5px;"></div>`);
return $(`<div id="services-container" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); padding: 1px; gap: 1px;"></div>`);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My review is solely visual.
I think it is a bit foreign to the opnsense design language and also makes it more difficult to read the services due to being crammed together.
But my eyes don't like this shade of green at larger dosages, so this might be part of the problem :)

Screenshot 2026-04-20 113943

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but if one is stopped it sticks out really well.. I still have to see if another color makes more sense and pinning it for all themes instead of trying to softcode the bootgrid defaults.. I theory the background color should be lighter but I don't think we've followed it as closely with out theming, see https://getbootstrap.com/docs/4.0/components/alerts/

as far as scaling and grid goes these are the previous defaults but I've made the font bigger again. I don't like it being smashed as much horizontally but it simply needs more tweaking.

Copy link
Copy Markdown
Member

@sopex sopex Apr 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original has more vertical space and horizontally is night and day.

I believe the correct green would actually be darker and not lighter.
OPNsense orange is dark, and the interfaces/ traffic/ firewall graphs use very dark/bold colors, this and lighter greens feel washed up here.

Also, I still believe this feels more opnsense and not because I did it :)

image

5 services become 9

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd generally not lean too much into red and green color coding, and more into distinct icons, as there are a lot of visually impairments regarding red green or similiar shapes.

As reference I had to clean up this:
#9704

And affected users will always report quickly.

@Monviech
Copy link
Copy Markdown
Member

Monviech commented Apr 20, 2026

Just a different idea, how about sorting services by state (stopped, then started) first, and afterwards alphabetically. I do it in a few widgets to quickly show connected clients first (e.g. wireguard, ipsec, openvpn, etc...) or the certificate widget (expired show first).

That way saving space isn't too important, stopped services will always migrate to the first spots in the view.

@swhite2
Copy link
Copy Markdown
Member

swhite2 commented Apr 20, 2026

Just a different idea, how about sorting services by state (stopped, then started) first, and afterwards alphabetically.

I think in this instance predictability wins as users may be used to a particular ordering. Having elements jump around serves no particular purpose IMO.

@Monviech
Copy link
Copy Markdown
Member

Monviech commented Apr 20, 2026

Just a different idea, how about sorting services by state (stopped, then started) first, and afterwards alphabetically.

I think in this instance predictability wins as users may be used to a particular ordering. Having elements jump around serves no particular purpose IMO.

That makes sense, its just a personal preference of mine to see the most important things first in the list. Others might have different preferences. It's why GUI related things are always hard to distill to one size fits all.

I guess what I want could be destilled into a new sort of widget that is a meta status of all things that are currently not okay and displays them in a list or something. "Show me everything that is currently degraded" -> though scope creep would immediately kill such a "god" widget.

@ronin3510
Copy link
Copy Markdown

I’m all for not falling in the Material Design trap, one of the poorest design choices implemented at scale in what can only be described as anti-consumer move (almost white text over a white background model is what I’m referring to, with all the possible variations).

It already looks like the green background status idea with slightly darker green controls has been tossed but I felt necessary to comment about the similarity with Material Design.

One last thing I want to add is that for consistency I’d would evaluate color changes not only on how good they look on the white theme but on the dark one as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants