Skip to content

🎨 Palette: Restore placeholder on Cosmology Map interaction - #381

Open
ightevenmckane187 wants to merge 1 commit into
mainfrom
palette/cosmology-info-placeholder-7597171459057242166
Open

🎨 Palette: Restore placeholder on Cosmology Map interaction#381
ightevenmckane187 wants to merge 1 commit into
mainfrom
palette/cosmology-info-placeholder-7597171459057242166

Conversation

@ightevenmckane187

Copy link
Copy Markdown
Owner

🎨 Palette: Restore placeholder on Cosmology Map interaction

  • 💡 What: Added a visual placeholder inside #archetype-info container instructing the user to "Hover or focus an archetype node to view its mythic mandate.", and implemented mouseleave/blur event listeners on the .archetype-node elements to restore it once interaction ends.
  • 🎯 Why: Previously, the #archetype-info block was completely empty and invisible until first interaction, providing no guidance to the user. Also, once a node was hovered/focused, the text remained there permanently even when the mouse left, leading to stale content.
  • ♿ Accessibility: Centered placeholder styled with theme-aware text contrast (--text-color with opacity: 0.65 and italic style) ensuring the experience is clean and readable, while registering listeners for both mouse (mouseleave) and keyboard focus (blur).
  • 🧪 Verification: Added a comprehensive integration test in tests/server.test.ts checking for HTML rendering of placeholder, classes, and registration of the mouseleave/blur events. Verified visually using Playwright with force=True hover triggers.

PR created automatically by Jules for task 7597171459057242166 started by @ightevenmckane187

@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

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