Skip to content

feat(app): guide edit page - #189

Merged
tonylam0 merged 13 commits into
bluelearn-org:mainfrom
rodrigolinhas:feature/guide-edit-page
Jul 31, 2026
Merged

feat(app): guide edit page#189
tonylam0 merged 13 commits into
bluelearn-org:mainfrom
rodrigolinhas:feature/guide-edit-page

Conversation

@rodrigolinhas

Copy link
Copy Markdown
Contributor

Summary

Edit Guide Page (/edit/guide/{slug}); Created a new route allowing users to edit guides after submission. Automatically pre-populates guide details (type, title, summary, subjects, prerequisites, and content) from existing guide data.

Component Reuse: Integrated the existing contribution steps (GuideDetails, Content, and Submit) into a 3-step @stepperize/react stepper, preserving UI consistency and design tokens across the app.

Draft & Submission Actions: Connected form action handlers to persist drafts via updateRevision and trigger review submissions via submitRevision, complete with toast feedback

Navigation Link: Updated the "Edit Guide" menu item in the guide viewer (guides.$slug.tsx) to target the newly established /edit/guide/{slug} path.

Closes #176

Type of change

  • Bug fix
  • Feature
  • Refactor (no behavior change)
  • Documentation
  • Build / tooling / CI
  • Other: _________

Verification

  • pnpm -r typecheck passes
  • pnpm -r build passes
  • Manually verified in a browser (for UI / behavior changes)
  • Followed the app layout conventions
  • No new dependencies, or new dependencies are justified and AGPL-compatible
  • Change does not violate any non-negotiable principle
  • Documentation only, no changes to the codebase, so no tests required

for future reference
Implement route for editing guides post-submission by loading existing
guide data into contribution flow components (GuideDetails, Content,
and Submit). Support draft saving and revision publishing.

Signed-off-by: Rodrigo <rodrigolinhas18@gmail.com>
forgot to run pnpm format
@tonylam0

Copy link
Copy Markdown
Collaborator

Hey, there are merge conflicts on this branch. Request review for this PR again when the conflicts have been fixed. Thank you!

@tonylam0
tonylam0 marked this pull request as draft July 29, 2026 02:23
Fixed merge confilts in PR

Signed-off-by: Rodrigo <rodrigolinhas18@gmail.com>
@rodrigolinhas
rodrigolinhas marked this pull request as ready for review July 29, 2026 19:58
@tonylam0

Copy link
Copy Markdown
Collaborator

I'm going to make some changes to this PR to keep v1 development moving as quickly as possible.

tonylam0 added 7 commits July 30, 2026 21:40
Signed-off-by: Tonycs <lam.tony540@gmail.com>
Signed-off-by: Tonycs <lam.tony540@gmail.com>
Signed-off-by: Tonycs <lam.tony540@gmail.com>
Signed-off-by: Tonycs <lam.tony540@gmail.com>
Signed-off-by: Tonycs <lam.tony540@gmail.com>
Signed-off-by: Tonycs <lam.tony540@gmail.com>
Signed-off-by: Tonycs <lam.tony540@gmail.com>
@tonylam0
tonylam0 merged commit e249466 into bluelearn-org:main Jul 31, 2026
5 checks passed
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.

[Feature] Create Guide edit page

2 participants