LearnNewsExamplesServices
Frontmatter
id8033
titleCreate InterventionPanel.scss and Fix Selection Contrast
stateClosed
labels
enhancementdesignai
assigneestobiu
createdAtDec 5, 2025, 3:18 AM
updatedAtDec 5, 2025, 3:40 AM
githubUrlhttps://github.com/neomjs/neo/issues/8033
authortobiu
commentsCount1
parentIssue7918
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 5, 2025, 3:40 AM

Create InterventionPanel.scss and Fix Selection Contrast

Closed v11.16.0 enhancementdesignai
tobiu
tobiu commented on Dec 5, 2025, 3:18 AM

Create the app-specific stylesheet for AgentOS.view.InterventionPanel and address contrast issues for the priority column during row selection.

Requirements:

  1. Refactor InterventionPanel.mjs to use CSS classes (agent-priority-error, agent-priority-warning) instead of inline styles for the priority renderer.
  2. Create resources/scss/src/apps/agentos/InterventionPanel.scss to define the base styles for these priority classes.
  3. Implement contrast fixes:
    • Ensure agent-priority-warning (Orange) changes color (e.g., to Black or Dark Brown) when the parent row is .neo-selected (Cyan background) to maintain readability.

Rationale: Inline styles cannot be easily overridden by CSS selection states. Using classes allows us to react to the neo-selected state of the grid row.

tobiu added the enhancement label on Dec 5, 2025, 3:18 AM
tobiu added the design label on Dec 5, 2025, 3:18 AM
tobiu added the ai label on Dec 5, 2025, 3:18 AM
tobiu added parent issue #7918 on Dec 5, 2025, 3:19 AM
tobiu assigned to @tobiu on Dec 5, 2025, 3:20 AM
tobiu referenced in commit 062efd2 - "Create InterventionPanel.scss and Fix Selection Contrast #8033" on Dec 5, 2025, 3:40 AM
tobiu
tobiu Dec 5, 2025, 3:40 AM

Input from Gemini 2.5 pro:

✦ I have implemented the app-specific styling for the Intervention Panel, including contrast fixes for the Cyberpunk theme.

Implementation Details:

  1. Refactored Renderer: InterventionPanel.mjs now returns VDOM with classes (.agent-priority-warning) instead of inline styles.
  2. Scoped Styles (src): resources/scss/src/apps/agentos/InterventionPanel.scss defines the base styles within the .agent-panel-intervention.neo-panel scope and handles the selection state logic via variables.
  3. Theme Variables:
    • Cyberpunk: Sets selected state text to #000 (Black) for high contrast against the Cyan background.
    • Standard Themes: Maintains original colors (Orange/Red) in both selected and unselected states (or matching defaults).

This ensures accessibility and visual consistency across themes.

tobiu closed this issue on Dec 5, 2025, 3:40 AM