feat: sections tree (Sections, Ancestors, FirstSection)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
Start with Fanstatic/Models/Page.cs:38-64 to understand the existing Parent and Pages members, then inspect FluidTemplateEngine and the Phase 1 caching issues. Check Fanstatic.Test/ and .TestSites/ for test patterns and fixtures, and run ./build.sh test. Done means the requested section members work in each page’s language and output format, caching and Fluid registration are handled as needed, the page-variables docs are updated, and the breadcrumb acceptance example works.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Part of the Phase 2 epic (#23).
Current State
Pages expose Parent (Fanstatic/Models/Page.cs:38-64) and Pages, but there is no way to walk the section
hierarchy: no page.Ancestors, page.Sections, page.FirstSection or site.Sections. Breadcrumbs and nested
menus need these.
Tasks:
-
page.Ancestors(parent first, home last),page.FirstSection,page.Sections(child sections),
site.Sections(top-level sections), all in the page's language and output format - Cache them per page (see the Phase 1 caching issues)
- Register new types/members with Fluid if needed (
FluidTemplateEngineconstructor) - Document on the page-variables docs
Tests live in Fanstatic.Test/ (xUnit + NSubstitute); fixture sites in .TestSites/. Run ./build.sh test; new/changed methods need CRAP ≤ 15 and ≥ 75 % line coverage.
Acceptance Criteria:
- A breadcrumb partial works with
{% for a in page.Ancestors reversed %}.
Related:
- #23 (Phase 2 epic, parent)
- Lenguaje dominante
- C#
- Estrellas
- 1
- Forks
- 0
- Merge medio
- 10 h 23 min
- PR fusionados (30 d)
- 4
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de MASS4ORG/Fanstatic
-
c:templates p:low size:S t:task
Dificultad 5/5 Más de una semana Aptitud para principiantes 45/100
-
c:content good first issue p:low size:S t:feature
Dificultad 4/5 3-5 días Aptitud para principiantes 58/100
-
c:templates p:medium size:M t:feature
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
-
c:content p:medium size:L t:feature
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
-
c:templates p:medium size:S t:feature
Dificultad 4/5 3-5 días Aptitud para principiantes 57/100
Todos los issues de MASS4ORG/Fanstatic
Issues similares
-
python triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
microsoft/semantic-kernel#14615 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
vzeol/DeployCraft#125 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
fboucher/2d6-dungeon-app#245 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area: settings good first issue priority: p2 type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
AmineChr54/umbra#3 ·
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día