Skip to content

webui: Material 3 redesign with real API integration and SVG logo#193

Merged
andrewwormald merged 1 commit into
mainfrom
feat/webui-material3-redesign
Apr 30, 2026
Merged

webui: Material 3 redesign with real API integration and SVG logo#193
andrewwormald merged 1 commit into
mainfrom
feat/webui-material3-redesign

Conversation

@andrewwormald
Copy link
Copy Markdown
Collaborator

@andrewwormald andrewwormald commented Apr 29, 2026

Summary

  • Full Material 3 React UI replacing the minimal Tailwind table — built on React 18 + Babel Standalone (CDN, no build step). Includes KPI hero bar, ring chart, filter/search bar, bulk actions, JSON object-data drawer, timeline view, toast notifications, light/dark themes, five tonal colour seeds, density modes, and keyboard shortcuts.
  • Go template fix — switched home.go from html/template to text/template with [[ ]] delimiters so JSX {{ }} syntax and arrow-function attributes pass through unmodified at compile time.
  • Real API integration — replaces all mock data with live calls to list, update, and objectData endpoints via window.__API_PATHS injected by the Go template.
  • SVG logo — adds logo/logo.svg and logo/logo_dark.svg; updates the README reference from PNG and renders the correct variant in the webui sidebar based on the active theme.
Screenshot 2026-04-29 at 10 20 19

🤖 Generated with Claude Code

- Replace the minimal Tailwind table UI with a full Material 3 React UI
  built on React 18 + Babel Standalone (CDN, no build step). Features
  include a KPI hero bar, ring chart, filter/search, bulk actions, a
  JSON object-data drawer, timeline view, toast rail, light/dark themes,
  five tonal colour seeds, density modes, and keyboard shortcuts.
- Switch home.go from html/template to text/template with [[ ]] delimiters
  so JSX {{ }} syntax and arrow-function attributes pass through unmodified.
- Wire up real API calls (list, update, objectData) via window.__API_PATHS
  injected by the Go template; remove all mock-data generation.
- Add SVG logo files (light + dark variants) and update README and the
  webui sidebar brand to use them, with CSS-based theme switching.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 29, 2026

📝 Walkthrough

Walkthrough

The pull request includes two updates: the README logo asset reference is switched from PNG to SVG format, and the home handler in the frontend adapter is refactored to remove JavaScript template embedding and dynamic script generation. The handler now parses home.html directly using custom template delimiters ([[ and ]]) to avoid conflicts with JSX syntax, simplifies response type handling to HTML, and consolidates error paths.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

🐰 A logo hops from raster to vector bright,
SVG scales perfectly, crisp and light,
The handler sheds its JavaScript costume,
Template delimiters bloom like clover blooms,
Simpler paths, cleaner code, a hop towards the right! 🌿

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately reflects the main changes: Material 3 redesign (webui), real API integration, and SVG logo additions.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The pull request description comprehensively documents all key changes: Material 3 React UI redesign, Go template fix for JSX compatibility, real API integration, and SVG logo additions.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/webui-material3-redesign

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@adapters/webui/internal/frontend/home.go`:
- Line 6: Replace the use of text/template with html/template to ensure proper
HTML/JS escaping for data injected into JavaScript string literals; update the
import from "text/template" to "html/template" and keep the template creation
calls (e.g., template.New(...).Delims("[[", "]]").Funcs(...).Parse...) unchanged
so Delims("[[", "]]") and any template functions continue to work while
html/template performs safe escaping for the Paths fields that are injected at
the JavaScript string sites (lines ~530–534).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 873f410a-1b3b-4c7b-9f4b-b56421c26431

📥 Commits

Reviewing files that changed from the base of the PR and between 516621c and 25de379.

⛔ Files ignored due to path filters (2)
  • logo/logo.svg is excluded by !**/*.svg
  • logo/logo_dark.svg is excluded by !**/*.svg
📒 Files selected for processing (3)
  • README.md
  • adapters/webui/internal/frontend/home.go
  • adapters/webui/internal/frontend/home.html

Comment thread adapters/webui/internal/frontend/home.go
@andrewwormald andrewwormald enabled auto-merge (squash) April 29, 2026 10:28
@andrewwormald andrewwormald merged commit 2156b95 into main Apr 30, 2026
8 checks passed
@andrewwormald andrewwormald deleted the feat/webui-material3-redesign branch April 30, 2026 07:59
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.

2 participants