Commit Graph

325 Commits

Author SHA1 Message Date
Piotr Sarnacki
599e6f0bf9 Don't return a promise for job in RepoActions 2015-01-29 13:39:05 +01:00
Piotr Sarnacki
ec24b21e81 Switch to Ember Data 2015-01-29 13:39:05 +01:00
Piotr Sarnacki
93bb5f68e7 No need to put dashboard layout for application/loading 2015-01-27 16:43:09 +01:00
Lisa Passing
d1eaf8e79b loading and filter 2015-01-23 15:58:22 +01:00
Piotr Sarnacki
3584710a86 Add missing repo views 2015-01-23 13:56:57 +01:00
Piotr Sarnacki
bf6b0b47b5 Specify template in jobs view 2015-01-23 13:56:45 +01:00
Piotr Sarnacki
c7147e6146 Move top.hbs to templates dir 2015-01-21 11:10:29 +01:00
Piotr Sarnacki
3d42a5961d More ember-cli preparation 2015-01-21 11:10:28 +01:00
Piotr Sarnacki
8f075662ac Prepare Jobs views for ES6, remove repo/show and repo/list 2015-01-21 11:10:28 +01:00
Piotr Sarnacki
ecbfe4e74e Extract remaining controllers and views into individual files 2015-01-19 13:04:52 +01:00
Piotr Sarnacki
f26d3edcc5 Prepare BuildView for ember-cli 2015-01-15 17:08:40 +01:00
Piotr Sarnacki
c205529295 Cleanup BuildsView 2015-01-15 17:08:40 +01:00
Piotr Sarnacki
345cb6e29e Cleanup BuildView 2015-01-15 17:08:40 +01:00
Piotr Sarnacki
67e787596f Follow conventions on templates locations 2015-01-15 17:08:40 +01:00
Piotr Sarnacki
3c057ea401 Remove BuildsItemView 2015-01-15 17:08:40 +01:00
Piotr Sarnacki
76f4ac758c Fix CSS on profile page 2015-01-15 17:08:40 +01:00
Piotr Sarnacki
eb00c7104e Add classes to application and dashboard views 2015-01-15 12:58:07 +01:00
Piotr Sarnacki
5065bb5739 Subscribe to pusher channels only when entering the MainRoute
We don't want to subscribe if we're at any other routes, because there is no
data there. The main target is to avoid all of the notifications from a common
channel if we're on the /dashboard route.
2015-01-15 10:36:35 +01:00
Piotr Sarnacki
df74b618ce Enable removeLog on pro 2015-01-14 12:27:31 +01:00
Piotr Sarnacki
8ff844e5a1 Strengthen the check to display download log button
Technically jobIdForLog should be sufficient, because it has job id only when
it's a job or a build page, but for some reason it doesn't get refreshed
properly.
2015-01-13 15:46:21 +01:00
Piotr Sarnacki
f7b2f0cbf1 Disable remove log button on pro for now 2015-01-12 14:22:48 +01:00
Piotr Sarnacki
d69ab156e0 Merge pull request #324 from travis-ci/remove-log
Remove log
2015-01-12 12:56:54 +01:00
Piotr Sarnacki
8b6db4461c Don't use events to open popup for allowed failures help 2015-01-12 12:20:19 +01:00
Piotr Sarnacki
9023d0ca06 Remove extra removeLogPopup function (merge
leftover)
2015-01-09 15:19:36 +01:00
Piotr Sarnacki
23cebc4826 Merge branch 'remove-log' of github.com:travis-ci/travis-web into remove-log 2015-01-09 15:03:46 +01:00
Piotr Sarnacki
aca82a0379 Display remove log only when user hasPermissions to use it 2015-01-09 14:59:21 +01:00
Lisa P
8c74c10654 Merge branch 'remove-log' of github.com:travis-ci/travis-web into remove-log 2015-01-09 14:54:09 +01:00
Piotr Sarnacki
eb78d62adb Change popup functions to not use events 2015-01-09 13:07:12 +01:00
Piotr Sarnacki
4d9d0f10d9 Bring back hack for download log button 2015-01-09 13:07:12 +01:00
Lisa P
3bf326a942 Add actions for remove log 2015-01-09 13:07:12 +01:00
Piotr Sarnacki
7959442a99 Disable remove log button for now 2015-01-08 17:11:48 +01:00
Piotr Sarnacki
78dccd194c Bring back hack for download log button 2015-01-08 17:03:34 +01:00
Lisa P
97050b8111 Add actions for remove log 2015-01-08 16:56:40 +01:00
Piotr Sarnacki
cc7fef21ca Fix download log and remove log button display checks
For some reason when we run get('build.jobs.firstObject.id') it returns
different result than get('build.jobs').objectAt(0).get('id'). I can't reproduce
it on a clean Ember application, so it's probably a consequence of something
that we do in our views.
2015-01-08 15:15:41 +01:00
Piotr Sarnacki
e6bde154ec Put statusImages in actions 2015-01-08 14:16:53 +01:00
Piotr Sarnacki
d2faa71acc Show code climate for both pro and org 2015-01-08 14:07:44 +01:00
Piotr Sarnacki
86a02ad1da Add access_token only on pro for log url 2015-01-07 13:06:05 +01:00
Piotr Sarnacki
f566d601ee Move toggleTailing to actions in PreView 2015-01-06 14:08:21 +01:00
Piotr Sarnacki
0074acb8fe Fix profile info tab 2015-01-06 12:45:08 +01:00
Piotr Sarnacki
fbcfa04859 Don't destroy parts on cleanup
Destroying parts on cleanup can have weird effects, because we observe parts in
log view.
2014-12-30 11:58:56 +01:00
Piotr Sarnacki
eb9eac2b09 Merge branch 'refactoring' into ps-travis-pro-merge 2014-12-30 11:30:08 +01:00
Piotr Sarnacki
47e1de1d26 Extract Github URLs to controller 2014-12-30 11:28:49 +01:00
Piotr Sarnacki
88ce89d34c [pro-merge] Update views and templates with travis-pro specific code 2014-12-29 18:20:21 +01:00
Piotr Sarnacki
23dd688d09 [pro-merge] Add token to log urls when in pro mode 2014-12-29 18:17:58 +01:00
Piotr Sarnacki
66be22af68 Fix actions on views
Almost all actions on views were not properly handled, because they were still
methods directly on a view object rather than in `actions` property. This commit
fixes it.
2014-12-29 18:17:55 +01:00
Piotr Sarnacki
5f2f4c3852 First stab at fixing weird view errors
This commit starts refactoring of one of the remaining areas where we do weird
tricks to get the desired behaviour. Namely, we were treating "my_repositories"
and "recent" not as individual routes with separate URLs, but only different
states on the repos controller. Such approach leads to various problem with
connecting outlets on rerenders (ie. we don't explicitly connect outlets when
changing from one view to another programatically).

A new cleaner way is to change both tabs into routes.
2014-12-29 18:17:55 +01:00
Piotr Sarnacki
0dfb5dc10c Get parts from a log object
For some reason using this.get('log.parts') is not equivalent to
log.get('parts')
2014-12-29 18:16:16 +01:00
Piotr Sarnacki
0a69a5424d Fix log errors on 1.8.1
This part needs further refactoring, but for now I just fixed log view to
teardown and setup things properly in all cases something changes (when element
is inserted or removed, but also when log object is changed).
2014-12-29 18:16:15 +01:00
Piotr Sarnacki
e6800c80c6 Refactor our layout handling
Layout handling in travis-web was implemented in a dynamic way, so we
could change a main layout from any of the routes. This needed a
`rerender` call which was making things harder and needed some hacks. It
also broke a few transitions when upgrading to 1.8.1.

After examining our usage of layouts I've noticed that we don't need to
change the entire layout dynamically and instead we can set layout on
root routes (like "index", "profile" and other root routes).
2014-12-29 18:16:14 +01:00
Piotr Sarnacki
09eeeaff1b Revert "Revert "Merge pull request #308 from rwjblue/update-ember""
This reverts commit 840ce5a47d.
2014-12-29 18:16:14 +01:00