Skip to content

bugfix: index.html changes and testing if the deploy script for the e… - #519

Merged
rolandpickl merged 2 commits into
mainfrom
bugfix-keycloak-indexhtml-error
Jun 4, 2026
Merged

bugfix: index.html changes and testing if the deploy script for the e…#519
rolandpickl merged 2 commits into
mainfrom
bugfix-keycloak-indexhtml-error

Conversation

@rolandpickl

@rolandpickl rolandpickl commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

…ddi manager works correctly

Summary

index.html was a copy of manage.html due to a bug in the auth implementation of keycloak. This is fixed now

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📝 Documentation update
  • ♻️ Refactoring (no functional changes)
  • 🔧 Chore (dependency updates, CI changes, etc.)

Related Issue

Closes #

Changes Made

How to Test

Checklist

  • My code follows the project's code style
  • I have added tests that prove my fix/feature works
  • Existing tests pass locally (./mvnw clean verify -DskipITs)
  • I have updated documentation if needed
  • [ x My commit messages follow conventional commits
  • I have not committed any secrets, API keys, or tokens
  • This PR has a clear, focused scope (one concern per PR)

Summary by CodeRabbit

  • New Features

    • Added syntax highlighting and editor support for CSS, HTML, JavaScript, JSON, Python, TypeScript, XML, and YAML.
    • Added support for template languages: Handlebars, Liquid, MDX, Razor, and Freemarker2.
    • Enhanced editor features including code completion, hover information, document formatting, and symbol navigation.
  • Updates

    • Updated management interface assets and page redirects.

@rolandpickl
rolandpickl requested a review from ginccc as a code owner June 4, 2026 14:42
@coderabbitai

coderabbitai Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

This PR adds 16 new minified language support bundles to the frontend assets directory. It introduces an LSP adapter infrastructure that all language modes depend on, 11 language tokenizer/grammar definitions for syntax highlighting and editor behaviors, and four language mode bundles that manage worker lifecycle and language-service providers. HTML entry files are updated to redirect and reference new hashed bundle filenames.

Changes

Language Support Bundles and Entry Point Updates

Layer / File(s) Summary
LSP language feature adapter infrastructure
src/main/resources/META-INF/resources/assets/lspLanguageFeatures-iTapPTXa.js
New bundled module provides type guards, conversion helpers, and provider adapter classes (completion, hover, highlights, definition, references, symbols, rename, formatting, colors, folding ranges, selection ranges) that map LSP responses into Monaco editor-compatible formats, forming the shared foundation for language mode bundles.
Language tokenizer and grammar definitions
src/main/resources/META-INF/resources/assets/freemarker2-BiIjQAxc.js, handlebars-D2TOOSOX.js, html-tZReBU-g.js, javascript-BEPXgjMd.js, liquid-DEeaS_EA.js, mdx-fIs3Hl06.js, python-BldTDRww.js, razor-DON-1Dov.js, typescript-E8i5rMS1.js, xml-CL4gL865.js, yaml-CFcMopXx.js
11 new language definition modules export conf (editor configuration with bracket pairs, auto-closing, indentation rules, folding markers, and comments) and language (Monarch-style tokenizers with state machines for syntax highlighting of Freemarker, Handlebars, HTML, JavaScript, Liquid, MDX, Python, Razor, TypeScript, XML, and YAML).
Language mode bundles with worker lifecycle
src/main/resources/META-INF/resources/assets/cssMode-D8JTVQLU.js, htmlMode-BH9kD7xO.js, jsonMode-GDfcS83-.js, tsMode-B7LVotFm.js
Four new bundled modules implement WorkerManager for lazy worker creation, idle disposal, and config-change refresh; each exports setupMode and setupMode1 to conditionally register language-service providers (completion, hover, definitions, formatting, etc.) via the LSP adapters; also re-export adapter and utility symbols for range/text conversion.
HTML entry point redirect and asset wiring
src/main/resources/META-INF/resources/index.html, src/main/resources/META-INF/resources/manage.html
Root index.html adds client-side redirect to /manage and updates favicon link to /img/favicon.ico; manage.html updates JavaScript and stylesheet references from old hashed filenames to new ones (index-DpBjm1jY.js and index-CJdl8JdC.css).

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • labsai/EDDI#517: Updates root redirect and manager HTML entry point to prevent white-page issue at /.

Suggested reviewers

  • ginccc

🐰 A bundled tapestry of tongues!
Syntax highlights leap and bound,
LSP adapters weave the dance,
Workers hum in idle's trance,
Manage redirects all the code—
Eight new languages on the road! 🎨

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title is incomplete and appears to be cut off mid-sentence, making it vague and unrelated to the actual changeset of 16+ new language mode/syntax files. Complete the title with clear, concise language describing the primary change. For example: 'Add language modes and syntax highlighting support for multiple file types' or similar, based on the actual main change in the PR.
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 (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
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.

✏️ 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 bugfix-keycloak-indexhtml-error

Warning

Review ran into problems

🔥 Problems

Stopped waiting for pipeline failures after 30000ms. One of your pipelines takes longer than our 30000ms fetch window to run, so review may not consider pipeline-failure results for inline comments if any failures occurred after the fetch window. Increase the timeout if you want to wait longer or run a @coderabbit review after the pipeline has finished.


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.

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
src/main/resources/META-INF/resources/index.html (1)

6-8: 💤 Low value

Dual redirect mechanism is redundant but acceptable.

The page uses both a meta refresh tag (line 6) and a JavaScript redirect (line 8) to the same destination. While redundant, this provides a defensive fallback for older browsers or environments where JavaScript is disabled. If this is intentional, consider adding a comment explaining the dual approach. Otherwise, you may remove one mechanism.

♻️ Optional: Remove redundant meta refresh if JavaScript redirect is sufficient
-    <meta http-equiv="refresh" content="0;url=/manage">
     <link rel="icon" href="/img/favicon.ico">
     <script>window.location.replace('/manage');</script>

Alternatively, keep both and add a comment:

     <title>EDDI — Redirecting to Manager</title>
+    <!-- Meta refresh provides fallback when JavaScript is disabled -->
     <meta http-equiv="refresh" content="0;url=/manage">
     <link rel="icon" href="/img/favicon.ico">
+    <!-- Primary redirect via JavaScript to prevent back-button loop -->
     <script>window.location.replace('/manage');</script>
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/main/resources/META-INF/resources/index.html` around lines 6 - 8, The
file currently performs two redirects: the meta refresh tag (meta
http-equiv="refresh" content="0;url=/manage") and the JS redirect
(window.location.replace('/manage')); decide whether to keep both for fallback
or remove one. If keeping both, add a brief HTML comment above the meta/script
explaining the intentional dual-redirect fallback for non-JS browsers; if
removing redundancy, delete the meta refresh line and keep the JS redirect (or
vice versa) so only one redirect mechanism remains. Target the meta tag and the
script block (window.location.replace) when making the change.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@src/main/resources/META-INF/resources/index.html`:
- Around line 6-8: The file currently performs two redirects: the meta refresh
tag (meta http-equiv="refresh" content="0;url=/manage") and the JS redirect
(window.location.replace('/manage')); decide whether to keep both for fallback
or remove one. If keeping both, add a brief HTML comment above the meta/script
explaining the intentional dual-redirect fallback for non-JS browsers; if
removing redundancy, delete the meta refresh line and keep the JS redirect (or
vice versa) so only one redirect mechanism remains. Target the meta tag and the
script block (window.location.replace) when making the change.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: b2336388-29ef-49a5-80d4-629afb7843ab

📥 Commits

Reviewing files that changed from the base of the PR and between 0f40181 and ea568d0.

📒 Files selected for processing (21)
  • src/main/resources/META-INF/resources/assets/cssMode-D8JTVQLU.js
  • src/main/resources/META-INF/resources/assets/freemarker2-BiIjQAxc.js
  • src/main/resources/META-INF/resources/assets/handlebars-D2TOOSOX.js
  • src/main/resources/META-INF/resources/assets/html-tZReBU-g.js
  • src/main/resources/META-INF/resources/assets/htmlMode-BH9kD7xO.js
  • src/main/resources/META-INF/resources/assets/index-CJdl8JdC.css
  • src/main/resources/META-INF/resources/assets/index-DpBjm1jY.js
  • src/main/resources/META-INF/resources/assets/index-cMpUMLNo.css
  • src/main/resources/META-INF/resources/assets/javascript-BEPXgjMd.js
  • src/main/resources/META-INF/resources/assets/jsonMode-GDfcS83-.js
  • src/main/resources/META-INF/resources/assets/liquid-DEeaS_EA.js
  • src/main/resources/META-INF/resources/assets/lspLanguageFeatures-iTapPTXa.js
  • src/main/resources/META-INF/resources/assets/mdx-fIs3Hl06.js
  • src/main/resources/META-INF/resources/assets/python-BldTDRww.js
  • src/main/resources/META-INF/resources/assets/razor-DON-1Dov.js
  • src/main/resources/META-INF/resources/assets/tsMode-B7LVotFm.js
  • src/main/resources/META-INF/resources/assets/typescript-E8i5rMS1.js
  • src/main/resources/META-INF/resources/assets/xml-CL4gL865.js
  • src/main/resources/META-INF/resources/assets/yaml-CFcMopXx.js
  • src/main/resources/META-INF/resources/index.html
  • src/main/resources/META-INF/resources/manage.html

@rolandpickl
rolandpickl merged commit 1913d9c into main Jun 4, 2026
19 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request Jun 23, 2026
13 tasks
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