netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Support configuring card/widget header icon on dashboard page

Open jsenecal opened this issue 2 years ago • 9 comments

NetBox version

v3.5.4

Feature type

New functionality

Proposed functionality

Related to https://github.com/netbox-community/netbox/pull/12664/commits/7d566837b6700acc904711952f50606a4ae2fec1

Allow for dashboard cards to have an icon added.

Use case

The dashboard purpose is to allow users the opportunity to customize this view to include only the information most relevant to them. Adding visual cues as to the content of the widgets/cards makes it even better (and prettier).

image

Database changes

None

External dependencies

None

jsenecal avatar Jul 03 '23 16:07 jsenecal

I have several widget with mixed content. How will the header icon be defined? By selector? Unicode is not enough?

stavr666 avatar Jul 04 '23 07:07 stavr666

P.S. Text shadow or more contrast text colors for some header colors will be much more appreciated imho:

image

stavr666 avatar Jul 04 '23 07:07 stavr666

Hi @stavr666, My plan was to define icon names from Material Design Icons.

Something like that:

<h6 class="card-header text-center">
        {% if widget.icon_name %}<i class="mdi mdi-{{ widget.icon_name }}"></i>{% endif %}
        <span class="ms-1">{{ widget.title }}</span>
</h6>

Nothing would prevent you from using your method as well.

jsenecal avatar Jul 04 '23 14:07 jsenecal

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

github-actions[bot] avatar Oct 03 '23 04:10 github-actions[bot]

https://github.com/netbox-community/netbox/issues/12128 is probably blocking this

jsenecal avatar Oct 03 '23 18:10 jsenecal

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

github-actions[bot] avatar Jan 12 '24 04:01 github-actions[bot]

@jsenecal now that #12128 is completed, would you like to take a fresh look at this issue?

jeffgdotorg avatar Jan 24 '24 22:01 jeffgdotorg

It really depends on @jeremystretch tbh @jeffgdotorg

jsenecal avatar Jan 26 '24 14:01 jsenecal

I've not been involved with this FR at all.

jeremystretch avatar Jan 26 '24 14:01 jeremystretch

Closing this out at stale as there's been no further discussion.

jeremystretch avatar Feb 23 '24 20:02 jeremystretch