Commit Graph

38 Commits

Author SHA1 Message Date
Lisa Passing
126c767fe1 write some tests 2015-04-17 13:39:36 +02:00
Lisa Passing
23e719ed78 componentify caches 2015-04-17 13:06:21 +02:00
Lisa Passing
203fbcea8a add pr icon 2015-04-14 12:47:03 +02:00
Lisa Passing
a78e226de1 only show one (biggest) cache per branch 2015-04-14 12:19:07 +02:00
Piotr Sarnacki
cbbd555fdd Bring better sortOrder for my repos back 2015-04-08 14:09:40 +02:00
Piotr Sarnacki
918b6e043e If there's no repos on landing page for 10s, fetch some 2015-04-07 14:43:00 +02:00
Piotr Sarnacki
17a8edba50 Show only finished repositories on landing page 2015-04-07 14:42:59 +02:00
Piotr Sarnacki
42cacb31ec Style recent builds on landing page 2015-04-02 16:57:18 +02:00
Piotr Sarnacki
a5ade45b47 Rewrite landing page recent repos to not query API 2015-04-02 13:37:42 +02:00
Piotr Sarnacki
defc930699 Don't show CTA on landing page 2015-04-01 11:32:04 +02:00
Piotr Sarnacki
5e21afd1f4 Display running repos info on landing page 2015-04-01 10:32:04 +02:00
Piotr Sarnacki
6695a8e19a Completely remove left sidebar for not logged in users 2015-03-30 13:22:51 +02:00
Piotr Sarnacki
ecc635bde5 Auto-merged master into landing-page on deployment. 2015-03-30 12:15:42 +02:00
Piotr Sarnacki
b30492296c Show landing page before signin in 2015-03-30 12:06:49 +02:00
Piotr Sarnacki
74d1415258 Set model on accounts controller for backwards compat 2015-03-27 09:06:29 +01:00
Piotr Sarnacki
9133555efd Add fallback for setting title in account 2015-03-27 08:48:49 +01:00
Piotr Sarnacki
c4b114bdb6 Divide user and organizations on accounts list 2015-03-25 11:38:39 +01:00
Piotr Sarnacki
e8ad482434 Make favicon work properly when viewing job
Current implementation of controllers makes it hard to implement favicon
changes outside of build/job controllers. The problem is that if a job
is viewed, both controller are populated, which means they will both
send state change events to change favicon. This commit adds a check for
build controller, which allows to disable state change events when we're
viewing a job
2015-02-24 16:51:37 +01:00
Piotr Sarnacki
acb70dcac7 First stab at changing favicon based on build or job state 2015-02-24 16:20:56 +01:00
Piotr Sarnacki
cf9bea3ea5 Call super in deactivate/activate in main/recent route
The problem that I identified earlier as a Safari bug turned out to be a
bug in main/recent route. Not calling super in deactivate resulted in
code to remove observer not being executed at all.
2015-02-20 13:18:15 +01:00
Piotr Sarnacki
bf7c4e1464 Fix viewing repo after viewing all repos on safari
When transitioning from recent route to a specific repo deactivate is
not called for some reason on Safari. It seems like a bug in Ember.js,
but I need to investigate more.

A solution is to also try to remove observer in reset controller
2015-02-18 16:32:46 +01:00
Piotr Sarnacki
dfc22014a8 Set page titles relevant to page is loaded
I used ember-cli-document-title addon.
2015-02-17 14:35:59 +01:00
Piotr Sarnacki
f7f274f5d5 Fix search
In search there was a check on 'auth' in the view and we no longer
inject auth into views. That's why the check needs to be done on the
controller.

The other thing is that slash breaks the URL currently, so this commit
also changes slash in the search phrase into %2F character.
2015-02-17 10:38:04 +01:00
Piotr Sarnacki
5bb419ef7b Sort repos explicitly on dashboard 2015-02-16 16:09:10 +01:00
Piotr Sarnacki
9559d55400 Don't subscribe to pusher if there's no instance 2015-02-16 14:15:36 +01:00
Piotr Sarnacki
9601d53ad6 We can use @pusher directly, no need for @get 2015-02-16 14:14:59 +01:00
Piotr Sarnacki
85fc6c5cf4 Don't require auth for requests 2015-02-10 10:33:04 +01:00
Piotr Sarnacki
705fe69208 Fix ssh-key route 2015-02-06 15:11:02 +01:00
Piotr Sarnacki
e943f9ef5c Properly set value of isRecentTabOpen to false on deactivate 2015-02-05 15:47:10 +01:00
Piotr Sarnacki
3780eaa13f Merge pull request #326 from travis-ci/less-pusher-data
Don't save data from pusher that won't likely be used
2015-02-05 15:37:49 +01:00
Piotr Sarnacki
24d18afd48 Merge branch 'css-refactor' into ember-cli
Conflicts:
	app/templates/layouts/profile.hbs
	assets/scripts/app/routes.coffee
	assets/scripts/app/views.coffee
2015-02-05 12:49:26 +01:00
Piotr Sarnacki
3d216ad9f7 Filter repositories without last build 2015-02-05 12:39:58 +01:00
Piotr Sarnacki
141457c4f9 Change config keys to camel case 2015-02-05 11:35:47 +01:00
Piotr Sarnacki
e33af8a672 Go one step further with lowering pusher data landing into store
If user switches to recent repos tab and then switches away, there's really no
point in pushing everything into store. We can still reject all of the events
for repos that don't belong to the current user and are not yet in the store.
2015-02-05 10:57:36 +01:00
Piotr Sarnacki
6f0eaf7091 Don't save data from pusher that won't likely be used
If user is logged in and doesn't keep 'recent repositories' tab opened, most of
the pusher events from 'common' channel are useless.

This commit introduces a logic to reject pusher events if:

  * recent tab hasn't been opened
  * user is signed in
  * Travis CI for open source is used
  * repository for a given event is not yet in store
  * repository for a given event is not part of current user's repositories
2015-02-05 10:57:36 +01:00
Piotr Sarnacki
90b91bd49b Fix pusher channel subscribe
When channel_prefix is not defined it should be set to empty string.
2015-02-03 20:31:41 +01:00
Piotr Sarnacki
b0bd24a129 Add ember-cli version of the Ember.js app 2015-02-03 09:48:22 +01:00
Piotr Sarnacki
3a09a0da9a Move assets/scripts/app to root dir 2015-02-03 09:44:34 +01:00