Conversation
d2899f9 to
5d7240b
Compare
Test results 6 files 900 suites 1m 47s ⏱️ Results for commit 36603e2. ♻️ This comment has been updated with latest results. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1723 +/- ##
==========================================
+ Coverage 82.57% 82.91% +0.34%
==========================================
Files 137 134 -3
Lines 6552 6521 -31
==========================================
- Hits 5410 5407 -3
+ Misses 1142 1114 -28 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
5d7240b to
8032875
Compare
There was a problem hiding this comment.
It's a draft, this is the easily noticeable problems:
Global header:
User preferences:
-
Argus theme is missing from drop down and I get the warning "2026-01-14 14:28:45,660 argus.htmx.themes.utils WARNING Themes in settings are out of sync with themes installed"
Nothing seems to be broken in the styleguide. Nothing else looks weird except the dark theme has even worse contrast than before.
|
Also, it appears that djlint at github-actions differs from the version run by precommit 😮💨 |
8032875 to
f829de4
Compare
They're the same length to me, but split in two, which I'll fix
The tabs and dropdowns should be fixed, as I spent quite some time fixing them:
Are you using the correct tailwind-cli, generated css and did a hard refresh etc?
I'll look into fixing the broken Argus theme, and do some adjustments to make the dark theme to look as expected again. |
f45543e to
cd5152c
Compare
cd5152c to
9ee9e0e
Compare
|
I have addressed the problems identified in the first quick-pass:
|
| @@ -1,5 +1,5 @@ | |||
| .card-base { | |||
| @apply border border-base-200 bg-base-100; | |||
| @apply border border-base-300 bg-base-100; | |||
| <div class="relative isolate flex justify-center gap-x-4 overflow-hidden bg-red-700 px-4 py-1.5"> | ||
| <div class="absolute left-[max(-7rem,calc(50%-52rem))] top-1/2 -z-10 -translate-y-1/2 transform-gpu blur-2xl" | ||
| aria-hidden="true"> | ||
| <div class="aspect-[577/310] w-[36.0625rem] bg-gradient-to-r from-red-100 to-red-950 opacity-30" |
There was a problem hiding this comment.
What's the purpose of this entire div (one of two even)? The banner message seems to be working just fine without it.
There was a problem hiding this comment.
I'm not sure, I just changed the class from bg-gradier-* to bg-linear-* to match the new Tailwind spec
johannaengland
left a comment
There was a problem hiding this comment.
Highlighting which incident we're hovering over disappear in this PR:
Before:

The lines between the footer elements are barely visible:
Before:

Not sure how relevant it is, but the line thickness between the different segments in the user dropdown changes:
Before:

The button color in the user preference page changes (when they are greyed out):
Before:

The line grouping time recurrences on the timeslots page is much less visible:
Before:

docs/customization/htmx-frontend.rst
Outdated
| ================== | ||
|
|
||
| How to customize the look: | ||
| How to choose which themes to be made available |
There was a problem hiding this comment.
It is a bit unclear to me what "to be made available" means
docs/customization/htmx-frontend.rst
Outdated
| 1. Make sure the browser is in light mode if making a light theme, or dark mode | ||
| if making a dark theme. | ||
| 2. Choose a name that is pure ASCII, and don't reuse any of the names that | ||
| comes pre-configured. Save the generated CSS to some file. |
There was a problem hiding this comment.
| comes pre-configured. Save the generated CSS to some file. | |
| come pre-configured. Save the generated CSS to a file. |
docs/customization/htmx-frontend.rst
Outdated
| --noise: 0; | ||
| } | ||
|
|
||
| The stuff starting with ``--`` is css-variables. |
There was a problem hiding this comment.
| The stuff starting with ``--`` is css-variables. | |
| The lines starting with ``--`` are css-variables. |
docs/customization/htmx-frontend.rst
Outdated
|
|
||
| The stuff starting with ``--`` is css-variables. | ||
|
|
||
| There are two different methods to install generated themes. |
There was a problem hiding this comment.
| There are two different methods to install generated themes. | |
| There are two different methods to install generated themes: |
docs/customization/htmx-frontend.rst
Outdated
| }, | ||
| ] | ||
|
|
||
| Make the above one of the entries in the :setting:`DAISYUI_THEMES` setting and |
There was a problem hiding this comment.
This doesn't really make sense, since the example is a whole DAISYUI_THEMES
tests/htmx/test_themes_utils.py
Outdated
| result = get_theme_names() | ||
| self.assertEqual(result, set(theme_names_from_setting)) | ||
|
|
||
| def test_get_theme_names_if_theme_missing_may_raise_exception(self): |
There was a problem hiding this comment.
| def test_get_theme_names_if_theme_missing_may_raise_exception(self): | |
| def test_get_theme_names_if_theme_missing_will_raise_exception(self): |
754f81e to
63c337c
Compare
b8f91ba to
cae34d2
Compare
cae34d2 to
c812827
Compare
c812827 to
36603e2
Compare
|
|
The coverage is low because the tailwind config command doesn't have coverage. Is this something we require of developer/infra code? |



















Scope and purpose
Resolves #1262
This PR upgrades the frontend styling from Tailwind CSS v3 to v4 and DaisyUI v4 to v5.
NOTE: Most changes are straightforward (class renames, variable syntax). The compatibility CSS in 12-daisy-compat.css restores v4 styling where v5 changed defaults we want to keep
How to test
make upgrade-tailwindandmake tailwind(should already be commited, but just in case)Contributor Checklist
Every pull request should have this checklist filled out, no matter how small it is.
More information about contributing to Argus can be found in the
Development docs.