Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(admin-tool): merge CSV toolbox into Give core #2875 #2975

Merged
merged 25 commits into from
Apr 6, 2018

Conversation

raftaar1191
Copy link
Contributor

@raftaar1191 raftaar1191 commented Apr 2, 2018

Description

PR to fix #2875

How Has This Been Tested?

Manually Tested after removing the Export Donation History Code and then add the CSV ToolBox Code to Give Core 2.1 and exporting the donation from the CSV

Task List

  • Remove the old Give Donation History functionality
  • update code to support with Give 2.0 DB upgrade
  • Add export Donation Link to submenu pages that export Donation History
  • Update Give-CSV-Toolbox functionality so admin can select all form option and then export the donation ( Hide FFM, Custom Filed and Hidden Custom Field Columns when all Donation form is selected from DropDown )
  • Add export Donation Link to submenu pages that export Donation History
  • Let's also make sure that FFM, Custom Filed, and Hidden Custom Field Columns sections only display if there is actually a checkbox available within the section
  • Fix issues fix(admin-tools): sorting donation with date is failing #2978 ( Issues closed not able to reproduce the issues again )
  • Delete Give-CSV-Toolbox repository and write a blog post about it

Screenshots (jpeg or gifs if applicable):

View the Export Page
image

With out selecting the Donation Form:
image

When selecting the Donation Form:
image

Types of changes

@raftaar1191 raftaar1191 changed the title perf(admin-tools): replace export donation history functionality with CSV toolbox Add-on WIP: perf(admin-tools): replace export donation history functionality with CSV toolbox Add-on Apr 2, 2018
@ravinderk
Copy link
Collaborator

@raftaar1191 Arrange checkboxes in columns form like below image:

image

Copy link
Collaborator

@ravinderk ravinderk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check my comment: #2975 (comment)

var give_form_id;

// Check for form ID.
if ( ! (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@raftaar1191 improve code formatting here.

output_give_donations_fields( response );

} else {
alert( 'An AJAX error occurred.' );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@raftaar1191 this must be translatable

@raftaar1191
Copy link
Contributor Author

@ravinderk updated the PR as you have mentioned in requested changes

image

@raftaar1191 raftaar1191 changed the title WIP: perf(admin-tools): replace export donation history functionality with CSV toolbox Add-on perf(admin-tools): replace export donation history functionality with CSV toolbox Add-on Apr 2, 2018
@kevinwhoffman kevinwhoffman changed the title perf(admin-tools): replace export donation history functionality with CSV toolbox Add-on feat(admin-tool): merge CSV toolbox into Give core #2875 Apr 3, 2018
/**
* Ajax call to get donation fields.
*/
$( '.give-export_donations #give-export_donations-form #give_form_for_csv_export' ).chosen().change( function () {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@raftaar1191 please remove this from create a new JS file called admin-exports.js

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay @DevinWalker doing that

@DevinWalker
Copy link
Member

DevinWalker commented Apr 3, 2018

Change Requests

1. Vertically align to the top top align rows

2018-04-02_23-00-40

2. Fix indent

2018-04-02_23-01-51

3. Make this export the first option

2018-04-02_23-03-49

4. Update your checklist and complete any missing items still unchecked/fixed

2018-04-02_23-09-35

@raftaar1191
Copy link
Contributor Author

@DevinWalker Update PR with all the suggestion that you have made

@DevinWalker
Copy link
Member

@raftaar1191 can you fix the conflict in this PR?

# Conflicts:
#	includes/admin/tools/views/html-admin-page-exports.php
@ravinderk
Copy link
Collaborator

ravinderk commented Apr 5, 2018

@DevinWalker merge conflict resolved.

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.

None yet

3 participants