starshot-prototype icon indicating copy to clipboard operation
starshot-prototype copied to clipboard

Add the Type Tray module

Open e0ipso opened this issue 9 months ago • 6 comments

We have been successfully using Type Tray in all of our projects.

The reasoning behind using it is documented here.

image

e0ipso avatar May 15 '24 21:05 e0ipso

Oh, one other request, @e0ipso -- in another PR, can you opt the Basic block type into this as well? It will necessitate creating a new starshot_basic_block_type recipe that either builds on top of, or outright forks, core's basic_block_type.

phenaproxima avatar May 15 '24 21:05 phenaproxima

I was initially on the fence about this, but I tried it out and it is an improvement. I wasn't sure about needing an icon for each content type, but I see there is a default icon that is perfectly fine. I would also just say the basic page icon proposed here doesn't really make sense to me, but it's not super important.

I also think the styling could use some love but that's what's great about Starshot, it should drive improvement in contrib as well :)

pameeela avatar May 16 '24 01:05 pameeela

the basic page icon proposed here doesn't really make sense to me

I agree on this. But that's very easily fixed later.

I think my only remaining concern here is the possibility of this breaking if the site directory is not sites/default. If we address that, ship it!

phenaproxima avatar May 16 '24 01:05 phenaproxima

public:// doesn't seem to work, based on testing. @phenaproxima you initially said the file location could be a follow up, do you still think so? Your last comment seems to imply we should solve it first.

pameeela avatar May 16 '24 05:05 pameeela

I think it can be a follow-up as long as we have an issue open -- ideally in Type Tray's issue queue, with a follow-up issue here to use the fix when there's a patch. @e0ipso, if you open those things, we can merge this.

phenaproxima avatar May 16 '24 13:05 phenaproxima

Opened an issue for this, with a patch (no tests yet): https://www.drupal.org/project/type_tray/issues/3447694

Can we apply that patch here, and switch to using stream wrappers?

phenaproxima avatar May 16 '24 19:05 phenaproxima

Sorry for taking this long to reply. I will be looking into this today.

e0ipso avatar May 21 '24 07:05 e0ipso

@phenaproxima @pameeela this was fixed. Let me know if there is anything else.

e0ipso avatar May 21 '24 09:05 e0ipso

Thanks @e0ipso et. al., this looks great.

phenaproxima avatar May 21 '24 11:05 phenaproxima

I'm wondering about adding this now in light of a few other ongoing discussions about how to vet modules. This one is (pretty much) purely a visual change, not really functional. It does offer categorisation to content types, but that is unlikely to be useful for the Starshot audience I think, because it would only be needed if there are a lot of content types.

I still really like the module but now I'm second guessing the addition!

pameeela avatar May 23 '24 06:05 pameeela

It's true that Type Tray's changes are visual, but IMHO they are visual in a way that increases Drupal's user-friendliness and usability, particularly by supporting type-specific icons. That's why I added it.

I think it's completely fine and in line with Starshot's mission to add "cosmetic" modules if they enhance usability. That's why I'm on the fence about Gin Login, which absolutely is a visual upgrade, but not necessarily a usability upgrade.

phenaproxima avatar May 23 '24 06:05 phenaproxima

Which modules to add, and which not to add ... it's a fine balance. There are nice-to-have modules, and then there are modules which add a lot of value. Every "nice" module included risk adding technical debt, and -- by definition -- will increase the number of modules, at the risk of ballooning into a sea of modules, if not kept in check. Keeping the number of modules at a reasonable level is good practice, in my opinion.

gitressa avatar May 23 '24 11:05 gitressa