Skip to content

refactor: remove the be_style backend page, instance color via env var - #6611

Merged
gharlan merged 9 commits into
6.xfrom
refactor/remove-be-style-backend-page
Jul 31, 2026
Merged

refactor: remove the be_style backend page, instance color via env var#6611
gharlan merged 9 commits into
6.xfrom
refactor/remove-be-style-backend-page

Conversation

@gharlan

@gharlan gharlan commented Jul 31, 2026

Copy link
Copy Markdown
Member

Removes the last remnants of the former be_style addon/customizer plugin from the backend:

  • The system/be_style page is gone entirely: the help, icons and customizer subpages are removed.
  • The website link in the top navbar is no longer injected via JS (customizer.js) — a relic from the plugin era — but rendered directly in the core/header.php fragment. It is also no longer configurable (be_style_showlink), it is simply always shown.
  • The label color is no longer a backend setting stored in the DB (be_style_labelcolor). Instead it can be set via the new env var REX_INSTANCE_COLOR (accessor Core::getInstanceColor()), complementing REX_INSTANCE_ID (closes be_style/customizer Erkennungsfarbe in config.yml speichern #4708). It is applied as inline style to the navbar (border-bottom) and used for the safari mask icon. Since it no longer depends on a logged-in user, the color now also appears on the login and setup pages.
  • customizer.js and customizer.css are deleted; the styles moved into the scss sources (_navs.scss, new class rex-nav-top-title), so the separate css file/request is gone.
  • The obsolete config keys (be_style_showlink, be_style_labelcolor) are removed from existing installations on migrate.
  • Visual tests: the customizer screenshots are removed and the CI sets REX_INSTANCE_COLOR to the previous default green, so the screenshots keep the colored navbar. Expect some screenshot updates on the first run (login/setup now show the color, too).

gharlan added 5 commits August 1, 2026 00:29
Move the label color setting to the system settings page and always show
the website link in the top navbar (no longer configurable).
Previously injected via customizer.js as a leftover from the be_style
customizer plugin. The link markup is now rendered directly in the header
fragment, the label color is applied as inline style, and the styles moved
from customizer.css into the scss sources.
@gharlan gharlan added this to the REDAXO 6.0 milestone Jul 31, 2026
The process env var was not visible to the php built-in server requests
(variables_order without E), so the screenshots lost the colored navbar
border. Write the value into the dotenv-loaded .env.local instead.
@gharlan
gharlan force-pushed the refactor/remove-be-style-backend-page branch from b130e03 to faf7c5e Compare July 31, 2026 22:52
@gharlan
gharlan merged commit f830926 into 6.x Jul 31, 2026
16 checks passed
@gharlan
gharlan deleted the refactor/remove-be-style-backend-page branch July 31, 2026 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant