Skip to content

UI overhaul: Tailwind + daisyUI reskin (S2–S7)#20

Merged
csengor merged 18 commits into
kaplanPRO:0.6.x-devfrom
csengor:claude/ui-overhaul-planning-ZlwnV
Apr 19, 2026
Merged

UI overhaul: Tailwind + daisyUI reskin (S2–S7)#20
csengor merged 18 commits into
kaplanPRO:0.6.x-devfrom
csengor:claude/ui-overhaul-planning-ZlwnV

Conversation

@csengor
Copy link
Copy Markdown
Member

@csengor csengor commented Apr 19, 2026

Summary

  • S2: Set up django-tailwind (Tailwind v4 + daisyUI v5), reskinned base shell with sidebar nav, theme toggle (light/dark), Inter font, Heroicons
  • S3: Reskinned project management screens (projects list, project detail, new project form), added _apply_daisy_classes() form utility
  • S4: Reskinned TM screens (list, detail, create, import) and auth screens (login, register, change password)
  • S5: Reskinned translation editor — Tailwind layout, refactored TM/comment bubbles, sidebar UX improvements, removed editor.css
  • S6: Reskinned report page, accessibility audit (ARIA labels, <aside> landmarks, scope="col"), tablet responsiveness, theme persistence fix, deleted orphaned main.js
  • S7: Added chevron action buttons to table rows for navigation discoverability

All 256 tests pass. Visual consistency verified via Playwright across both themes at desktop (1366×768) and tablet (768×1024) viewports.

Test plan

  • python manage.py migrate && python manage.py runserver — app starts
  • Light and dark mode toggle works on all pages including login
  • Projects → Project → Editor navigation flow
  • Translation Memories → TM detail navigation
  • Report page accessible from project detail
  • Editor: segment editing, TM sidebar, comments sidebar, filter, propagation
  • Tablet viewport (768px): sidebar collapses, editor sidebars use narrower width
  • python manage.py test — all 256 tests pass

🤖 Generated with Claude Code

csengor and others added 18 commits March 23, 2026 00:18
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
get_manifest() referenced .iso instead of .iso_code, and the export
view passed LanguageProfile objects to Path() instead of their
iso_code strings. Both caused the project export to fail with
AttributeError / TypeError.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- project.js, editor.js: getCSRFToken() now uses
  querySelector('[name=csrfmiddlewaretoken]') instead of grabbing
  the first/last input element, which broke when the S2 sidebar
  added checkbox inputs before/after page content.
- project.js: className="show" → classList.add('show') so modal
  toggling doesn't strip Tailwind classes.
- main.js: same className → classList fix for search form toggle.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- projects.html: daisyUI table, Alpine search filter toggle,
  navbar breadcrumb + Create button, replaces old header/nav
- project.html: daisyUI file/reference tables, modal overlays for
  assign-linguist and KPP upload, styled context menu and toast,
  breadcrumb navigation
- newproject.html: manual form-control layout replacing form.as_table,
  file input and checkbox detection, help text as title tooltips
- forms.py: add _apply_daisy_classes() to auto-apply daisyUI widget
  CSS (input, select, file-input, checkbox, textarea) across all forms

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Native <option> elements ignore most CSS but respect background-color
and color. Without explicit styling, options render as white-on-white
in the kaplan-dark theme.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace old header/nav, Material Icons, main.js search toggle, and
raw tables with daisyUI components, Alpine.js filter toggle, and
breadcrumb navigation — matching the S3 project screens pattern.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace old table-based login/register/change-password forms with
centered daisyUI cards and styled form controls. Add _apply_daisy_classes
to auth forms, fix HTML help_text rendering as raw tags in tooltips.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Rewrite editor.html to extend base.html with full Tailwind layout
- Fix 6 className comparisons → classList.contains() in editor.js
- Rewrite toggleExpand() to use data-expanded attribute + Heroicons SVGs
- Refactor TM hit/comment creation to use Tailwind utilities directly
- Rename .toggle → .sidebar-panel to avoid daisyUI component collision
- Add "Add Comment" button; show form on demand instead of always
- Add segment status color rules + overlay styles to theme CSS
- Delete legacy editor.css

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Reskin report.html with daisyUI table, breadcrumb nav, project context
- Delete orphaned main.js (replaced by Alpine x-show in S3)
- Add scope="col" to all data table headers for screen readers
- Add ARIA labels and <aside> landmarks to editor sidebars
- Add responsive sidebar widths (w-48 on tablet, w-64 on desktop)
- Move theme init script to base.html so dark mode works on all pages
- Align sidebar brand height with navbar (h-14 → h-16)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ty (S7)

The new daisyUI design made row links less visually obvious than the old
wireframe-style URLs. Add a chevron-right icon button in the last column
of project, file, TM, and reference tables as an explicit navigation
affordance.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The design document served its purpose across S1–S7. Design decisions
and gotchas are captured in commit history; the doc would go stale.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@csengor csengor merged commit 0431802 into kaplanPRO:0.6.x-dev Apr 19, 2026
2 checks passed
@csengor csengor deleted the claude/ui-overhaul-planning-ZlwnV branch April 19, 2026 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant