Skip to content

feat: add Guida della Matricola page#133

Merged
toto04 merged 4 commits into
mainfrom
bianca/guidaMatricole
Jul 13, 2026
Merged

feat: add Guida della Matricola page#133
toto04 merged 4 commits into
mainfrom
bianca/guidaMatricole

Conversation

@BIA3IA

@BIA3IA BIA3IA commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Introduce the Guida della Matricola page, which fetches the latest guide data from the backend and handles cases where no guide is available. Update the CardSplit component to support an action prop for enhanced functionality. Adjust routing for the guide and ensure the header is hidden on the guide page.

@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: dc481109-e77f-4d50-8e59-98fc430fc104

📥 Commits

Reviewing files that changed from the base of the PR and between 02d269b and 6998c12.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (2)
  • package.json
  • src/queries/guida-matricola.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/queries/guida-matricola.ts

Walkthrough

This PR adds a Guida della Matricola page that retrieves and displays the latest guide with a downloadable PDF, extends CardSplit for action content, updates the guide route and header behavior, and upgrades the backend package.

Changes

Guida della Matricola feature

Layer / File(s) Summary
Guida matricola data query
src/queries/guida-matricola.ts, package.json
Adds a server query that returns the latest guide as { version, date, url } or null, and updates the backend dependency version.
CardSplit action prop and layout
src/components/card-split/types.ts, src/components/card-split/index.tsx
Adds optional action and className props and changes the internal layout to support a dedicated action slot.
Guida matricola page
src/app/matricole/guida/page.tsx
Adds route metadata and an async page that formats the guide date and renders a download link or fallback message.
Route wiring and header suppression
src/components/matricole/constants.ts, src/components/header/header.tsx
Points the first guide entry to /matricole/guida and hides the header on that route.

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant GuidaMatricolaPage
  participant getLatestGuidaMatricola
  participant CardSplit

  User->>GuidaMatricolaPage: request /matricole/guida
  GuidaMatricolaPage->>getLatestGuidaMatricola: fetch latest guide
  getLatestGuidaMatricola-->>GuidaMatricolaPage: guide or null
  alt guide exists
    GuidaMatricolaPage->>CardSplit: render version, date, download action
  else no guide
    GuidaMatricolaPage->>User: render fallback message
  end
Loading

Possibly related PRs

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change by announcing the new Guida della Matricola page.
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.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

@BIA3IA BIA3IA changed the title feat/: Add Guida della Matricola pag feat/: Add Guida della Matricola page Jul 10, 2026
@BIA3IA BIA3IA changed the title feat/: Add Guida della Matricola page feat: Add Guida della Matricola page Jul 11, 2026
@toto04 toto04 changed the title feat: Add Guida della Matricola page feat: add Guida della Matricola page Jul 13, 2026
@toto04 toto04 merged commit 91c313f into main Jul 13, 2026
2 checks passed
@toto04 toto04 deleted the bianca/guidaMatricole branch July 13, 2026 07:09
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