Skip to content

feat(government): add judicial branch subpage closes #260#657

Open
dangerous-prog wants to merge 2 commits into
bettergovph:mainfrom
dangerous-prog:feature/add-judicial-subpage
Open

feat(government): add judicial branch subpage closes #260#657
dangerous-prog wants to merge 2 commits into
bettergovph:mainfrom
dangerous-prog:feature/add-judicial-subpage

Conversation

@dangerous-prog

Copy link
Copy Markdown

Description

This PR adds a dedicated Judicial Branch subpage at /government/judicial to complete the government directory, as requested in issue #260.

The new subpage follows the exact same component structure and layout template as the existing Constitutional and Legislative branch pages.

Changes Made

  • Data: Created src/data/directory/judicial.json containing the Supreme Court, Court of Appeals, and Sandiganbayan, along with incumbent justices.
  • Pages & Components:
    • Added src/pages/government/judicial/layout.tsx for the page layout.
    • Added src/pages/government/judicial/index.tsx for the main content and justices table.
    • Added src/pages/government/judicial/components/JudicialSidebar.tsx for court navigation.
  • Routing: Registered the new routes in src/App.tsx.
  • Navigation:
    • Added a "Judicial Branch" card to the main government layout (src/pages/government/layout.tsx).
    • Added "Judicial" to the top navbar dropdown (src/data/navigation.ts).
  • SEO: Added getJudicialSEOData() to src/utils/seo-data.ts.

Closes #260

AI Disclosure

This contribution was developed with the assistance of an AI coding tool (Antigravity/Gemini).

@DaijobuDes DaijobuDes added enhancement New feature or request low priority This project can take it easy, no to long deadline. labels Jun 15, 2026
@KishonShrill

Copy link
Copy Markdown
Member

@dangerous-prog can you also change the url redirection in here?
image

Currently is goes to /government/judiciary, change it to /government/judicial to match with your changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request low priority This project can take it easy, no to long deadline.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clicking the Judicial Branch button currently leads to a "Page Not Found" error

3 participants