layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

[Hugo] Phase 1 · Inventory the hand-written pages and assign section owners

Open saurabhraghuvanshii opened this issue 1 month ago • 5 comments

Parent: #8297 · Phase 1 (Foundation) · Open decision: "Owner for each section of the site"

Why

The converter only covers collections. 95 files in src/pages (about 92 live URLs) are React pages built from src/sections (51 folders) and src/components (62 folders). They include the most-visited and most custom pages: home, Meshery, Kanvas, pricing, solutions, Sistent getting-started and identity pages, and the landscape. This is the largest piece of the migration and isn't in the epic's audit yet.

Tasks

  • [ ] Generate hugo/data/pages-inventory.yaml (script, not by hand) with one row per src/pages route, containing:
    • URL, source file, sections/components used
    • interactive features (forms, carousels, video, live fetch to cloud.layer5.io, GSAP, Cytoscape, FullCalendar)
    • data dependencies (GraphQL queries, src/collections/landscape/*.js)
    • owner, Phase 3 issue, status
  • [ ] Group the rows into the four Phase 3 page issues (P3-10 … P3-13).
  • [ ] Propose an owner per section (Company, Products, Solutions, Community, Learn, Projects/Sistent, Blog/News/Resources) in the epic, for maintainers to confirm.
  • [ ] Render the inventory on /migration/ next to the collections table.

Acceptance criteria

  • [ ] Every src/pages route appears exactly once in the inventory, with a target issue.
  • [ ] Owners are confirmed in the epic.

Contributor Resources and Handbook

The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the master branch.

Join the Layer5 Community by submitting your community member form.

saurabhraghuvanshii avatar Nov 03 '26 16:11 saurabhraghuvanshii

Hi @saurabhraghuvanshii , I would like to work on this issue. Could you please assign it to me? I’ll investigate and work on the required changes. Thank you!

DRafi2006 avatar Nov 04 '26 04:11 DRafi2006

Hey @saurabhraghuvanshii, could you assign this sub-issue to me?

Mahakgupta108 avatar Nov 04 '26 06:11 Mahakgupta108

Thanks @saurabhraghuvanshii for assigning, i just have one question related to section owner, should i need to propose the owner name as per their recent activity or keep it empty for a maintainer to fill them up? and for features should it only have per page or i need to map them per components or section.

like home page let's suppose have 4 section each utilised 3 components and one out of those uses some custom features. so the generated yaml should also preserve that flow or should list just the feature utilised in that page abstracting which section or component uses that?

Mahakgupta108 avatar Nov 04 '26 09:11 Mahakgupta108

@PARTH-TUSSLE ^^

saurabhraghuvanshii avatar Nov 04 '26 11:11 saurabhraghuvanshii

@Mahakgupta108 Please propose the Owners. The issue asks for a proposed owner per section, for maintainers to confirm. Base it on recent activity and consistency, and add them as proposed_owner with owner_status: proposed. That way a maintainer only has to confirm or change it, and nobody is assigned before they agree.

Features: keep the page's flow in the generated YAML (page, then sections, then components, then features), and also add a flat list of features per page, generated from it. The flow tells whoever ports the page where each feature lives, since a Hugo page becomes sections or partials. The flat list lets us group pages into the Phase 3 issues quickly. For example:

- url: /
  source: src/pages/index.js
  sections:
    - name: Hero
      components: [Button, Carousel]
      features: [carousel]
  features: [carousel, gsap]
  owner_status: proposed

Please stop at the component level, going deeper will make the file hard to maintain.

PARTH-TUSSLE avatar Nov 04 '26 17:11 PARTH-TUSSLE