Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beamanator/inscale-campaign-dashboard
Add, view, delete campaign information via a delightfully simplistic interface
https://github.com/beamanator/inscale-campaign-dashboard
Last synced: 11 days ago
JSON representation
Add, view, delete campaign information via a delightfully simplistic interface
- Host: GitHub
- URL: https://github.com/beamanator/inscale-campaign-dashboard
- Owner: Beamanator
- Created: 2019-09-27T17:31:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-20T00:04:33.000Z (about 5 years ago)
- Last Synced: 2024-10-19T07:51:20.578Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 977 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
https://campaign-dashboard.netlify.com/: [![Netlify Status](https://api.netlify.com/api/v1/badges/a5a4a29f-0bd7-4ed7-b803-fc9287b6a496/deploy-status)](https://app.netlify.com/sites/campaign-dashboard/deploys) [![Coverage Status](https://coveralls.io/repos/github/Beamanator/inscale-campaign-dashboard/badge.svg)](https://coveralls.io/github/Beamanator/inscale-campaign-dashboard) [![Build Status](https://travis-ci.org/Beamanator/inscale-campaign-dashboard.svg?branch=master)](https://travis-ci.org/Beamanator/inscale-campaign-dashboard)
# Campaign List
by The Beamanator
## How to filter campaigns in table:
1. Enter a valid start & end date
2. Click 'filter'To remove filter and see old data, just click 'clear'
**Note to interviewers**: The exact conditions in the prompt only mention:
- If the campaign has a startDate that is contained in the range, it should show
- If the campaign has an endDate that is contained in the range, it should show.These two conditions don't cover the condition if some data point has a start date **before** the range _AND_ an end date **after** the range. I think it would make sense to show such data points (in a real application), but I didn't include this condition in this project because I wanted to follow the prompt as closely as possible.
## How to add a campaign
1. Open the console
2. Execute function `campaignAdd()`Here are the required arguments and formatting for params of `campaignAdd`:
- `id` (`string`|`number`)
- `name` (`string`)
- `startDate` (`Date`) - format: `"MM/DD/YYYY"`
- `endDate` (`Date`) - format: `"MM/DD/YYYY"`
- `budget` (`number`)Additional requirements:
1. `id` must be unique
1. `startDate` must come before `endDate`## Possible improvements (for the future)...
1. Allow different date formats in `CustomDatePicker`
1. Allow different icon / different icon position in `CustomDatePicker`
1. Allow `campaignAdd` to add multiple campaigns at a time
1. Store / edit campaign sort order in `localStorage`
1. Format long snackbar errors in nicer way.
1. Allow user to skip entering an `id`, and have it auto-generate