Skip to content

feat: Add dashboard widgets, notifications refactor, and hero prototypes - #940

Merged
aXenDeveloper merged 2 commits into
canaryfrom
claude/vitnode-hero-marketing-huzpdc
Nov 27, 2026
Merged

aXenDeveloper merged 2 commits into
canaryfrom
claude/vitnode-hero-marketing-huzpdc

Conversation

@aXenDeveloper

Copy link
Copy Markdown
Owner

Description

What?

This PR introduces several significant features and refactors:

  1. New Dashboard Widgets: Added three new admin dashboard widgets:

    • AI Usage widget (ai-usage-widget.tsx) - displays AI token consumption and trends
    • New Members widget (new-members-widget.tsx) - shows signup metrics with chart
    • Background Jobs widget (background-jobs-widget.tsx) - monitors cron job status
  2. Notifications System Refactor:

    • Replaced the old notifications screen with a new feed-based component (notifications-feed.tsx)
    • Simplified notifications bell UI (notifications-bell-content.tsx)
    • Added unread-count-badge.tsx for displaying unread notification counts
    • Removed legacy notification routes and search functionality
    • Updated notification query caching strategy
  3. Cron Heartbeat System:

    • Added database table and migration for tracking cron job heartbeats
    • Implemented heartbeat route (heartbeat.route.ts) for monitoring job execution
    • Added heartbeat query utilities for dashboard widgets
  4. Hero Section Prototypes:

    • Added comprehensive hero section prototypes in plans/prototypes/hero-r2/ with 6 interactive variants (Globe, Deck, Build, Spotlight, Gather, Pass)
    • Each variant includes HTML, CSS, and JavaScript implementations
    • Added base prototype harness and build tooling
    • Added marketing plan document
  5. Home Page Enhancements:

    • New app-pages.tsx component for hero wall illustration
    • Added pages-copy.ts for localized content
    • New final-cta.tsx section
    • Added install-command.tsx component
    • Added parallax-dust.tsx for visual effects
    • Added use-word-rotation.ts hook for animated text
  6. Localization:

    • Added comprehensive translations for new bento section in English and Polish
    • Updated service descriptions in core locales
  7. UI Component Updates:

    • Enhanced hover-card.tsx with improved preview functionality
    • Updated toggle-group.tsx with better variant support
    • Added dialog-stack.ts utility for managing nested dialogs
    • Updated user-preview.tsx with context support
  8. File Alt Editor Enhancement:

    • Integrated AI-powered alt text generation using Sparkles icon
    • Added multi-language presence support

Why?

  • Dashboard Widgets: Provide admins with real-time visibility into system health, user growth, and AI usage metrics
  • Notifications Refactor: Simplify the notification system with a more performant feed-based approach and cleaner UI
  • Cron Monitoring: Enable better observability of background job execution through heartbeat tracking
  • Hero Prototypes: Explore multiple interactive hero section designs for the marketing site
  • Home Page: Enhance the landing page with better visual hierarchy, interactive elements, and clearer value proposition
  • AI Integration: Automatically generate accessible alt text for images, improving content accessibility

Test Plan

  • Existing unit tests pass (notifications bell test updated)
  • Dashboard widgets render correctly with mock data
  • Notifications feed displays and updates properly
  • Cron heartbeat tracking works end-to-end
  • Hero prototypes are interactive and responsive
  • Localization strings are properly loaded for new sections

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T10:37:14.083394Z a4e3013 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@aXenDeveloper aXenDeveloper changed the title Add dashboard widgets, notifications refactor, and hero prototypes feat: Add dashboard widgets, notifications refactor, and hero prototypes Nov 26, 2026
@github-actions github-actions Bot added the 💡 Feature A new feature label Nov 26, 2026
@aXenDeveloper
aXenDeveloper force-pushed the claude/vitnode-hero-marketing-huzpdc branch from 08f3a78 to 6ad7e84 Compare November 26, 2026 12:09
@chatgpt-codex-connector

Copy link
Copy Markdown

💡 Codex Review

const writes: Write[] = values.altText
.filter(entry => entry.value !== storedText(entry.languageCode))

P2 Badge Preserve the distinction between missing and intentionally empty ALT

For a language with no saved ALT, storedText() converts null to "", so saving an intentionally empty field filters out the write entirely. The sheet reports success, but no human-authored empty row is created, and missingAltLanguages() in packages/api/src/lib/ai/alt.ts still considers that language eligible for automatic generation. This breaks the documented decorative-image workflow. Preserve the missing-versus-empty distinction and allow explicitly saving an empty human ALT without treating untouched missing translations as intentional blanks.



P2 Badge Preserve unsaved translations when ALT data refreshes

If an editor changes one language and then uses “Let AI rewrite” for another saved language, onRemove invalidates the ALT query and updates dataUpdatedAt. This key then remounts the entire editor, silently discarding all unsaved translations and policy changes. A background refetch can cause the same loss. Keep the form identity stable and reconcile refreshed values without replacing dirty fields, or explicitly guard destructive refreshes while the form has unsaved changes.


if (query.isError) {
return (
<Empty className="flex-1 p-0" role="alert">

P1 Badge Retain heartbeat data when a background refresh fails

After the heartbeat loads successfully, a failed automatic 60-second refresh sets query.isError even though cached data remains available. This unconditional branch replaces the scheduler history and queue failure details with an empty state precisely when monitoring may be most useful. Restrict the empty state to errors without data and show a retryable warning above retained content for refetch failures; the new AI Usage and New Members widgets have the same branch pattern. The repository explicitly requires this behavior in AGENTS.md.

AGENTS.md reference: AGENTS.md:L81-L81


https://github.com/aXenDeveloper/vitnode/blob/08f3a78a36b52e159b79d21b42357afbb98e03ac/packages/vitnode/src/pages/notifications.tsx#L10-L14
P2 Badge Update the test-email destination before deleting the inbox page

Sending a notification test email still builds its action link with absoluteUrl("/notifications") in packages/api/src/models/notifications/email.ts:215. Repository-wide searches across apps, packages, and plugins found no replacement route or redirect for that URL after this page and its route registration are deleted, so recipients following the test email's action now reach a nonexistent page. Update the email destination to a supported surface or retain a compatible route.

ℹ️ 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".

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

React Doctor found no new issues. 🎉

Reviewed by React Doctor for commit a4e3013.

@aXenDeveloper
aXenDeveloper force-pushed the claude/vitnode-hero-marketing-huzpdc branch from 56582c6 to 812a683 Compare November 26, 2026 19:25
Replace the hero wall with the islands scene (engine, runtime and scene
components) and rebuild the bento section around tiles that mirror real
app screens: admin table, inbox, editor, AI actions and the search
dialog. Update the hero copy and the en/pl site locales, extend the
marketing styles, and keep the site-plan prototypes used to pick the
direction.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@aXenDeveloper
aXenDeveloper force-pushed the claude/vitnode-hero-marketing-huzpdc branch from 188fa98 to 76bd9b6 Compare November 27, 2026 10:23
@aXenDeveloper
aXenDeveloper merged commit 6dd029b into canary Nov 27, 2026
5 checks passed
@aXenDeveloper
aXenDeveloper deleted the claude/vitnode-hero-marketing-huzpdc branch November 27, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💡 Feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant