Commit Graph

133 Commits

Author SHA1 Message Date
Piotr Sarnacki
94a752592d Revert "Revert "API uses match to filter by slug""
This reverts commit 0a9fdb718c.
2014-08-12 16:05:28 +02:00
Piotr Sarnacki
eecd5187a3 Revert "Revert "Page for displaying caches""
This reverts commit 3d6931c523.
2014-08-12 16:05:21 +02:00
Sven Fuchs
3d6931c523 Revert "Page for displaying caches"
This reverts commit a58688b451.
2014-08-12 15:53:19 +02:00
Sven Fuchs
0a9fdb718c Revert "API uses match to filter by slug"
This reverts commit e286428722.
2014-08-12 15:53:06 +02:00
Piotr Sarnacki
e286428722 API uses match to filter by slug 2014-08-05 18:14:34 +02:00
Piotr Sarnacki
a58688b451 Page for displaying caches 2014-08-05 18:09:24 +02:00
Piotr Sarnacki
aa06f3947e Display current repo's URL for lint link 2014-07-22 18:47:45 +02:00
Piotr Sarnacki
00ccb07a49 Fix sync button 2014-06-17 16:39:21 +02:00
Piotr Sarnacki
52dea338ee Refactor handling accounts
This commit changes a way we load accounts for profile view:

* instead of using several views with profile controllers, always use
  one view to render hooks. This is achieved by redirecting to
  individual account page from main profile page (for example when going
  into /profile as a user drogus, the effective address will be
  /profile/drogus)
* instead of using observers to wait for accounts to load I just use
  promise in ProfileRoute#model which effectively ensures that accounts
  are loaded at the time we want to select an individual account
* profile controller is split into profile and account controller
2014-05-28 10:23:39 +02:00
Piotr Sarnacki
3b1cd4f5c4 Bring back afterSignIn and afterSignIn as actions sent to controller
It seems that there is more use cases to cover with this behaviour, for
example when someone enters /auth directly and logs in from there.
2014-05-28 10:22:48 +02:00
Piotr Sarnacki
3544d523d7 Refactor auth code
* don't use __container__
* register it as a factory on container and inject into routes and
  controller
* avoid afterSignIn errors by checking on hooksTarget, ApplicationRoute
  should register itself as a hooksTarget
