Part-DB-server icon indicating copy to clipboard operation
Part-DB-server copied to clipboard

Favorites components

Open Maystero14 opened this issue 2 months ago • 8 comments

Hi I have several favorite components. The components have the Favorites checkbox checked (blue star). How can I quickly display only all favorite components in the GUI?

Image

Is it possible to put items in the "category": Favorites?

Maystero14 avatar Oct 21 '25 06:10 Maystero14

Image

There is the favorite filter.

I am planning the ability to store custom filter combinations as user-definable "views" but so far this is not existing.

jbtronics avatar Oct 21 '25 08:10 jbtronics

Thanks for your response. I have an idea to add a Favorites option to the side menu. This category would display items with the tag: favorite. What do you think about this idea (It's just only Paint.exe)?

Image

Could it be easily implemented?

Maystero14 avatar Oct 24 '25 15:10 Maystero14

I'd expect the sidebar entry in "Show"->"Filter" or "Views" or similar. Category is a data source, it would not make much sense to mix it up with filtered views.

If you want a link at the front page, put this in your banner: <a href="parts?part_filter[favorite][value]=true">Favorite</a>

Please find a related discussion about filtering in #938.

d-buchmann avatar Oct 28 '25 07:10 d-buchmann

Thanks for your workaround!

However, I don't know what I'm doing wrong, because I have inserted <a href="parts?part_filter[favorite][value]=true">Favorites</a> in System -> System Settings -> Homepage banner section.

After refrashe main page, I have:

Image

Maystero14 avatar Oct 28 '25 07:10 Maystero14

Sorry, I should've tested this on v2 first. You have to click on "Source" in the editor before putting the link in, then it gets correctly parsed as html.

PS: The HTML is internally converted to markdown, so you can also use this: [Favorite](parts?part_filter%5Bfavorite%5D%5Bvalue%5D=true)

Or (simplest solution) use the Link symbol (blue icon in the picture) to enter the URL only:

Image

d-buchmann avatar Oct 28 '25 10:10 d-buchmann

Beautiful! Wonderful! Perfect! Working!

Thanks you very much!

Maybe you know how update code: parts?part_filter[favorite][value]=true

for this option?

Image

Maystero14 avatar Oct 28 '25 13:10 Maystero14

parts?part_filter[lotNeedsRefill][value]=true

At the top of the main view area you can play around with filter settings yourself. Then observe the URL bar of your browser and you can extract whatever suits your needs as a link.

d-buchmann avatar Oct 28 '25 14:10 d-buchmann

Thanks you .

Maystero14 avatar Oct 30 '25 06:10 Maystero14