Commit Graph

628 Commits

Author SHA1 Message Date
Mathias Meyer
162b4386ef Rework guide a whee bit to be more compact. 2013-06-13 20:47:21 +02:00
Mathias Meyer
a5b6e16d3e Add a contact section to the guide. 2013-06-13 13:43:26 +02:00
Mathias Meyer
b2bdd8ec7a More details for the getting started guide. 2013-06-13 13:34:26 +02:00
Mathias Meyer
87790fb6e1 Start fleshing out the getting started guide. 2013-06-13 12:44:21 +02:00
Piotr Sarnacki
b0d1e11e97 Allow to see getting started page through the URL 2013-06-13 12:40:46 +02:00
Piotr Sarnacki
3a4d52f52b Change URL when clicking on repos tabs 2013-06-12 19:55:34 +02:00
Piotr Sarnacki
75784da25e Render information about no repos into main template 2013-06-12 15:27:15 +02:00
Piotr Sarnacki
704bd9434e Redirect to getting started page if user has no repositories 2013-06-11 17:22:52 +02:00
Josh Kalderimis
60ac5e8080 remove the link to the stats page as it has been disabled for sooooo long now 2013-06-08 19:32:21 +02:00
Josh Kalderimis
abeba40d3f move Docs into Help, and capitalize for fun and profit! 2013-06-08 19:29:46 +02:00
Josh Kalderimis
a42e0b092f set the scope correctly when checking if a build/job is a PR in the template 2013-06-08 19:17:40 +02:00
Mathias Meyer
6708412a4d Sidebar be gone! 2013-06-08 10:12:41 +02:00
Piotr Sarnacki
e1b5e5d883 Rename routeTo to routeToPath
Ember already uses routeTo, we don't want to override this
2013-06-07 15:59:47 +02:00
Piotr Sarnacki
9eafd917ab Properly check for lastBuild on repo in routes 2013-06-06 21:28:55 +02:00
Piotr Sarnacki
ca835f5a1c Use CONFIG_KEYS in formatConfig 2013-06-06 19:06:32 +02:00
Piotr Sarnacki
299e227342 Add go config to the matrix 2013-06-06 15:39:39 +02:00
Piotr Sarnacki
58d3795644 Properly set model on build controller on build/show 2013-06-05 12:45:35 +02:00
Piotr Sarnacki
0d12176239 Don't error out if router is not yet setup
When router is not set up yet sending events to it will fail. If that's
the case, we can just swallow the error, because afterSignIn will take
effect only if we are already in some state in the router.
2013-06-05 12:43:27 +02:00
Piotr Sarnacki
50cdc4cf98 Move checking for errors to router rather than template
Previously we were checking if we should display an error message by
adding if statements in a template. This is not the best way to do
it, because it clutters a template and makes code harder to follow.

In this commit I move rendering error templates to the router. Code for
rendering error when there is no builds is not the best way to do it
either, but it can be improved when new router changes are merged to
Ember's master and a way Ember Data is handling promises is revised and
improved.
2013-06-05 11:37:29 +02:00
Piotr Sarnacki
f87e4108a8 Rethrow error if the error coming from router is not "Route missing" 2013-06-05 11:37:28 +02:00
Piotr Sarnacki
6bc7b69088 Refactor a way we setup things on repo controller
Till now, when switching between different views, we were switching
different bindings on repo controller. This was quite innefficient,
because then we needed to add bindings also from other controllers and
it's hard to manage such structure when we would like to add specialized
controllers (like LogController).

The new setup is more declarative, meaning that we do such things on the
router and set things on proper controllers. The only drawback is that
now we need to setup a few observers instead of bindings for "current"
views (ie. when viewing the newest repo or when viewing the last build
in current repo).

At this point it may not look like huge improvement, but it will open a
way to more refactorings.
2013-06-05 11:37:28 +02:00
Mathias Meyer
f6fde27258 Refine sidebar GA details. 2013-06-01 10:17:56 +02:00
Mathias Meyer
494ab53f83 Add tracking link tags. 2013-06-01 10:06:10 +02:00
Mathias Meyer
17a4ef79a7 Add help section and a link to travisci.com. 2013-05-31 21:47:56 +02:00
Mathias Meyer
a0ab577b6c Add RGSoC logo to the top of the sidebar.
Remove the current sponsors from the sidebar.
2013-05-31 21:17:06 +02:00
Piotr Sarnacki
aaf35365b1 Don't process pusher events immediately when running in background
When user has Travis CI's web page open in the background we should not
process pusher events immediately, because she will not see the changes
on a page anyway. During peak hours we can get several messages per
second, which requires some CPU work almost all the time. By using
visibility API we can detect if the tab with Travis CI is in the
background and if that's the case we will process pusher messages in
batches every 5 minutes. This is much better for the CPU, because it
means one bigger spike every few minutes and additionally some of the
updates don't have to be done (for example if we get several job:started
events, Ember's run loop will process only last one when it comes to
rendering 'current' build).
2013-05-29 16:54:12 +03:00
Piotr Sarnacki
8004766cfe Don't set sortProperties to null
Sorting could be triggered on controller and then when tab would be
switched, nullified sortProperties can result in an error.
2013-05-29 13:51:21 +03:00
Piotr Sarnacki
05859a5a3c Use visibility.js to run timer updates
Visibility.js provides a thin wrapper over page visibility API, which
allows to detect if page is currently visible by user. This allows us to
stop live updates when it's not needed. This is especially easy in case
of timers, because Visibility.js provides setInterval replacement, which
runs given code only when page is visible.