* keep user info on auth
2014-05-28 10:22:47 +02:00
Piotr Sarnacki
57edf811b7 Add requests page 2014-05-12 11:03:10 +02:00
Mathias Meyer
e093b5b90a Hide "Show More" when there are no more builds.
Fixes travis-ci/travis-ci#1057
2014-05-10 09:39:24 +02:00
Piotr Sarnacki
66e93ed3ab Limit flash messages to 2
(closes travis-ci/travis-ci#1859)
2014-05-06 11:39:36 +02:00
Mathias Meyer
2fa2ea533b Fix repository hint on accounts pages.
Accounts and the profile are currently separate controllers, so
whenever you switched the account, the message would be hidden.
2014-05-06 10:10:36 +02:00
Mathias Meyer
34c07325d3 Add a message for travis-ci.com as well.
Switched the logic around to make a bit more sense with the
configuration conditionals.
2014-03-18 10:44:34 +01:00
Mathias Meyer
aaf777ce9d Show a message pointint to travis-ci.com.
Reduces friction a whee bit in finding your private repositories.
2014-03-18 10:40:30 +01:00
Piotr Sarnacki
7ef7da5535 Redirect to getting started only from index route
Also rename renderNoOwnedRepos to redirectToGettingStarted
2014-02-20 15:28:38 +01:00
Mathias Meyer
b2bfb6c3e9 Rename properties/bindings for unadministerable hooks. 2014-02-18 11:56:19 +01:00
Piotr Sarnacki
f123162627 Use Em.computed.sort and Em.computed.limit instead of nesting proxies
With new array computed helpers we can simplify code and get rid of
nested array proxies.
2014-02-18 10:13:41 +01:00
Hiro Asari
e00b938f4d Merge pull request #190 from travis-ci/hh-annotations
Annotation support (#1220)
2014-01-27 08:41:52 -08:00
Hiro Asari
9e2a8cb218 Merge branch 'master' into hh-annotations
Conflicts:
	assets/scripts/app/controllers/job.coffee
	assets/scripts/app/models/job.coffee
2014-01-24 10:18:58 -05:00
Justine Arreche
f6491297c1 removed instances of locales in current_user and user 2014-01-14 14:01:40 -05:00
Damien Mathieu
ff1aad3f03 extract the log lines selector into a separate component 2014-01-09 15:53:33 +01:00
Damien Mathieu
c9e0f07a5a highlight multiple lines
We can now highlight multiple lines, adding #L1-L2 to the hash.
We can select the ending line with shift + click.

Closes travis-ci/travis-ci#1829
2014-01-07 21:46:19 +01:00
Hiro Asari
4d83e1a4cb Remove urlAuthor and urlCommitter fields
No longer in views, so no need to keep these.
2013-12-31 23:21:10 -05:00
Piotr Sarnacki
edb4e19309 Run lastBuildDidChange only once for a runloop run
When a lot of pusher events come with build updates, lastBuildDidChange
can run quite frequently. We can avoid that by using scheduleOnce, which
will ensure that only the last invocation of lastBuildDidChange will be
run for a given runloop run.
2013-12-11 12:43:08 +01:00
Piotr Sarnacki
07e0620b23 Fix duplicated broadcasts 2013-12-04 16:20:16 +01:00
Piotr Sarnacki
018eafe84b Fix problem with getting started template rendering on first sync
When first sync template is displayed, user usually doesn't have any
repos, which also triggers rendering of getting started template. The
fix for this is to handle the action to render getting started page on
first sync and do nothing in such case.

I also added a test to ensure that it works correctly.
2013-10-29 20:48:27 +01:00
Piotr Sarnacki
b5297d7800 Update code for newest ember-model 2013-10-18 13:41:10 +02:00
Piotr Sarnacki
1ea19a7cbd Properly detect if user is logged in for broadcasts 2013-09-24 14:17:19 +02:00
Gosha Arinich
62322318da get rid of 'controllerFor' deprecation warnings 2013-09-21 21:31:12 +03:00
Piotr Sarnacki
19a6b29b35 Reload hooks if they're not available 2013-09-16 18:53:13 +02:00
Piotr Sarnacki
0327d39e2c Move observing last build to controller
We observe last build on the repo in order to show the freshest build on
repo page. I moved it to router in order to keep such observers in the
same place, but this was not a wise move. To make it work properly
observer needs to be removed when moving to some other part (like
build's page). The problem is that deactivate function is not called
when we move to the other route in the same nesting. We have our own
'activate' function on repoController, which is better suited for
handling this task.
2013-09-12 23:23:21 +02:00
Mathias Meyer
451894bcec Pull some bindings into build and job controllers. 2013-09-08 10:11:20 +02:00
Piotr Sarnacki
92616251bb Revert "Update code for newest ember-model"
This reverts commit 1594130ff3.
2013-09-06 22:14:06 +02:00
Piotr Sarnacki
1594130ff3 Update code for newest ember-model 2013-09-06 19:37:06 +02:00
Piotr Sarnacki
4b7f9bb14a Delegate CurrentUserController#updateLocale to user instance 2013-09-01 14:22:48 +02:00
Piotr Sarnacki
072a5de579 Show first_sync page after routerTransitions
This code ensures that we send an event after router is fully
initialized, otherwise it could cause an error.
2013-08-29 16:33:09 +02:00
Piotr Sarnacki
18ba86eca0 Remove stuff not used in travis-web anymore 2013-08-28 14:17:26 +02:00
Piotr Sarnacki
b56fa7b9df Fix getting hooks on profile page
Hooks were sometimes not loaded, because user property on
ProfileController was not available. This commit tries one additional
way to get a login - Travis.lookup with controller:currentUser.
2013-08-27 16:11:56 +02:00
Piotr Sarnacki
8c3e92faea Merge branch 'master' into ui-improvements
Conflicts:
	assets/scripts/app/controllers/repo.coffee
	assets/scripts/app/templates/builds/show.hbs
	assets/scripts/app/templates/jobs/show.hbs
2013-08-06 13:16:56 +02:00
Piotr Sarnacki
33bce774a3 Add first_sync template
First sync will be displayed when user is logged in and first sync is
still taking place
2013-08-05 03:29:19 +02:00
Piotr Sarnacki
b40d0acf9c Return empty array from userRepos when there is no user 2013-08-05 03:28:43 +02:00
Piotr Sarnacki
d248fd11a6 Fix messages on empty repos list 2013-08-05 02:35:47 +02:00
Piotr Sarnacki
218a078164 Fix messages on empty repos list 2013-08-05 02:35:28 +02:00
Piotr Sarnacki
d9d833d1b4 No need to prefetch repos in recentRepos
Repo#withLastBuilds already does a fetch, so this is redundant
2013-08-03 15:11:23 +02:00
Piotr Sarnacki
53951c3691 Don't reload user repositories each time my repos tab is clicked 2013-07-31 16:18:37 +02:00
Piotr Sarnacki
42470fd416 Wrap updateTimes in Ember.run 2013-07-31 13:59:03 +02:00
Piotr Sarnacki
92da0c8034 Simplify build/job and tools templates 2013-07-31 13:43:06 +02:00