fix(ui): body data-bs-no-jquery (real Fomantic fix) + login/navbar favicon (#719 #819) #859

Merged
jmiller merged 3 commits from feat/mobile-retheme into dev 2026-07-21 20:09:30 +00:00
Owner

Follow-up to #858. Dev verification showed the noConflict shim did NOT clear the fullTextSearch TypeError (Bootstrap registers its jQuery plugins on DOMContentLoaded, after the shim ran).

  • 5afbf00 — real fix. Add data-bs-no-jquery to <body> so Bootstrap's getjQuery() returns null and it registers no jQuery plugins → never clobbers Fomantic's $.fn.{dropdown,modal,tab,…}. Bootstrap's data-bs-* API still works. Removes the ineffective noconflict.ts.
  • 65019dd — navbar brand → favicon. The Gitea logo.svg in the navbar (the logo you see on the dashboard after login) now uses the admin-selected favicon (/img/favicon.svg, png fallback).
  • e8d6451 — login page logo → favicon. Replaces the 404ing login-logo.png with the favicon.

https://claude.ai/code/session_01D5Zxu4xRRGoh9etzgShP4P

Follow-up to #858. Dev verification showed the noConflict shim did NOT clear the `fullTextSearch` TypeError (Bootstrap registers its jQuery plugins on DOMContentLoaded, after the shim ran). - **`5afbf00` — real fix.** Add `data-bs-no-jquery` to `<body>` so Bootstrap's `getjQuery()` returns null and it registers no jQuery plugins → never clobbers Fomantic's `$.fn.{dropdown,modal,tab,…}`. Bootstrap's `data-bs-*` API still works. Removes the ineffective `noconflict.ts`. - **`65019dd` — navbar brand → favicon.** The Gitea `logo.svg` in the navbar (the logo you see on the dashboard after login) now uses the admin-selected favicon (`/img/favicon.svg`, png fallback). - **`e8d6451` — login page logo → favicon.** Replaces the 404ing `login-logo.png` with the favicon. https://claude.ai/code/session_01D5Zxu4xRRGoh9etzgShP4P
jmiller added 3 commits 2026-07-21 20:09:09 +00:00
The login page hard-coded {{AssetUrlPrefix}}/img/login-logo.png, which 404s (broken
image above the sign-in card). Point it at the configured favicon (/img/favicon.svg)
with a png fallback then hide, so the login page shows the actual selected site
icon/branding. Adds an alt of {{AppName}}.

Authored-by: Moko Consulting
Claude-Session: https://claude.ai/code/session_01D5Zxu4xRRGoh9etzgShP4P
The navbar brand (top-left, shown on the dashboard you land on after login) rendered
the default gitea logo.svg. Point it at the admin-selected favicon (/img/favicon.svg,
png fallback) so post-login pages carry the configured site icon.

Authored-by: Moko Consulting
Claude-Session: https://claude.ai/code/session_01D5Zxu4xRRGoh9etzgShP4P
fix(ui): stop Bootstrap clobbering Fomantic via <body data-bs-no-jquery> (#719)
Universal: PR Check / Branch Policy (pull_request) Successful in 1s
Universal: PR Check / Require Docs Update (pull_request) Has been skipped
Universal: PR Check / Wiki Update Reminder (pull_request) Has been skipped
Generic: Project CI / Tests (pull_request) Successful in 39s
Generic: Project CI / Lint & Validate (pull_request) Successful in 44s
Branch Cleanup / Delete merged branch (pull_request) Successful in 2s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Universal: PR Check / Validate PR (pull_request) Successful in 9s
Universal: PR Check / Secret Scan (pull_request) Successful in 1m2s
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
5afbf005ed
The earlier noConflict shim (f5bf232) didn't work: Bootstrap 5 registers its jQuery
plugins inside an onDOMContentLoaded callback, so the shim (running at module-eval, before
DOMContentLoaded) restored Fomantic's $.fn.* BEFORE Bootstrap overwrote them — then
Bootstrap clobbered again. Verified still broken on dev (fullTextSearch TypeError persisted
in the redeployed bundle).

Correct fix: add `data-bs-no-jquery` to <body>. Bootstrap's getjQuery() then returns null
and it registers NO jQuery plugins, so Fomantic's dropdown/modal/tab/... are never touched.
Bootstrap's data-bs-* data-API is bound independently and keeps working (mobile collapse
drawers). Removes the now-unnecessary noconflict.ts.

Authored-by: Moko Consulting
Claude-Session: https://claude.ai/code/session_01D5Zxu4xRRGoh9etzgShP4P
jmiller merged commit 20b8b77436 into dev 2026-07-21 20:09:30 +00:00
jmiller deleted branch feat/mobile-retheme 2026-07-21 20:09:31 +00:00
Sign in to join this conversation.