topbar messages when overdue or complete

This commit is contained in:
Radek Stepan 2014-10-25 09:30:29 -07:00
parent 790d73187e
commit d096365f48
4 changed files with 26 additions and 5 deletions

View File

@ -6,7 +6,7 @@ build-app:
./node_modules/.bin/browserify -e ./src/app.coffee -o public/js/app.js -d ./node_modules/.bin/browserify -e ./src/app.coffee -o public/js/app.js -d
watch-app: watch-app:
./node_modules/.bin/watchify -e ./src/app.coffee -o public/js/app.js -d ./node_modules/.bin/watchify -e ./src/app.coffee -o public/js/app.js -d -v
build-vendor: build-vendor:
grunt grunt

View File

@ -23,9 +23,6 @@
###Misc ###Misc
- [ ] the deploy script needs to disable autoreload; `make watch` should start a static web server and also launch a build script with a flag saying which files to include in the head (uncompressed, with live reload); standard build script should minify scripts - [ ] the deploy script needs to disable autoreload; `make watch` should start a static web server and also launch a build script with a flag saying which files to include in the head (uncompressed, with live reload); standard build script should minify scripts
- [ ] vendor module so we can proxy require all `window` libs
- [ ] show a countdown clock towards the end of the milestone or show overdue
- [ ] trigger success topbar when we have completed a milestone on chart page; show plain when we are behind
- [ ] on chart page show a little progress bar in the title - [ ] on chart page show a little progress bar in the title
- [ ] add a chart straight from the hero banner - [ ] add a chart straight from the hero banner

File diff suppressed because one or more lines are too long

View File

@ -65,6 +65,18 @@ module.exports = Eventful.extend
# Save the milestone with issues. # Save the milestone with issues.
projects.addMilestone project, data projects.addMilestone project, data
# Done?
@publish '!app/notify', {
'text': 'The milestone is complete'
'type': 'success'
} if data.stats.isDone
# Overdue?
@publish '!app/notify', {
'text': 'The milestone is overdue'
'type': 'warn'
} if data.stats.isOverdue
# Show the page. # Show the page.
@set @set
'milestone': data 'milestone': data