Skip to content

Implement generic CRM form and add "edit crm organization" UI

Lee Tickett requested to merge 2256-add-feat-edit-crm-organization into master

We currently have:

  • add contact
  • edit contact
  • add organization

But missing "edit organization".

We have taken the opportunity to DRY things up and create a re-useable form- see !77201 (merged)

And this MR implements the new component while DRYing everything up and introducing the missing "edit organiztion".

Related to #2256

Screenshots or screen recordings

edit_organization

How to set up and validate locally

Now we've added seed data, this is much easier 🎉

1. If you've not recently setup GDK or run `gdk reset-data`, you'll need to run the crm seed: `rake db:seed_fu FILTER=crm`
2. Enable the `customer_relations` feature flag from the rails console: `Feature.enable(:customer_relations)`
3. Navigate to a group organizations page- e.g. http://gdk.test:3000/groups/flightjs/-/crm/organizations
4. Click the edit button alongside one of the organizations
5. Modify one or more fields
6. Click save changes

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Lee Tickett

Merge request reports

Loading