A lot of ❤️ for @tchack, who showed me visibility.js!
2013-05-29 13:42:51 +03:00
Piotr Sarnacki
46dc7e930d Add visibility.js, wrapper on page visibility API 2013-05-29 13:42:28 +03:00
Piotr Sarnacki
4288e79044 Change Ember.run.later to setTimeout in periodic actions
It seems that running Ember.run.later periodically can cause CPU usage
to increase over time. Such increase adds up to already increasing CPU
usage because of data amount growing.

This commit tries to mitigate the issue by using setTimeout instead
2013-05-29 11:17:58 +03:00
Mathias Meyer
b761536d80 Add newsletter link to "Community" menu. 2013-05-24 16:19:31 +02:00
Henrik Hodne
e659659861 Download 2x images from Gravatar
This will make them look nicer on Retina screens. We may want to make
them even bigger if people are increasing the size of the page on
Travis, but doing that causes all kinds of alignment issues, so it's not
necessary to do now, I think.
2013-05-22 13:09:24 +02:00
Piotr Sarnacki
22c1710e14 Update user data after sign in 2013-05-21 19:30:19 +02:00
Piotr Sarnacki
dd33378c47 Show repo on repos list even if it's not complete, but has lastBuildId 2013-05-21 14:59:32 +02:00
Mathias Meyer
7831fbc70b Move join links from sidebar into the top menu. 2013-05-20 15:56:13 +02:00
Mathias Meyer
be432528d8 Disable stats menu item for now.
Until a proper stats page is back, that is.
2013-05-17 07:54:27 +02:00
Henrik Hodne
e1877e13e7 Fix typo, commiter -> committer 2013-05-16 22:27:03 +02:00
Piotr Sarnacki
d0f7c75795 Remove sidebar elements, which need to query API
This reverts commit b6e89073dc.
2013-05-16 13:55:18 +02:00
Piotr Sarnacki
a4fccf800a Don't use id for flash view
When logging out and then logging back in, there is sometimes an error
when registering flash view, which says that it can't register 2 views
with the same id. We don't need to use id here, so I just changed id to
class
2013-05-16 13:33:07 +02:00
Piotr Sarnacki
d8b96a960d Always send afterSignIn event 2013-05-16 13:16:53 +02:00
Piotr Sarnacki
90ffeaf085 Allow to override sign in and sign out callbacks on routes 2013-05-16 12:46:58 +02:00
Piotr Sarnacki
eb065a0eee Sort owned repositories 2013-05-16 02:10:10 +02:00
Piotr Sarnacki
b432a39fb4 Don't try to connect outlet if current view is desteoyed 2013-05-16 01:56:05 +02:00
Piotr Sarnacki
563c1f8773 destroyed -> isDestroyed 2013-05-16 01:51:57 +02:00
Piotr Sarnacki
685cf1074f Initialize _outlets if it's null 2013-05-16 01:48:06 +02:00
Piotr Sarnacki
a097271f8a Use Ember version with e7c20b5b9 reverted
It introduced a bug when switching from repo view to the build view
2013-05-16 01:23:59 +02:00
Piotr Sarnacki
ebb5f17058 Fix tests with new Ember version 2013-05-15 18:46:41 +02:00
Piotr Sarnacki
e21bee6494 Make sure that commit data is always fresh by using #with
Commit data in job and build view is sometimes unbound, make sure it's
refreshed when commit does change.
2013-05-15 17:23:54 +02:00
Piotr Sarnacki
985e218981 Fix odd behavior on running jobs list and on queued jobs list
In order to not load too many repositories when not needed I was using
construct of repoData on Job and Worker models. repoData was a simple
object with id and slug attributes, which was used to generate url for a
repo. That way I didn't have to instantiate Repo object for generating
urls. The problem is that our API does not return repositorySlug along
with Job record, so the value of repositorySlug was overwritten and in
consequence repoData was becoming empty.

I could change the API, but I feel that the whole repoData concept is
flawed. A bit better solution is to load incomplete repository data into
the store (just an id and a slug) and then instantiate repo record - as
long as it will not need to provide other fields than an id and a slug,
we will not have to do an ajax request.
2013-05-15 17:23:53 +02:00
Piotr Sarnacki
895b52d7c4 Don't error out if response is not valid JSON 2013-05-15 17:23:53 +02:00