Skip to content

Fix mobile hacker dashboard actions and add reminders - #483

Merged
Adr1an04 merged 5 commits into
mainfrom
lenny/blade-mobile-hacker-dashboard-swipe
Jul 2, 2026
Merged

Fix mobile hacker dashboard actions and add reminders#483
Adr1an04 merged 5 commits into
mainfrom
lenny/blade-mobile-hacker-dashboard-swipe

Conversation

@DVidal1205

@DVidal1205 DVidal1205 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Makes the Blade hackathon hacker dashboard table horizontally scrollable on mobile
  • Shows Discord, email, status, and status action controls on mobile instead of hiding them behind md:* classes
  • Adds a mobile-only swipe hint so organizers know they can swipe left/right to reach hacker controls
  • Adds an acceptance reminder resend action for accepted hackers
  • Adds a separate AcceptedReminder hackathon email kind with its own subject
  • Temporarily maps AcceptedReminder to the same Listmonk template IDs as Accepted until the real reminder template IDs are provided

Verification

  • pnpm install --frozen-lockfile
  • pnpm exec prettier --check apps/blade/src/app/_components/admin/hackathon/hackers/hackers-table.tsx apps/blade/src/app/_components/admin/hackathon/hackers/hacker-status-toggle.tsx apps/blade/src/app/_components/admin/hackathon/hackers/acceptance-reminder-button.tsx packages/email/src/hackathons/templates.ts packages/email/src/hackathons/index.ts
  • pnpm --dir apps/blade exec eslint src/app/_components/admin/hackathon/hackers/hackers-table.tsx src/app/_components/admin/hackathon/hackers/hacker-status-toggle.tsx src/app/_components/admin/hackathon/hackers/acceptance-reminder-button.tsx
  • pnpm --filter=@forge/email lint
  • pnpm --filter=@forge/api lint
  • pnpm --filter=@forge/blade lint
  • pnpm --filter=@forge/email typecheck
  • pnpm --filter=@forge/api typecheck
  • pnpm --filter=@forge/blade typecheck

Notes

  • pnpm --filter=@forge/blade build is still blocked locally by missing required env vars (STRIPE_SECRET_KEY, MinIO keys, Apple Wallet pass vars, AUTH_SECRET, BLADE_URL, Google service account vars).

Summary by CodeRabbit

  • New Features
    • Added an “Accepted Reminder” email button for accepted hackers, opening a confirmation dialog with loading, success, and error feedback.
  • Improvements
    • Enhanced the hackers table for mobile with touch-friendly horizontal scrolling and a swipe instruction; columns now stay accessible across screen sizes.
    • Updated the status column header to “Status Actions”.
  • Bug Fixes
    • Improved status display consistency using a reliable status-to-label mapping with safe fallback behavior.
  • Documentation
    • Updated hackathon email subject/templates to support the new “Accepted Reminder” kind.
    • Clarified in the hackathon README that the base dashboard has no general leaderboard.

@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@Adr1an04, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 55 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: a2156de1-ea79-4ce2-87df-a654feac08f1

📥 Commits

Reviewing files that changed from the base of the PR and between 4289845 and 08b06f2.

📒 Files selected for processing (1)
  • packages/email/src/hackathons/templates.ts
📝 Walkthrough

Walkthrough

The PR adds an accepted-reminder email action for accepted hackers and updates the admin hacker table to remain horizontally usable on small screens.

Changes

Mobile hacker table

Layer / File(s) Summary
Scroll container and columns
apps/blade/src/app/_components/admin/hackathon/hackers/hackers-table.tsx
Adds a mobile swipe hint, wraps the table in a horizontal scroller, increases the minimum table width, and keeps all header columns visible with the updated status actions label.
Body cells always visible
apps/blade/src/app/_components/admin/hackathon/hackers/hackers-table.tsx
Removes responsive hidden gating from row cells so discord, email, status, actions, profile, survey, update, and delete render at all viewport sizes.

Acceptance reminder email

Layer / File(s) Summary
Reminder button and toggle wiring
apps/blade/src/app/_components/admin/hackathon/hackers/acceptance-reminder-button.tsx, apps/blade/src/app/_components/admin/hackathon/hackers/hacker-status-toggle.tsx
Adds a dialog-based reminder button and renders it in the hacker status controls with the existing hacker and route props.
Reminder email contract
packages/email/src/hackathons/index.ts, packages/email/src/hackathons/templates.ts
Extends the hackathon email kind set, subject mapping, and preset template IDs to support AcceptedReminder emails.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Suggested labels: Bug, Feature, Documentation, Major, Blade

