InvenTree icon indicating copy to clipboard operation
InvenTree copied to clipboard

Support for diffrent views eg. gallery view

Open Marioheld opened this issue 5 years ago • 5 comments

Sometimes it is really handy to browse the parts by pictures. Generally the support for viewing the data in diffrent ways (list, gallery, map/locations) would be a nice feature. While changing the CSS for a gallery view seems to be easy at first, I think there is more underlaying work needed so that InvenTree is aware of the types of views and the currently selected view of the user. The possibility for plugins to provide own views could also bring a big potential.

Marioheld avatar May 28 '21 13:05 Marioheld

@Marioheld would you be able to provide a simple visual mock-up of what you are thinking here?

In general I'm on board with supporting this concept, if it is useful in the general case :)

SchrodingersGat avatar May 29 '21 02:05 SchrodingersGat

The green arrow shows the new view switcher. L stands for list mode. This is the currently used view. list view G stands for gallery mode. Here you have much larger images and can spot the difference between parts, which have similar naming. For example the two types of speaker are very similar but the left type is physically bigger. gallerie view

Marioheld avatar May 29 '21 08:05 Marioheld

That seems more than reasonable.

The current table view is handled using the bootstrap-table library

It appears there is already an extension which might support this feature:

https://examples.bootstrap-table.com/#extensions/custom-view.html

SchrodingersGat avatar May 29 '21 08:05 SchrodingersGat

Taked a look on the custom view extension. Looks promising. Can I provide you anything else?

Marioheld avatar May 29 '21 10:05 Marioheld

refer to https://github.com/inventree/InvenTree/pull/1622 and let me know what you think

SchrodingersGat avatar May 29 '21 14:05 SchrodingersGat