open-garage's People
open-garage's Issues
Icons!
I want a little icon to replace the Payload logo throughout the app.
Ideas:
- Car, front view, maybe in garage
- Car, side view
- Gear/sprocket
Statistics tab on vehicles
The vehicles collection should be organised into two tabs, "Settings" for editable fields and "Statistics" for UI fields that output data about the vehicles. The Statistics tab should be the default view and for now should contain the following:
- Refuel list
- Sort createdAt descending
- Display Mileage, Cost, Capacity
- Paginated
- Total cost - Total cost of all fuel that has gone into the car
- Total Capacity - Total capacity of all fuel that has gone into the car
Readme
The project needs a little Readme describing what the project is, what the core functionality is and how to host and deploy it.
Environment Variables
A lot of places have variables such as the Admin URL hard coded, for speed of development.
I need to pick through and use environment variables wherever necessary, in order to make the app easily deployable.
Refuels Collection
The Refuels collection is where users will record data each time they fill one of their Vehicles, this data will be used to calculate various MPG averages, as well as display previous costs and cost forecasts.
This collection should include the following fields and behaviours:
- Vehicle
- Many to One relationship to vehicle field
- Mileage
- Required
- Must be greater than the mileage provided for the previous entry against this vehicle.
- Capacity
- Required
- Cost
- Required
- To Full?
- Boolean
- Indicates whether this refuel filled the tank
Vehicles Collection
The main collection for this project is going to be "Vehicles". Most, if not all, future features will have some kind of relationship to a specific Vehicle.
The Vehicle collection should be basic for now, containing the following fields & behaviours:
- Registration Number
- Required
- Nickname
- Use as title
- Default to Registration Number if empty
- Image
Check Collection Permissions
I have so far ignored permissions on collections in order to get a working prototype of the basic functionality. Permissions need checking and ensuring the collections behave as follows:
- Vehicles
- Only logged in users can Create, Read and Update
- Refuels
- Only logged in users can Create and Read, nobody can update
- Unsure how I want to handle Delete currently. Ideally a user should only be able to delete an entry if it is the most recent entry for that vehicle.
Average Stats on Vehicle Page
I would like to add a widget on the Vehicle statistics tab, I'm going to query the first 1 and last 2 "Full" Refuel documents and return them from a custom endpoint. I will then calculate the average on the frontend.
-
Custom endpoint returning first 1 and last 2 full documents. - Widget with averaging functions on Vehicles page.
- Capacity from start (first full tank)
- Capacity since last fill
- Custom endpoint returning first 1 and last 2 documents where full
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.