Suggested reviewers: Adr1an04, alexanderpaolini

🚥 Pre-merge checks | ✅ 7 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title matches the change but violates the required issue-number prefix format. Prefix the title with an issue number like "[#123]" and keep the description concise and under 72 characters.
✅ Passed checks (7 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
No Hardcoded Secrets ✅ Passed Scanned all changed files; found no hardcoded API keys, passwords, tokens, or secret-like literals.
Validated Env Access ✅ Passed No direct process.env usage appears in any touched PR file; the new code uses existing imports and literals instead.
No Typescript Escape Hatches ✅ Passed No banned TS escape hatches found in the changed TS/TSX files: no any, @ts-ignore, @ts-expect-error, or non-null assertions.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch lenny/blade-mobile-hacker-dashboard-swipe

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/blade/src/app/_components/admin/hackathon/hackers/hackers-table.tsx`:
- Around line 452-457: The swipe hint in hackers-table.tsx is currently visual
only, so the horizontally scrollable region needs a programmatic accessibility
cue. Update the scroll container around the Table to expose that more content is
available off-screen, using appropriate ARIA/semantic HTML on the container
and/or its associated hint so mobile assistive tech can announce the
relationship. Keep the change localized to the hackers-table component and
ensure the cue is tied to the existing swipe hint text and the overflow-x-auto
region.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: 801f345c-9c71-45c1-b9f4-855f3a40dc6e

📥 Commits

Reviewing files that changed from the base of the PR and between d9803f4 and c0ee160.

📒 Files selected for processing (1)
  • apps/blade/src/app/_components/admin/hackathon/hackers/hackers-table.tsx

Comment on lines +452 to +457
<p className="text-center text-xs text-muted-foreground md:hidden">
Swipe left or right on the table to review Discord, email, status, and
admit/waitlist actions.
</p>
<div className="w-full overflow-x-auto overscroll-x-contain rounded-md border [-webkit-overflow-scrolling:touch] md:border-0">
<Table className="min-w-[1120px]">

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Associate the swipe hint with the scroll region.

The new hint is visual-only right now. On mobile assistive tech, the horizontally scrollable container has no programmatic cue that more columns/actions are off-screen.

Suggested fix
-        <p className="text-center text-xs text-muted-foreground md:hidden">
+        <p
+          id="hackers-table-mobile-hint"
+          className="text-center text-xs text-muted-foreground md:hidden"
+        >
           Swipe left or right on the table to review Discord, email, status, and
           admit/waitlist actions.
         </p>
-        <div className="w-full overflow-x-auto overscroll-x-contain rounded-md border [-webkit-overflow-scrolling:touch] md:border-0">
+        <div
+          aria-describedby="hackers-table-mobile-hint"
+          aria-label="Hackers table. Horizontally scroll on small screens to access additional columns."
+          tabIndex={0}
+          className="w-full overflow-x-auto overscroll-x-contain rounded-md border [-webkit-overflow-scrolling:touch] md:border-0"
+        >

As per path instructions, apps/blade/** requires checking accessibility, including “ARIA” and “semantic HTML”.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<p className="text-center text-xs text-muted-foreground md:hidden">
Swipe left or right on the table to review Discord, email, status, and
admit/waitlist actions.
</p>
<div className="w-full overflow-x-auto overscroll-x-contain rounded-md border [-webkit-overflow-scrolling:touch] md:border-0">
<Table className="min-w-[1120px]">
<p
id="hackers-table-mobile-hint"
className="text-center text-xs text-muted-foreground md:hidden"
>
Swipe left or right on the table to review Discord, email, status, and
admit/waitlist actions.
</p>
<div
aria-describedby="hackers-table-mobile-hint"
aria-label="Hackers table. Horizontally scroll on small screens to access additional columns."
tabIndex={0}
className="w-full overflow-x-auto overscroll-x-contain rounded-md border [-webkit-overflow-scrolling:touch] md:border-0"
>
<Table className="min-w-[1120px]">
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/blade/src/app/_components/admin/hackathon/hackers/hackers-table.tsx`
around lines 452 - 457, The swipe hint in hackers-table.tsx is currently visual
only, so the horizontally scrollable region needs a programmatic accessibility
cue. Update the scroll container around the Table to expose that more content is
available off-screen, using appropriate ARIA/semantic HTML on the container
and/or its associated hint so mobile assistive tech can announce the
relationship. Keep the change localized to the hackers-table component and
ensure the cue is tied to the existing swipe hint text and the overflow-x-auto
region.

Source: Path instructions

@DVidal1205 DVidal1205 changed the title Fix mobile hacker dashboard actions Fix mobile hacker dashboard actions and add reminders Jul 1, 2026
coderabbitai[bot]
coderabbitai Bot previously requested changes Jul 1, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
apps/blade/src/app/_components/admin/hackathon/hackers/acceptance-reminder-button.tsx (1)

93-97: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Loading spinner replaces button entirely — minor a11y/UX nit.

When isLoading is true, the Send Reminder button is unmounted and replaced by a bare Loader2 spinner with no role="status"/aria-live region, so screen reader users get no feedback that a send is in progress.

♻️ Suggested tweak
-          {isLoading ? (
-            <Loader2 className="animate-spin" />
-          ) : (
-            <Button onClick={handleSendReminder}>Send Reminder</Button>
-          )}
+          <Button onClick={handleSendReminder} disabled={isLoading}>
+            {isLoading ? (
+              <Loader2 className="h-4 w-4 animate-spin" aria-hidden="true" />
+            ) : (
+              "Send Reminder"
+            )}
+          </Button>
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@apps/blade/src/app/_components/admin/hackathon/hackers/acceptance-reminder-button.tsx`
around lines 93 - 97, The loading state in acceptance-reminder-button.tsx
currently unmounts the Send Reminder control and shows only a bare Loader2
spinner, which removes both button context and accessible progress feedback.
Update the isLoading branch in AcceptanceReminderButton so the Button remains
present/disabled while sending, and add an accessible status indicator (for
example, a role="status" or aria-live message) tied to the existing Loader2
spinner and handleSendReminder flow.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/email/src/hackathons/templates.ts`:
- Around line 40-41: The AcceptedReminder mapping is still pointing at the same
template ID as Accepted, so the reminder email reuses the acceptance copy.
Update the reminder template constants in templates.ts for the hackathon presets
so AcceptedReminder references the dedicated reminder template ID instead of the
Accepted one, using the AcceptedReminder symbol and the preset template map as
the place to change. If the dedicated IDs are not available yet, keep the TODO
but ensure the reminder path is wired separately so it can be swapped in
cleanly.

---

Nitpick comments:
In
`@apps/blade/src/app/_components/admin/hackathon/hackers/acceptance-reminder-button.tsx`:
- Around line 93-97: The loading state in acceptance-reminder-button.tsx
currently unmounts the Send Reminder control and shows only a bare Loader2
spinner, which removes both button context and accessible progress feedback.
Update the isLoading branch in AcceptanceReminderButton so the Button remains
present/disabled while sending, and add an accessible status indicator (for
example, a role="status" or aria-live message) tied to the existing Loader2
spinner and handleSendReminder flow.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: a911005d-1606-48f0-a741-66d583cb752f

📥 Commits

Reviewing files that changed from the base of the PR and between c0ee160 and 11c07fe.

📒 Files selected for processing (5)
  • apps/blade/src/app/_components/admin/hackathon/hackers/acceptance-reminder-button.tsx
  • apps/blade/src/app/_components/admin/hackathon/hackers/hacker-status-toggle.tsx
  • apps/blade/src/app/_components/admin/hackathon/hackers/hackers-table.tsx
  • packages/email/src/hackathons/index.ts
  • packages/email/src/hackathons/templates.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/blade/src/app/_components/admin/hackathon/hackers/hackers-table.tsx

Comment thread packages/email/src/hackathons/templates.ts
@Adr1an04 Adr1an04 self-assigned this Jul 2, 2026

@Adr1an04 Adr1an04 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

good

@Adr1an04
Adr1an04 enabled auto-merge July 2, 2026 05:57
@Adr1an04
Adr1an04 disabled auto-merge July 2, 2026 06:14
@Adr1an04
Adr1an04 added this pull request to the merge queue Jul 2, 2026
Merged via the queue into main with commit ace6489 Jul 2, 2026
11 checks passed
@Adr1an04
Adr1an04 deleted the lenny/blade-mobile-hacker-dashboard-swipe branch July 2, 2026 06:15
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.

2 participants