Skip to content

✨ Add rotating "Did You Know" tips for variable-reward engagement on clusters, compliance, and arcade pages#3793

Open
Copilot wants to merge 2 commits intomainfrom
copilot/auto-qa-adoption-engagement-opportunities
Open

✨ Add rotating "Did You Know" tips for variable-reward engagement on clusters, compliance, and arcade pages#3793
Copilot wants to merge 2 commits intomainfrom
copilot/auto-qa-adoption-engagement-opportunities

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 28, 2026

The clusters, compliance, and arcade pages showed identical content every visit with no variable-reward elements, missing an engagement psychology opportunity (Nir Eyal's Hook Model: variable ratio reinforcement).

What's added

New RotatingTip component (web/src/components/ui/RotatingTip.tsx)

  • Displays a page-specific tip in the dashboard header (rightExtra slot) — a different tip each visit
  • sessionStorage persists the tip index so it stays stable within a session but rotates across visits
  • NaN-safe: corrupted sessionStorage falls back gracefully to a fresh random pick
  • role="status" + aria-label for screen reader accessibility

Analytics (web/src/lib/analytics.ts)

  • New ksc_tip_shown(page, tip) → GA4 ksc_tip_shown event for measuring engagement impact

Wired on three pages — each receives 5 contextual tips:

  • Clusters — drag/reorder, filter tabs, GPU panel, multi-cloud, cluster detail drill-down
  • Compliance — Kyverno auto-remediation, Trivy CVE scanning, Kubescape CIS benchmarks, per-cluster filtering
  • Arcade — custom layout, multi-card configs, session persistence
// Usage pattern — all three pages follow this
<DashboardPage
  ...
  rightExtra={<RotatingTip page="clusters" />}
/>

Changes Made

  • Added web/src/components/ui/RotatingTip.tsx — new reusable rotating tip component
  • Added emitTipShown() GA4 event to web/src/lib/analytics.ts
  • Wired <RotatingTip> into Clusters, Compliance, and Arcade pages

Checklist

  • I used a coding agent (Claude Code, Copilot, Gemini, or Codex) to generate/review this code
  • I have reviewed the project's contribution guidelines
  • New cards target console-marketplace, not this repo
  • isDemoData is wired correctly (cards show Demo badge when using demo data)
  • I have written unit tests for the changes (if applicable)
  • I have tested the changes locally and ensured they work as expected
  • All commits are signed with DCO (git commit -s)

Screenshots or Logs (if applicable)

The tip renders in the header right-side slot as a subtle purple pill:

[ 💡 Tip: You can drag cluster cards to reorder them on the dashboard. ]

Rotates to a different tip on next visit. No tip shown if the tips array is empty or sessionStorage is unavailable.


👀 Reviewer Notes

  • Tips are defined as a plain Record<string, string[]> constant — easy to extend or i18n later
  • page prop is typed as keyof typeof TIPS to prevent typos at call sites
  • The rightExtra slot already existed in DashboardPage — no API changes needed

⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.

@kubestellar-prow kubestellar-prow bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. dco-signoff: no Indicates the PR's author has not signed the DCO. labels Mar 28, 2026
Copilot AI linked an issue Mar 28, 2026 that may be closed by this pull request
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 28, 2026

Deploy Preview for kubestellarconsole ready!

Name Link
🔨 Latest commit 2564378
🔍 Latest deploy log https://app.netlify.com/projects/kubestellarconsole/deploys/69c7df346869260008f33052
😎 Deploy Preview https://deploy-preview-3793.console-deploy-preview.kubestellar.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link
Copy Markdown
Contributor

👋 Hey @Copilot — thanks for opening this PR!

🤖 This project is developed exclusively using AI coding assistants.

Please do not attempt to code anything for this project manually.
All contributions should be authored using an AI coding tool such as:

This ensures consistency in code style, architecture patterns, test coverage,
and commit quality across the entire codebase.


This is an automated message.

@kubestellar-prow kubestellar-prow bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Mar 28, 2026
@github-actions github-actions bot added dco-signoff: yes Indicates the PR's author has signed the DCO. and removed dco-signoff: no Indicates the PR's author has not signed the DCO. labels Mar 28, 2026
@clubanderson clubanderson changed the title [WIP] Add variable reward elements for engagement psychology 🐛 Add variable reward elements for engagement psychology Mar 28, 2026
@clubanderson clubanderson removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 28, 2026
@clubanderson clubanderson marked this pull request as ready for review March 28, 2026 13:55
Copilot AI review requested due to automatic review settings March 28, 2026 13:55
@kubestellar-prow kubestellar-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 28, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

@clubanderson clubanderson removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 28, 2026
…iance, arcade pages

Signed-off-by: GitHub Copilot <copilot@github.com>

Agent-Logs-Url: https://github.com/kubestellar/console/sessions/8be6cc85-a823-4aee-ab45-f8ead0f8b90c

Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
@kubestellar-prow kubestellar-prow bot added dco-signoff: no Indicates the PR's author has not signed the DCO. and removed dco-signoff: yes Indicates the PR's author has signed the DCO. labels Mar 28, 2026
@kubestellar-prow
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from clubanderson. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubestellar-prow
Copy link
Copy Markdown
Contributor

Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits.

📝 Please follow instructions in the contributing guide to update your commits with the DCO

Full details of the Developer Certificate of Origin can be found at developercertificate.org.

The list of commits missing DCO signoff:

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@kubestellar-prow kubestellar-prow bot removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 28, 2026
@github-actions github-actions bot removed the dco-signoff: no Indicates the PR's author has not signed the DCO. label Mar 28, 2026
@kubestellar-prow kubestellar-prow bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 28, 2026
@github-actions github-actions bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Mar 28, 2026
Copilot AI changed the title 🐛 Add variable reward elements for engagement psychology ✨ Add rotating "Did You Know" tips for variable-reward engagement on clusters, compliance, and arcade pages Mar 28, 2026
Copilot AI requested a review from clubanderson March 28, 2026 14:02
@github-actions github-actions bot mentioned this pull request Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

copilot dco-signoff: yes Indicates the PR's author has signed the DCO. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Auto-QA] 1 adoption & engagement psychology opportunities found

3 participants