Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

impress-org/givewp-next-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GiveWP 3.0 Feature Plugin (Archived)

🛑 This repo holds historical code for GiveWP's v3.0 journey. Since the core release this repo has been archived.


GiveWP - Visual Donation Form Builder 💚

🚨 Warning this project is a work in progress and should not be used on a live site to accept donations. With that disclaimer out of the way, let's answer the question of what the heck this is. The goal of this project is to provide GiveWP admins complete flexibility over the donation form creation process via a brand new visual donation builder.


The Why

GiveWP is developing a solution to allow fundraisers to create their donation forms in a more powerful, drag-and-drop, visual way.

At the core of the project is a new interface designed to give administrators new tools to create and edit their donation forms. It will be similar to other form builders, but specifically tailored to the unique needs of nonprofit organizations.

In this new interface admins will be able to add custom fields to various locations of their donation form and map the corresponding custom data to either donor or donation metadata. The default required fields for donation forms (first and last name, email, and relevant payment fields) will be customizable by allowing label changes, placeholder text, tooltips, and more.

To achieve this new functionality the team is engaging in UX/UI design and development, frontend and backend database development, and an extensive overhaul of the payment gateways API.

Development

Want to help contribute? Awesome! We're always looking for new contributors to help us out.

Getting Set Up

  1. Clone this repository locally in your wp-content/plugins/ directory.
  2. Run composer install from the CLI
  3. Run npm install from the CLI

Asset Compilation

To compile your CSS & JS assets, run one of the following:

  • npm run build — Compiles all assets for the add-on and form builder
  • npm run dev — Compiles all assets for the addon
  • npm run dev:form-builder — Compiles all assets for the form-builder
  • npm run watch — Compiles all assets for the addon and then watches for changes
  • npm run watch:form-builder — Compiles all assets for the form builder and then watches for changes

Packages

Parts of the codebase are separated out into packages, making the repository a "monorepo". This allows for related functionality to be maintained in the same repository, but allows for technical differences in development.

Packages are managed using NPM "workspaces" and NPM commands can be passed to individual packages using the -w flag and are namespaced as @givewp/{package-name}.

Donation Form Builder - @givewp/form-builder

The Visual Donation Form Builder package - uses WordPress Gutenberg components to create a custom block editor (not to be confused with THE WordPress Block Editor, which is the main solution built with the Gutenberg components).