Skip to content

Comments

chore: we're back#1559

Merged
patak-dev merged 4 commits intomainfrom
chore/we-are-back
Feb 22, 2026
Merged

chore: we're back#1559
patak-dev merged 4 commits intomainfrom
chore/we-are-back

Conversation

@patak-dev
Copy link
Contributor

Let's wait a few hours to merge this, at least until 10am CET so we have time to unlock other channels and slowly get back to them. This PR:

  • redirects chat.npmx.dev to a new #welcome channel invite
  • rewords /recharging in past tense so we can still use the link to talk with others about our vacation. After March 3rd, we can reword it again to tease our summer vacation.

@vercel
Copy link

vercel bot commented Feb 22, 2026

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

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment Feb 22, 2026 8:01am
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Feb 22, 2026 8:01am
npmx-lunaria Ignored Ignored Feb 22, 2026 8:01am

Request Review

@codecov
Copy link

codecov bot commented Feb 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 22, 2026

No actionable comments were generated in the recent review. 🎉


📝 Walkthrough

Walkthrough

This PR removes the "Add to calendar" logic and UI from the recharging page (ICS generation, downloadIcs handler and button), deletes the add_to_calendar property from the i18n schema, updates vacations copy in the English locale (tense and phrasing), adds new keys under vacations.stats in the English locale (commits, pr, and subtitle), and changes a vercel.json redirect destination from the recharging path to a Discord invite URL.

Possibly related PRs

Suggested reviewers

  • serhalp
🚥 Pre-merge checks | ✅ 1
✅ Passed checks (1 passed)
Check name Status Explanation
Description check ✅ Passed The pull request description clearly relates to the changeset: it explains the redirect change to Discord and the reworded vacation content in past tense.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/we-are-back

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 and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (2)
vercel.json (1)

13-13: Verify the Discord invite link is set to never expire.

https://discord.gg/x9KE5U2q8w is now the sole destination for all chat.npmx.dev traffic. If this invite was created with a usage cap or expiry date, the redirect will silently deliver a broken link to every user.

Confirm in Discord Server Settings → Invites that this invite is set to never expire and has no usage limit.

app/pages/recharging.vue (1)

61-101: Remove the now-dead fmt and downloadIcs functions.

The "Add to calendar" button that invoked downloadIcs was removed from the template as part of this PR, leaving both the fmt helper (lines 64–69) and the entire downloadIcs function (lines 72–101), along with the section comment (line 61), as unreachable dead code.

♻️ Proposed clean-up
-// --- .ics calendar reminder ---
-
-// Format as UTC for the .ics file
-const fmt = (d: Date) =>
-  d
-    .toISOString()
-    .replace(/[-:]/g, '')
-    .replace(/\.\d{3}/, '')
-
-// Pick a random daytime hour (9–17) in the user's local timezone on Feb 22
-// so reminders are staggered and people don't all flood in at once.
-function downloadIcs() {
-  const hour = 9 + Math.floor(Math.random() * 9) // 9..17
-  const start = new Date(2026, 1, 22, hour, 0, 0) // month is 0-indexed
-  const end = new Date(2026, 1, 22, hour + 1, 0, 0)
-
-  const uid = `npmx-vacations-${start.getTime()}@npmx.dev`
-
-  const ics = [
-    'BEGIN:VCALENDAR',
-    'VERSION:2.0',
-    'PRODID:-//npmx//recharging//EN',
-    'BEGIN:VEVENT',
-    `DTSTART:${fmt(start)}`,
-    `DTEND:${fmt(end)}`,
-    `SUMMARY:npmx Discord is back!`,
-    `DESCRIPTION:The npmx team is back from vacation. Time to rejoin! https://chat.npmx.dev`,
-    'STATUS:CONFIRMED',
-    `UID:${uid}`,
-    'END:VEVENT',
-    'END:VCALENDAR',
-  ].join('\r\n')
-
-  const blob = new Blob([ics], { type: 'text/calendar;charset=utf-8' })
-  const url = URL.createObjectURL(blob)
-  const a = document.createElement('a')
-  a.href = url
-  a.download = 'npmx-discord-reminder.ics'
-  a.click()
-  URL.revokeObjectURL(url)
-}

@shuuji3
Copy link
Member

shuuji3 commented Feb 22, 2026

@patak-dev Hi, #1560 could fix the build failure. I'll ask Yan if this is the correct version we can use but we could merge it if we want a quick fix.

@patak-dev patak-dev added this pull request to the merge queue Feb 22, 2026
Merged via the queue into main with commit 2eca59e Feb 22, 2026
20 checks passed
@patak-dev patak-dev deleted the chore/we-are-back branch February 22, 2026 09:07
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.

3 participants