krafalski / considerwater Goto Github PK
View Code? Open in Web Editor NEWA Web App For Anxious People
A Web App For Anxious People
create 3-10 classes for the breath div- each will ref a different speed. Swap classes with jQuery.
no paragraph breaks are stored/rendered when journal entries are displayed/up for editing.
user_id has a value in the parameters, but being passed as nil in the route?
Request
Parameters:
{"utf8"=>"โ",
"authenticity_token"=>"EJ+jiodmrBrJgu+M9UWlHfVrf+y6ESQVOeWFMpYfNEdS0TotjHVrQXm1R3guNba9+9Vl4tIYsCmFjB/wEIHnTA==",
"mood_rating"=>{"rating"=>"600"},
"commit"=>"save",
"user_id"=>"2"}
error:
ActionController::UrlGenerationError in MoodRatingsController#create
No route matches {:action=>"index", :controller=>"mood_ratings", :user_id=>nil} missing required keys: [:user_id]
def create
@mood_rating = current_user.mood_ratings.build(mood_rating_params)
redirect_to user_mood_ratings_path(@mood_rating)
if @mood_rating.save
redirect_to user_mood_ratings_path(@mood_rating)
else
right now if the user clicks their name it just shows a page for them to delete their profile. This is kind of sad. Maybe make the delete less accessible or add a confirmation/warning?
parent ticket #6
Right now users can input their mood as a floating number in a form.
It would be better if they could click on a mood bar.
The mood bar exists.
Need to find a way to send requests with the values 1-10 via clicks on the mood bar.
I think there was a way to do this that we went over in class. Must research.
Currently user sign up isn't redirecting where i want to i don't think.
Will update with details
when password doesn't match
also check validations for unique names email.
bonus- get picky about the password length
change it around so that you don't have to click a link to make a new entry? Draw a wireframe of what would be better.
currently all journal entries are visible - view of one only available via edit
We rebuilt the routes for JournalEntry as part of #22
this involved checking all the views, the crud actions, and fixing our path helpers, forms, and link_to view helpers
http://edgeguides.rubyonrails.org/routing.html#creating-paths-and-urls-from-objects
http://stackoverflow.com/questions/2034700/form-for-with-nested-resources
With Colin we reworked the nested resources that belong to a user (journal_entries and mood ratings).
entries scroll to infinity- paginate or find another way to display journals
parent ticket #46
Currently able to set to Eastern time, but not via :local
From the nesting/route refactor...need to check and update each one.
Initially, jQuery works, but after clicking around the site, it stops working.
Had a hard time finding a $document.ready version that even worked at all with rails.
Found one, but need to see if I can find one that does a little better?
parent ticket #26
Maybe should be newest first?
The order should always be by creation, not by last edited.
Waves -some sort of wave animation that is calming/slightly mesmerizing.
Defusion - (RFT - relational frame therapy) - fill out short form with a thought. Abstract the thought by putting the words from the form with the words "I am having the thought that" form-words. Then take it one level further out by putting the words "I am noticing that I am having the thought that" form-words. Lastly, add some sort of animation- I would picture my thoughts resting on leaves floating down a stream, but since this site is monochrome...and minimalist...the animation would be inspired by that notion, but not really trying to create it.
Sounds - a metronome and/or ocean sounds that can be turned on or off.
Meetups - a list of meet ups matching the user's area for anxiety
Show/hide a timer - for people who find seeing how much time is elapsed during an anxious time helpful. Hidden for those of us who find passing time even more anxiety inducing.
authenticate not working properly in UsersController - won't let users delete when the line of code is there. When commented it out, it is ok? But probably not ok. Need to investigate.
needs instructional prompts and an about
When a new user is created there is notification/route change or anything to let a user know that the process was successful.
When a user is NOT logged in the links to Breath Colors and Esque in the 'Menu' (application.html.erb) work fine.
When a user is logged in, they can access their journal but cannot access Breath Colors Esque:
ActionController::UrlGenerationError in Breaths#index
Showing /Users/karolinrafalski/dev/considerwater/consider_water_app/app/views/layouts/application.html.erb where line #18 raised:
No route matches {:action=>"index", :controller=>"journal_entries", :user_id=>nil} missing required keys: [:user_id]
<div class="menu">
<% if session[:current_user_id] %>
<%= link_to "Journal", user_journal_entries_path(@user) %>
<%= link_to "Mood", user_mood_ratings_path(@user) %>
<% end %>
<%= link_to "Breath", breaths_path %>
note: link_to "Journal" is highlighted
not sure why :user_id is nil in this case, but works in other places?
parent ticket #30
right now some plain html renders and the user must click the back button. Would be nice to have a proper message.
From what I can tell, if I were using bootstrap this would be easy to implement, but since I am not using it, it will be more of a process. Not sure if I have time before the due date of this project.
needs to be adjusted by angle, distance and speed
From the nesting/route refactor...need to check and update each one.
for users, sessions, journal entries and mood ratings.
From the nesting/route refactor...need to check and update each one.
I am pretty sure I will be using rails
Parent ticket #7
(currently moods are viewed as a list )
Thinking of using D3 or ChartKick.
Require learning one or the other.
mood bar exists in one specific place.
maybe needs to move to a slightly different place.
I was going to have it available on every page where a user is logged in- but rails routing is really challenging for me right now.
Parent ticket #31
Cleaned it up a bit, changed a few simple things around.
BUT
Thinking about having the user being able to write something about themselves there...perhaps short ~140-250 character things of they are grateful for. dunno. Some small touch would be nice rather than a single delete user button.
needs better css/ appearance/button locations...
I am trying to solve: the issue of structuring my time and prioritizing different components of my project.
Description of bug/error/issue: I have a few somewhat-working user stories and then few features that I was thinking of trying to incorporate. I am wondering about the best way to structure my time and approach.
Is it better to have more components that are not polished that push me to learn new things or is it better to try to polish the little bit that I have?
Also, I don't really know if my app makes sense or if it has just gone off into a weird and useless direction.
I have tried to write out user stories, draw and write out different component ideas and how they could fit into my app, tried sketching out a few schedule possibilities for the next few days. Talked to classmates to try to get feedback on what makes sense. But as time goes by, I feel like I am getting further and further away from a good plan.
My specific question is: what is the best approach I can take?
gives an error that 'cannot find id=0' when a user tries to access the journals.
Almost done fixing the errors when the routes were nested.
Once fully checked will merge from chartkick branch into dev see parent ticket #23
Yes, chartkick is not the right branch name but that's where I ended up working on it.
needs a new name.
Swinging pendulum
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.