Workbench icon indicating copy to clipboard operation
Workbench copied to clipboard

Enhanced library

Open bragefuglseth opened this issue 1 year ago • 15 comments

It was mentioned in #505 that the library could use a rework. Here's an initial concept to get the ball rolling.

library

bragefuglseth avatar Aug 18 '23 15:08 bragefuglseth

This is great. We talked about using tags for Langs/categoies before.

The Category drop-down is a great way to separare by concerns too , "tutorials", "patterns" etc

sonnyp avatar Aug 18 '23 18:08 sonnyp

I don't know if one symbolic per demo is reasonable, or is that per category?

It won't scale

sonnyp avatar Aug 18 '23 18:08 sonnyp

The icon library has icons for a lot of cases, but Workbench has a lot of demos to cover as well, so you have a point. I see three alternatives:

  1. Drop the icons entirely. This would make the library less visually interesting, but it's the most scalable solution.
  2. Only use icons for some demos, and find a nice way to display demos without them as well. I'm not sure how easy this would be design-wise.
  3. De-emphasize the icon, choose one for each category and use that for each demo in the category. This might get repetitive, but I can see it working nicely.

bragefuglseth avatar Aug 18 '23 19:08 bragefuglseth

I would drop the icons for now. I'm not 100% sure where to take Workbench next.

We might reduce the number of Library entries to only "copy and paste" examples (Patterns) and move the rest somewhere else (either a new app or a separate Workbench feature)

  • "Demo Scene" similar to chrome experiments but for GNOME stuff
  • GNOME tutorials powered by Markdown and interactive code examples https://floss.social/@sonny/109013295762205649

sonnyp avatar Aug 18 '23 19:08 sonnyp

Maybe we could simply use a view switcher in Workbench for "main" categories.

Patterns | Demos | Tutorials or something like that

sonnyp avatar Aug 18 '23 19:08 sonnyp

In which case patterns entries can have a nice icon

sonnyp avatar Aug 18 '23 19:08 sonnyp

It seems like we need to flesh out the Demo Scene and tutorial concepts more to progress on this…

bragefuglseth avatar Aug 23 '23 08:08 bragefuglseth

Agree. Until then we can make small QoL additions

@Diego-Ivan already added language tags - a filter would be good next.

sonnyp avatar Oct 14 '23 14:10 sonnyp

I've tried adding a language filter, but it won't work without moving away from PreferencesWindow

sonnyp avatar Oct 16 '23 17:10 sonnyp

Maybe we could simply use a view switcher in Workbench for "main" categories.

Would that scale with many categories? Or are there a limited number of categories.

vixalien avatar Mar 06 '24 15:03 vixalien

The Gtk Flow box has horizontal tiling, is there an Adw counterpart for it? Gtk Grid also allows something similar

BharatAtbrat avatar Mar 21 '24 16:03 BharatAtbrat

is there an Adw counterpart for it?

What's stopping us from just using GtkFlowBox? There's no need for an equivalent in libadwaita :)

bragefuglseth avatar Mar 21 '24 16:03 bragefuglseth

I wouldn't recommend GtkFlowBox. GtkGrid or GtkGridView will be probably better.

vixalien avatar Mar 22 '24 10:03 vixalien

I wouldn't recommend GtkFlowBox. GtkGrid or GtkGridView will be probably better.

Any specifics as to why?

BharatAtbrat avatar Mar 22 '24 11:03 BharatAtbrat

Yeah sorry, GtkFlowBox is just a glorified GridView that reflows automatically. This automatic reflow can get complicated as imo it's hard to predict.

Using GtkGridView allows you to control the reflow manually by adjusting the number of rows or columns.

vixalien avatar Mar 22 '24 12:03 vixalien