Comments (21)
I propose the following backend model structure:
Goal_Title
=models.CharField(max_length=50, blank=False)
Goal_Description
=models.TextField(editable=True,blank=false)
created_at
=models.DateTimeField(default=django.utils.timezone.now)
priority
=models.IntegerField(default=0)
(This allows users to prioritize tasks)deadline
=models.DateTimeField()
cat_choices
= [
('h', 'Health'),
('p', 'Personal'),
('e', 'Entertainment')
]category
=models.CharField(max_length=1, choices=cat_choices)
// Consider whether to include this feature; it could help users categorize goals.
views.py
def goal_dashboard(request):
goals = Goal.objects.all().order_by('pk')
return render(request, 'goals/goal_dashboard.html', {'goals': goals})
def goal(request, pk):
goal = Goal.objects.get(id=pk)
return render(request, 'goals/goal.html', {'goal': goal})
from myfinances.
I'm keen to work on the idea. As a newcomer to OpenCourse, I'd greatly appreciate your guidance. Please assign this initiative to me.
from myfinances.
Hi there @Swish78,
It would be great to get some ideas and progress on "Goal Tracking". So first of all we need the dashboard page for goal tracking, so a basic view for this. And maybe we can collect some reference images / designs we could use for the page.
I'd be happy to tag along with you if you do require any help or want some references too.
I'm interested, what's "OpenCourse"?
Thanks
from myfinances.
I'll begin by creating a basic dashboard view for this and start collecting some reference images and designs.
I apologize for the typo. It was meant to be 'open source' instead of 'OpenCourse.'
from myfinances.
Ah i see. Great thanks, feel free to post any references here, so if you do require assistance or anyone else would like to help you then they can get a feel for your ideas too. We use tailwind for the design, using a component library RippleUI.
Feel free to reply with what you want to work on, if you don't want to work on it all, and im sure someone (if not myself) will help fill out the rest.
Really appreciate your interest in the project. I'm going to start providing more details in more issues too
from myfinances.
I've created a dashboard template (attached a screenshot). What do you think? Also, I came across 'Shadcn UI,' which looks great for dashboards. Should we consider using it?
![Screenshot 2023-10-11 at 01 39 14](https://private-user-images.githubusercontent.com/98048555/274052332-03a1ec13-fc1c-41a8-a83b-587774acf043.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxMTgwMTksIm5iZiI6MTcyNTExNzcxOSwicGF0aCI6Ii85ODA0ODU1NS8yNzQwNTIzMzItMDNhMWVjMTMtZmMxYy00MWE4LWE4M2ItNTg3Nzc0YWNmMDQzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODMxVDE1MjE1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUyMGY5ZjNlZjM0YTM5ZmNjYmVhMDVjNWY4ODFhNGYxOGVkNGI4MjFiZTc0NWZkMWFkNmRiZDEzYjRmY2Y4MmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ncr5Ifo4EXXX8GRTzjSlsKmK7aKBtuRWuGsGdzX21q4)
from myfinances.
We currently use RippleUI (tailwind css component library) for our frontend, we dont use react or any frontend system other than tailwind classes unfortunately. I don't think we should change design for certain features, and im not sure whether it'd be worth moving library fully now.
Our current layout in general looks like below:
I like the layout + idea for the goals feature though, so that's great! Just wondering if your idea was to change libraries or you just didn't realise we had one already?
All good either way, look forward to hearing back from you
from myfinances.
I'm aware of the use of Tailwind and Ripple, and I've actually used both for the dashboard. I briefly considered 'Shadcn UI' because it seemed well-suited for dashboards, but I understand your point. I'll drop the 'Shadcn' idea. Now that the layout is in place, I'd like to hear your suggestions for the next steps. What would you recommend we work on next for the goal tracking feature?
from myfinances.
Hiya, okay great. So for the next steps we'd probably want to start with the backend so we can have an idea what more needs to be added to the front end.
So I'd suggest maybe brainstorming some ideas for the database model, things like
Goal name, goal description, goal completed etc.
Then we'd want a main dashboard maybe that displays a brief list of your goals then when you click on one it brings up more details.
Up to you how you decide to make it look or what features, feel free to get creative. If you do need any help for anything or need some ideas do let me know though.
You can also post pictures of your progress here, if you would like, your choice.
Thanks again
from myfinances.
I love the idea of categories, maybe could let the user create their own categories in a dropdown (like how in github you can create + assign labels to issues). created_at
should probably be
created_at = models.DateTimeField(auto_now=True)
rather than
created_at = models.DateTimeField(default=django.utils.timezone.now)
But apart from that, we could probably get going. That seems like a decent start to the models, i think that'll be a good starting point;
- add them to the models (maybe update created_at and maybe add category_choices as its own model?)
- create a frontend templated page of what it would look like
- start adding a basic backend to load the views with data
- move all data requests to HTMX (if theres a goal "list")
And that seems like a good start. If you're happy with that, i'm happy too :)
let me know if you need anything
from myfinances.
Hi @Swish78, any progress, need any help? Just a quick check in
Thanks
from myfinances.
I apologize for the delay in my contributions. I've been quite busy recently, but I'm planning to work on the dashboard utility soon. I appreciate your offer of help, and I'll reach out if I need any assistance during the development process.
Thanks for your understanding and support.
from myfinances.
Thanks @Swish78 for the message back. That's fine! Take your time, let me know how it goes
from myfinances.
I have rendered the following model structure based on our previous discussion :
class Category(models.Model):
name = models.CharField(max_length=50, unique=True)
def __str__(self):
return this.name
class Goal(models.Model):
title = models.CharField(max_length=50, blank=False)
description = models.TextField(editable=True, blank=False)
created_at = models.DateTimeField(auto_now=True)
priority = models.IntegerField(default=0)
deadline = models.DateTimeField()
category = models.ForeignKey(Category, on_delete=models.SET_NULL, null=True)
def __str__(self):
return this.title
I'm encountering a "ModuleNotFoundError: No module named 'environ'" issue. I've already tried installing it manually, but the error persists.
from myfinances.
You'll get that error from having pip install environ,
What you we need is pip install django-environ. You may be able to
pip remove or pip uninstall it.
I'd suggest pip install -r requirements.txt
from myfinances.
Thanks for the advice. I did try 'pip install -r requirements.txt' initially, but the error persisted. I then attempted 'pip install django-environ,' but the issue still remains.
from myfinances.
Oh yikes, are you running this from pycharm or a virtual environment? I believe for Django to work on its own you need some sort of virtual environment. Let me know if you don't I'll help you get started
from myfinances.
I'm running this from PyCharm. Okay, I will try again by creating a virtual environment.
from myfinances.
I'd suggest following our SETUP GUIDE, it covers pycharm quite well i'd say!
from myfinances.
Hi, I was wondering which charts I should include on a goal-specific dashboard.
I’ve tried following the setup guide but still encountered the same issue. For now, I’m focusing on completing the work of adding the dashboard’s backend and frontend.
I apologize for not providing you with regular updates.
from myfinances.
Hey, that's odd that you're still getting the error about environ. You may be able to fix it by following this:
You need to make sure "environ" is not installed. After that make sure django is installed under the virtual environment and then you can "install" django-environ
As for the goal dashboard that's okay, it'll be much easier once you can see your progress on the site so it's okay if not much progress is made. Charts can be held off until we get data inputs if you wish
We could use something like chart.js web/django_package. I don't really mind. But about the actual graph types, again not too sure, will be easier to decide that once the page starts to get some normal inputs/info if that's okay
Sorry about the long wait, i forgot to send the message this morning
from myfinances.
Related Issues (20)
- implementation: Save a default invoice logo for client HOT 2
- idea: pre-invoice checks
- pre invoice checks HOT 1
- idea: More Invoice Statuses
- idea: ability to delete teams
- idea: Add payment details to Settings page as a default option HOT 2
- implementation: monthly/fortnightly reports
- idea: "remind me" command bot HOT 1
- idea: Allow invoice sending
- idea: Allow a guest type for clients
- idea: Global search
- implementation: Recurring Invoices
- idea: Clone invoice
- idea: Remove currency conversion
- bug: List index out of range when accessing "Manage Team" after inviting a new member. HOT 4
- idea: Add git hash to page rather than release version
- idea: Cloudwatch Metrics (through SQS)
- idea: Quota limits easier, with just a monthly cron that resets rather than datetimes
- bug: Invalid styling due to page partial load
- idea: Preview + Remove file inputs
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.
from myfinances.