Skip to content

Add newsletter and wiki archives - #61

Merged
andrewsoonqn merged 13 commits into
mainfrom
feat/newsletter-wiki-archives
Aug 15, 2026
Merged

Add newsletter and wiki archives#61
andrewsoonqn merged 13 commits into
mainfrom
feat/newsletter-wiki-archives

Conversation

@andrewsoonqn

@andrewsoonqn andrewsoonqn commented Aug 12, 2026

Copy link
Copy Markdown
Member

Closes #29

Summary

  • add separate Newsletter and Wiki archive pages with verified editions and clear forthcoming states
  • replace the mislabeled external Newsletter link with internal archive navigation
  • support desktop hover/keyboard menus and mobile year accordions
  • host PDFs in the team-owned nusc-website-blob Vercel Blob store
image image

Verification

  • npm run build - passes, including compilation, TypeScript, and static generation
  • npx prettier --check app/newsletter/page.tsx - passes
  • npx eslint app/newsletter/page.tsx - passes; GitHub lint check also passes
  • Blob response - HTTP 200, application/pdf, 58,495,962 bytes, with SHA-256 matching the supplied PDF
  • browser QA - Newsletter and Wiki routes return 200; desktop hover and mobile accordions work at 1280x720 and 375x812 with no horizontal overflow
  • Vercel preview deployment - passes

The newsletter navigation pointed to one mislabeled Wiki edition, leaving past publications difficult to find.\n\nAdd separate archive pages and responsive year menus so students can browse verified editions while unpublished years remain clearly marked.
@vercel

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
nusc-website Ready Ready Preview, v0 Aug 15, 2026 3:02pm

Request Review

@supabase

supabase Bot commented Aug 12, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project jybpfrxduyftoqptiovt because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

Centralize archive content so cards and menus use
the same destinations.

Add the supplied AY24/25 and AY25/26 Semester 1
newsletters from team-owned Blob storage.

@ThePeeKayy ThePeeKayy 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.

Comment thread lib/archive.ts Outdated
Comment thread components/custom-dropdown.tsx Outdated

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

Pull request overview

This PR introduces internal Newsletter and Wiki archive pages (with “forthcoming” handling) and updates site navigation to point to these new archives, alongside improved dropdown/menu interaction support for desktop and mobile.

Changes:

  • Added archive data models + concrete newsletter/wiki archive definitions and a shared archive page renderer.
  • Added /newsletter and /wiki routes and updated the header to link to them (including mobile sheet behavior/accessibility tweaks).
  • Enhanced the custom dropdown to better support hover, keyboard navigation, and outside-click dismissal.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
lib/archive.ts Defines archive types, newsletter/wiki archive data, and a year→anchor helper.
components/Header.tsx Replaces the mislinked “NEWSLETTER” nav item with internal archive routing; adds WIKI nav item and improves mobile menu accessibility/scroll.
components/custom-dropdown.tsx Improves dropdown interaction model (pointer + keyboard), ARIA, and external-link handling.
components/ArchivePage.tsx Adds a reusable archive layout that renders yearly cards with editions or a forthcoming state.
app/wiki/page.tsx Adds the Wiki archive route using the shared ArchivePage.
app/newsletter/page.tsx Adds the Newsletter archive route using the shared ArchivePage.
Suppressed comments (1)

components/custom-dropdown.tsx:213

  • z-9999 is not a default Tailwind z-index utility (and there is no custom z-index scale defined), so this menu may render behind other UI unexpectedly. Use an arbitrary value (z-[9999]) or a standard token (e.g. z-50).
        className={`fixed top-[calc(100%+4px)] left-1/2 z-9999 w-40 origin-top -translate-x-1/2 transform overflow-hidden rounded-md bg-white shadow-lg transition-all duration-300 md:absolute ${
          isOpen
            ? 'scale-y-100 opacity-100'
            : 'pointer-events-none scale-y-0 opacity-0'
        }`}

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

Comment thread components/ArchivePage.tsx
Comment thread components/custom-dropdown.tsx
Comment thread components/custom-dropdown.tsx
@andrewsoonqn
andrewsoonqn merged commit 449e97c into main Aug 15, 2026
6 checks passed
@andrewsoonqn
andrewsoonqn deleted the feat/newsletter-wiki-archives branch August 15, 2026 15:46
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.

Integrate with official newsletter

3 participants