Page MenuHomePhabricator

CampWiz Nxt Redesign: Root Path
Open, Needs TriagePublic

Description

Environment Setup:
Follow this to setup your environment.

Instructions

  • Create a new branch in Target Repository for each of the migration with the following naming convention: <your username>_<component/page name with space replaced with hyphen>.
  • The codebase must be working without any breaking changes after your edit.
  • Each branch must have gone through Pull Request before being merged into our production build.
  • Folder structure would be
    • For Pages: pages/<entity>/<Entity><Action>.tsx
    • For shared components: components/<group>/<component Name>.tsx. Here, <group> is optional
  • Please do not use AI. You have to write your own commit message properly with all the relevant changes. In the past we experimented with AI and it was messy.

Micro Tasks
Migrate the following pages/components into target place(s): (For example, app/user/login/page.tsx to src/pages/user/Login/index.tsx)

  • app/components/campaign/CampaignEditForm.tsx to src/pages/campaign/CampaignEdit.tsx

Event Timeline

Hello @Nokib_Sarkar , there is no such repo named as campwiz-nxt-frontend2 in Open-Knowledge-Impact-Foundation. Only campwiz-nxt and campwiz-nxt-frontend repo are present there. Am I expected to take campwiz-nxt-frontend as the target repo?

Hello @Nokib_Sarkar and @Tiven2240, I'm setting up the frontend of the source repo but the NEXT_BASE_URL in .env.example (https://campwiz-backend-dev.toolforge.org) seems to be returning a 404. Could you please share the correct dev environment URL?

Or am I expected to run the backend (https://gitlab.wikimedia.org/nokibsarkar/campwiz-backend/) locally?

@Hridyesh_Gupta No, this is the correct url for the backend. You do not need to run backend locally, although if you want, you can run it locally.

@Nokib_Sarkar @Tiven2240

The current Login Page on the new repo does not match the expected design because of theme issues and missing i18n.
I believe i18n will also be needed for other pages like CampaignEditForm.tsx and policy/terms and policy/privacy.

In light of the above , I decided to first make a PR to add i18n to the new Repo and fix the Login Page layout

PR - https://github.com/Open-Knowledge-Impact-Foundation/campwiz-nxt-frontend2/pull/1