Coder Social home page Coder Social logo

childcare's People

Contributors

alexbollas avatar ncausey avatar slmassari avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

buypolarbear

childcare's Issues

UPDATE Trello

Nick and I went through all the stuff that we as a team are working on or going to be working on.
Go on there and find yours (or the ones that are not assigned to anyone that you think are yours) and move them to the appropriate column (backlog, in progress, testing, or done).

Edit waitlist order

When the order for the waitlist is edited the waitlist does not properly reorder

Child's age does not display if less than 1 month

The age of the child does not display if it is less than 1 month. The age should be displayed either in weeks or by stating the age is <1 month. Additionally, if the age is 1 month or less, the displayed text should use 'month' rather than 'months'.

Error handling for EVERY server method call

Every server method call that is made in the client, needs to have a solid error handling and it should be using the "new" systemic error display (another issue is created for that).

There needs to be logical flow when errors happen.
For example, If they were in middle of filling out an application, they need to be taken back to the beginning and what they had filled out should be there.

dont set the title of the action item as the id of the element.

Ids must be unique. titles are not unique. _id of the document that you get from the collection is unique. so use that.
You can't just use that by itself tho, the problem is that ID's in html cannot start with numbers. so to work around that, you can pad the ID with some text in the html and look for that same padding in the javascript
You need to change for toddlers, infants, and completed action items

created by email?

using createdByEmail is simply duplicating data. we already have the id of the user who created it, we can get all the information of that user using their id.

Attache the parent 2 to the application

it does not make sense to add another parameter to the call because we now have a second parent. what if later we needed X and Y and Z? should we just keep adding arguments?

That is why in the first place we are sending an object instead of all those variables as separate arguments. Add the parent2 to the application object (as secondary parent, or even you could have parent be an array -- future flexibility) and keep the signature of the method the same.

START testing

We need to figure out someway of testing our application.
We can checkout Jasmine (its kind of harder to use Jasmine when we are not writing packages)
and checkout Cucumber (for behavioral testing)

Dont actually create a user for the system, just mark the action items

I think another way to approach this is to simply mark the action item so that you can find out whether the action item is a system kind or not.

If you create another user, on each row, you have to get the user and check if its admin, which is a whole a lot of queries that are not absolutely necessary.

action item title remove?

I thought after we talked about how Lauren does not want the title in the action items, we said that we are gonna remove it and simply just use the description.

use the Boolean value for is Completed and not String

is completed should be of boolean type. that way there there would be no confusion.

Also, the label field is for the UI, so use a human readable text of what the field should be called.
For example, for the isCompleted the label could be "Is Completed" rather than "IsCompleted"

assign the id to the row not the data

assigning the id of the action item to the data (td), would make it harder for you to get the id of the action item when they click on the row.

but the point of an id is something that is unique within a page (what is unique). we are really talking about that whole row being a unique entity not only that data part of the row.

dont format date for the collections

its best if you just stick with the regular javascript date function when you store stuff in the database.
for the formatting, you do that when you get the stuff back from the database and are trying to display it to the user.

createdBy, completedBy are id's

the collection for the action items is defined in such a way that the createdBy and completedBy are of type SimpleSchema.RegEx.Id. so you should not assign the email address of that person to such field.

So when someone creates an action item or completes an action item, you should get their Ids and set it to that field.

check the result of a meteor call. dont just assume it went correctly

when you call a method in meteor, there is a callback that you get from it when the method is completed (it is like an Ajax request). so send something back from the method indicating that the action went okay or no it didnt go okay (that is where the backend checks/validations come into play).
if things didnt go correct, send it back to the UI and check for that result and update the UI accordingly.

http://docs.meteor.com/#/full/meteor_methods
http://docs.meteor.com/#/full/meteor_call

Use the same tab size

we decided to use the same tab size across all of our editors so when someone edits your code, their IDE wouldnt change the tab sizes and the commit would look like there is a lot of changes where there actually is very minimal changes

Tab size: 2
IDE should use spaces for tabs

Make the getUserEmail a global helper

You seem to be doing the almost exact if not exactly the same same things in the different getCompletedByUser functions.

Just create a global helper that does just that so you dont have to create multiple ones. And I am sure that would be used a lot in a lot of other places.

dont use html markup for styling, use CSS

using html mark up for styling is a less maintainable way of developing a page.
instead using css instead, will allow you to use the different classes in different parts of the code and also is not cluttering the html (as it already it).

also, there are lots of helpers already in the bootstrap framework that you can use, take advantage of those.

in this particular example of the table that you created, if you move them to be header, they are most likely already bolded by default styling of bootstrap.

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.