It’s a browser based debugging application that inspects files to be uploaded in Salesforce and returns error messages. Agencies are supposed to use it before uploading files. Greenpeace Spain will maintain it.
This application was started in September 2016 as a temporary solution to solve the problem of frequent issues with files to be uploaded in Salesforce. It was supposed to be abandoned in 2021, but it had a revival in 2022 as we are updating the file formats with 3 agencies.
- Production - Shared with agencies and used often.
- Development - Internal to Greenpeace to test.
It's just static web pages without database or API.
Requirements:
First, clone this repository. Then run in the repository's root:
npm install
gulp
Run on the repository's root:
python3 -m http.server
And go to localhost:8000
The folder validators contain the file specific validators rules.
The file src/js/tlmkValidator.js is a general library with an object that's inherited by all specific file validators. This object is inherited and can be overwriten.
Other code is in the src
folder.
This software is fit-for-purpose but you can modify it for your own needs under the GPLv3 license. Due to it's nature we will not accept pull requests.
The Greenpeace logo on top of each page is trademarked by Greenpeace and can't be used outside Greenpeace.
In principle it’s possible to use Papaparse from Nodejs and validate the CSVs on the server with similar code. If needed this will be added in the future.