Problem/Motivation

Per discussions in #3556948: Merging Gin as Admin theme rename the new Gin-based admin theme to something more unique to avoid conflicts, etc.

Proposed resolution

Change theme name from "Admin" to "Default Admin"
User facing text about the theme uses "Default Admin".
Change admin to default_admin in file paths, theme_name, namespaces

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3576646

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

damienmckenna created an issue. See original summary.

mstrelan’s picture

Tonic. Meaning "giving a feeling of vigour or well-being; invigorating", which is what the new theme is doing to Drupal, and nothing to do with something you might serve with Gin.

xmacinfo’s picture

Renaming is mostly to help out development and debugging. Grepping “admin” keyword generates too many results.

We could have a “Drupal theme”, but, then again, grepping “Drupal” generates too many results.

Also, as I understand, in the future we will not be able to switch admin theme from the UI, as with many other PHP platforms.

Here are a few suggestions that I think can be worth considering:

  • “Core” theme,
  • “Theme” theme.

We can also force compound with machine name like:

  • “admin_theme”,
  • “admin_skin”.
  • etc.

Those are all suggestions.

nicxvan’s picture

I propose something like Sapphire

acbramley’s picture

Yeah I personally prefer something less generic such as #2 and #4 the problem is it will probably be very difficult to get a consensus on one.

But there's got to be something better than "admin", especially considering https://www.drupal.org/project/drupal/issues/3556948#comment-16491504 - there will undoubtedly be contrib admin themes that subtheme the core one with their own flavours.

I do quite like Tonic

larowlan’s picture

The next steps after adding gin are:

At that point the name should be moot

acbramley’s picture

At that point the name should be moot

I disagree, as stated above there's nothing stopping people from adding their own admin theme in contrib or custom. And from a developer experience, admin is awful for finding stuff. Also having admin: admin in system.theme is odd

mstrelan’s picture

It would be short-sighted to assume that we're not going to want to replace this admin theme in 5 or 10 years. What do we call it then? admin2?

catch’s picture

It would be short-sighted to assume that we're not going to want to replace this admin theme in 5 or 10 years.

We might but there's also the possibility that we keep refining it over 5 or 10 years and don't have to do a full replacement, especially if we add and improve user customisation of fonts etc. In an ideal timeline we'd have done that with Claro and not be replacing it now.

jurgenhaas’s picture

Renaming is mostly to help out development and debugging. Grepping “admin” keyword generates too many results.

I'm struggling a bit to imagine where this would be an issue. Can someone provide examples for when this might be? And I do also think that now, that all PHP code is in namespaces classes, this should even be less of a problem. What am I missing?

benjifisher’s picture

+1 for giving the theme a real name.

I do not really care what it is, as long as it is not "admin" (nor the suggestions in Comment #3). "Admin theme" is a description, and if we are allowed to change it (whether or not we can do it through the UI) we should be able to name what we are changing it to.

Weren't Olivero and Claro named after designers? Surely we can find another one.

catch’s picture

I'm struggling a bit to imagine where this would be an issue. Can someone provide examples for when this might be?

The main cases I can think of are code searching to find references or things like mass-renaming. e.g. if you search contrib for Gin or Claro you can probably find some references. The Gin to Admin conversion probably did a find and replace for gin to admin that wouldn't be reversible (because there'd already be the word 'admin' in a lot of places).

dalemoore’s picture

"drupal_admin"? It's generic enough and describes what it is while having an underscore to make it easier to search for in code.

The unique names like Claro, Gin, etc. are nice though.

nicxvan’s picture

Checking out main and searching for admin, I get 20000 results across 1982 files.

kentr’s picture

TTFKAG (acronym for "the theme formerly known as Gin").

dww’s picture

+100 to renaming this.

However, before the UX people / product managers get bent out of shape that "Admin" is truly the right thing to put in the UI, we could at least have something deterministic and unique for the machine name and still call the human-readable label "Admin" (if that actually is a good idea in the UI). Especially if #3528104: Remove UI to change admin theme is on the near-term roadmap, and "the name should be moot", then please can we rename the machine name to a string that doesn't already have 20,000 hits when greping the source tree? If the label is still "Admin", I can shrug and bear it. But having the machine name as admin is definitely a DX disaster, regardless of your opinions / beliefs about the UX benefits.

