Code Monkey home page Code Monkey logo

considerwater's People

Contributors

krafalski avatar

Watchers

 avatar  avatar

considerwater's Issues

Route Rebuild issue - mood rating create

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

Change the way users input their mood

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.

journal view update

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.

Fixing routes

With Colin we reworked the nested resources that belong to a user (journal_entries and mood ratings).

turbolinks and jQuery don't play nice

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?

Possible Directions/New Features

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/delete

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.

new user notification/login

When a new user is created there is notification/route change or anything to let a user know that the process was successful.

Route Rebuild issue: Breath/Colors/Esque

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?

new user- style error message

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.

mood bar accessibility/location

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.

User profile page is ...blah

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.

I need direction

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?

Merge Rebuilt routes into dev

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.