Skip to content

Timer fully built - #17

Merged
Bebaz0 merged 2 commits into
mainfrom
feature/recruitment-application-countdown
Sep 15, 2026
Merged

Bebaz0 merged 2 commits into
mainfrom
feature/recruitment-application-countdown

Conversation

@Bebaz0

@Bebaz0 Bebaz0 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@Bebaz0
Bebaz0 requested a lite review from Copilot September 15, 2026 11:18
@Bebaz0 Bebaz0 added the enhancement New feature or request label Sep 15, 2026
@vercel

vercel Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
new-website Ready Ready Preview Sep 15, 2026 11:26am UTC

Copilot AI lite review requested due to automatic review settings September 15, 2026 11:26
@Bebaz0
Bebaz0 merged commit 247616b into main Sep 15, 2026
5 checks passed
@Bebaz0
Bebaz0 deleted the feature/recruitment-application-countdown branch September 15, 2026 11:27

Copilot AI 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.

🟡 Changes recommended

One critical and two moderate unresolved issues remain.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds a client-side recruitment countdown and deadline-aware homepage CTA.

Changes:

  • Implements dot-matrix countdown rendering and accessibility labeling.
  • Adds deadline-based recruitment state and closed-state messaging.
File summaries
File Summary and review findings
src/components/Countdown.tsx Implements the countdown display. Moderate issues: accessible text omits seconds (3 votes), and durations beyond 99 days are not monotonic (1 vote).
src/app/page.tsx Integrates deadline-based recruitment state. Critical issue: closure is client-only, allowing the prerendered or no-JavaScript page to expose the Google Forms link after the deadline (2 votes).
Review details

Suppressed comments (1)

src/components/Countdown.tsx:80

  • When the target is more than 99 days away, capping only the day field makes the displayed duration increase as the real countdown decreases: 100 days shows 99:00:00:00, then 99 days 23:59:59 shows 99:23:59:59. Clamp the total seconds to the largest representable duration before splitting so the timer remains monotonic.
    // Only two digits fit, so anything past 99 days shows as 99
    { label: "Days", value: Math.min(99, Math.floor(seconds / 86400)) },
    { label: "Hours", value: Math.floor(seconds / 3600) % 24 },
    { label: "Minutes", value: Math.floor(seconds / 60) % 60 },
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/app/page.tsx
Comment on lines +83 to +84
const [deadlinePassed, setDeadlinePassed] = useState(false);
const applicationsOpen = isRecruiting && !deadlinePassed;
Comment on lines +123 to +126
const spoken = units
.slice(0, 3)
.map((unit) => `${unit.value} ${unit.label.toLowerCase()}`)
.join(", ");

This branch was successfully deployed

1 active deployment
Preview — b773922a Deployed Sep 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants