honestyshop's People
honestyshop's Issues
Consider moving duplicate validation to custom WTForms validators
This should be considered to keep the code clean, e.g. preventing a duplicate item from being created. This is currently handled in the controller.
Creating a duplicate item causes an exception
When a user attempts to create a duplicate item, they should be warned/redirected. At the moment this causes an exception due to the database's unique constraint.
Refactor init_db()
The init_db function currently adds data for testing. This should be refactored so the function can be used for upgrades in live.
Refactor buy form to use WTForms (specifically dropdown)
Active checkbox not functional on item form(s)
The Active checkbox currently has no code behind it and so Items cannot be made inactive, etc. This needs to be implemented.
Prevent registration unless email is from correct domain
It should be possible to configure the app to prevent users registering if their email address is not from the right domain.
Option to register needs to be more obvious
It is not obvious to first time users that they register by clicking the link on the login page. The registration process needs to be clearer.
Order users in payment dropdown.
Add suggested item function
Background
Currently there is no way for users to suggest new snacks they'd like to see in the snack cupboard.
Change
Users should be able to suggest new snacks for the snack cupboard, so that we can get everyone the snacks they want.
Acceptance criteria:
- Normal users should be able to suggest new snacks for the snack cupboard.
- Admin users should be able to see a list of all suggested snacks, and how many uses have suggested each one.
Notes for testing:
- Make sure that users can't see each others' suggestions.
Add logic for favicon
It should be possible to add a favicon.ico to the static directory and have it served appropriately. This should not cause an error if the file doesn't exist.
View payments in history
A user should be able to see payments on the history page, below purchases.
Delete user activation tokens on activation
Double clicking save button not blocked
On the item creation page and possibly others, double clicking the save button causes double form submission and so exceptions.
Inactive users
It should be possible to make users inactive, hiding them from the admin summary, preventing them from logging in, etc.
Add payment function
Admins should be able to apply payments to users' accounts.
Admin overview of user transactions, payments and balance
Admins should be able to view each users history page. They should also have access to a summary page listing users and balances.
Sort users by email on payment screen
The list of users needs to be sorted alphabetically to make it easier to apply payments.
Refactor secret_key to prevent gunicorn errors
If the secret_key is not set with a quoted string in app.py, gunicorn returns a 500 server error when trying to use sessions.
User visibility of balance
A user should be able to see their running total, possibly on the history page.
Add return to buy link on history page
Users are redirected to history when making a purchase. It would be good if there was a quick link to return to the buy page.
Password reset function required
A user should be able to reset his/her password via a reset email.
Allow users to delete transactions
Currently if a user makes a purchase, there is no way for this to be undone. It should be possible for a user to delete purchases to resolve mistakes. This should perhaps be limited to purchases in the last 24 hours.
Failed registration strands user
Currently if a user registers, but the confirmation email process fails, the user cannot login or re-register. Exception handling should be added so that if the registration fails the user and activation token are deleted, allowing the user to re-register.
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.