Skip to content

Add Samibookkonsole frontend prototype (HTML/CSS/JS) with AI view and navigation#2

Open
Sami20178 wants to merge 2 commits into
mainfrom
codex/add-sami-app-feature-ghm6l9
Open

Add Samibookkonsole frontend prototype (HTML/CSS/JS) with AI view and navigation#2
Sami20178 wants to merge 2 commits into
mainfrom
codex/add-sami-app-feature-ghm6l9

Conversation

@Sami20178
Copy link
Copy Markdown
Owner

Motivation

  • Provide a lightweight frontend prototype for the Sami App focused on a Samibookkonsole-style UI with multiple menus and an AI assistant view.
  • Allow quick navigation between modules and provide an intent-aware local AI responder for common developer and learning questions.
  • Ship a simple, themeable single-page UI to iterate on layout, styles and interaction flow.

Description

  • Updated README.md to describe the new Samibookkonsole frontend, list features, and give a quick start instruction.
  • Added index.html which implements the app shell, left sidebar navigation, multiple view sections (Home, Spiele, Apps, KI/Modu, Start, Lernen, Einstellungen, Account, Abmelden), a quick-tile grid, AI chat UI, search input and theme toggle.
  • Added script.js which handles view routing (setActiveView), quick-tile jumps, theme toggling, a simple intent-based responder smartAnswer, AI message rendering with addAiMessage, and search-to-view mapping.
  • Added styles.css implementing dark/light theming, responsive layout, sidebar and content visuals, quick-tile grid and chat/message styling.

Testing

  • No automated tests or CI were configured or run for this change.

Codex Task

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0c8f4e98a7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread script.js
function addAiMessage(author, text) {
if (!aiMessages) return;
const msg = document.createElement('p');
msg.innerHTML = `<strong>${author}:</strong> ${text}`;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Escape chat text before inserting into DOM

Using innerHTML with raw text lets any user-supplied chat input be interpreted as HTML/JS, so entering payloads like <img onerror=...> will execute script in the page context. This is a client-side XSS issue in the AI chat flow because addAiMessage('Du', question) passes untrusted input directly to this sink; render with textContent (or sanitize) instead.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

@Sami20178 Sami20178 left a comment

Choose a reason for hiding this comment

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

Upgraden

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant