Skip to content

WIP: Front-end Timeline Feature

Juliette Beaudet requested to merge feature/timeline into main

Closes https://gitlab.com/JOGL/JOGL/-/issues/268 .

Checklist Front-end

  • choose correct lib or method to code vertical alternate timeline: react-vertical-timeline-component
  • create component for the public project timeline (ProjectTimeline.tsx in Components/Projects, called in project page, tab About)
  • connect it to graphql project instead of api call
  • create form to CRUD timeline/moments/phases for the project admin (ProjectTimelineForm.tsx in Components/Projects, called in edit page)

Checklist Back-end

  • GET milestones phases & events from project 1 /projects/1/milestones/
  • GET milestones phases & events from project 1, but only the ones from a specific phase /projects/1/milestones?phase=1
  • POST add one or multiple event/moment
  • POST add one or multiple phases
  • PATCH/DELETE phases /projects/1/milestones/phases?id=1
  • PATCH/DELETE moments/elements /projects/1/milestones/moments?id=1

How to test this MR

  • reset
  • create fake projects (factory should populate with moments phases etc, when
  • index projects to Algolia
  • become admin of one of them
  • ...

Merge request reports