Thanks!
-Derek

dww’s picture

catch’s picture

If the main concern is greppability we could do admin_theme which is redundant and less aesthetically pleasing but a lot more greppable.

marcoscano’s picture

+1 please.

It seems like there's some level of consensus around giving the theme a machine name different than admin.

I believe it will be very hard to find the new name collectively, because our community will seek perfection and there's too much subjectiveness in choosing a name IMO.

Can we please just ask Dries (or someone else) to pick a word and run with that? Anything will be better than admin.

lauriii’s picture

How about default_admin (since that's what it is, or will be)?

catch’s picture

That works for me.

nod_’s picture

default_admin is very greppable, 2 hits in core and 45 across contrib. default_admin

jurgenhaas’s picture

If this is consent, I'd be happy to work on this. Just one question for clarification: the directory themes/admin should also be renamed, or just the info file and the namespace?

nod_’s picture

I would expect the folder to be renamed

xmacinfo’s picture

if we stick with a compound name, let's use:

drupal_admin

rkoller’s picture

i share the same opinion as benji in #11. i do not really care about the name, the only constraint from my end i would prefer it would have a proper name and not using a name describing a role/attributes. those attributes can be communicated otherwise via the ui (for example #3249370: Move the active Default and Admin Theme to a new section on top of the Appearance page and #3249374: Redesign the cards for the Appearance page).

lauriii’s picture

After the changes to remove the OOTB support for changing the admin theme, It might make sense to no longer to show the theme in the UI.

If we use either drupal_admin or default_admin, it seems to open up the floor for alternative admin themes. However, I personally don't think we need to optimize for that. Our modules are named after functionality too even though they can be replaced by similar functionality in contrib / custom modules.

casey’s picture

What if some time from now the theme will feel outdated and a new admin theme is created.

Are we going to replace the admin (or default_admin) admin theme? This will most likely break all customizations and additions that will be added to contrib and custom projects.

Or name it admin2 or new_default_admin?

What about just calling it gin? Views and media were also contrib projects. Moving projects into core while keeping the name is perfectly possible.

phenaproxima’s picture

I like default_admin.

catch’s picture

What if some time from now the theme will feel outdated and a new admin theme is created.

Are we going to replace the admin (or default_admin) admin theme? This will most likely break all customizations and additions that will be added to contrib and custom projects.

Or name it admin2 or new_default_admin?

I don't think this is real problem - it's not like we're preventing a theoretical future admin theme from having a unique name by calling this one default_admin. But also overall the goal here is for the admin theme to evolve gradually over time rather than get frozen for 5-7 years then replaced (which we've done twice now).

jurgenhaas’s picture

Status: Active » Needs review

This is ready for testing and review.

jurgenhaas’s picture

quietone’s picture

Issue summary: View changes

Updating the issue summary with to match the changes I see in the MR.

jurgenhaas’s picture

@quietone your latest update to the IS needs a bit of a clarification:

Change theme name from "Admin" to "Default Admin"
User facing text about the theme uses "Admin".

The name of the theme (I guess this is in info.yml?) is also user facing as it's shown in the appearance screen to enable and configure the theme. I'm wondering where we should use "Default Admin" or "Admin". Please help me clarify this.

lauriii’s picture

Let's change the user facing name for consistency. 👍

jurgenhaas’s picture

Issue summary: View changes

OK, I've updated the MR so that all user-facing strings are now calling it "Default Admin", and the IS has also been updated accordingly.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new144.82 KB

Only local images are allowed.

settings

From what I can tell renaming is working.

pameeela’s picture

+1 from me!

ckrina’s picture

+1 from me too.

  • catch committed 8781cedd on 11.x
    task: #3576646 Rename Gin-based admin theme
    
    By: damienmckenna
    By:...

  • catch committed c769fb59 on main
    task: #3576646 Rename Gin-based admin theme
    
    By: damienmckenna
    By:...
catch’s picture

Version: main » 11.x-dev
Status: Reviewed & tested by the community » Fixed

Committed/pushed to main and 11.x, thanks! Reviewed the files that actually had changes rather than pure renames.

I didn't reallly know what to do with issue credits here so I leaned on the stingy side..

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.