Commit Graph

116 Commits

Author SHA1 Message Date
Piotr Sarnacki
840ce5a47d Revert "Merge pull request #308 from rwjblue/update-ember"
After upgrading ember to 1.8.1 tests pass, but I found a few cases where
things break (for example when navigating between certain routes). I'm
reverting for now.

This reverts commit fa5e9179af, reversing
changes made to 978c887123.
2014-11-12 12:11:53 +01:00
Robert Jackson
5d72292915
No need to advanceReadiness (automatic with visit now). 2014-11-05 15:12:39 -05:00
Robert Jackson
2b0f107225
Metamorph tags are no longer added, reducing the number of children. 2014-11-05 12:51:27 -05:00
Robert Jackson
8e0b2e9fb3
Remove extra nesting level in integration test. 2014-11-05 12:50:56 -05:00
Robert Jackson
9011f9d85d
Pass test suite.
* Add `travis.source_endpoint` meta (fixes many tests with hard
  expectations on `http://github.com` being in URL paths).
* Wrap `Ember.run.once` in a `Ember.run` (prevents test auto-run
  assertion).
* Fix expect counts for a couple tests.
2014-11-04 21:22:58 -05:00
Piotr Sarnacki
43a7ad927f Fix tests syntax 2014-09-12 15:45:47 +02:00
Piotr Sarnacki
13408d875a Implement fallback for pusher log messages
If we don't get any pusher messages with log updates after 5 seconds, we
will try to download them from the API.
2014-09-11 18:22:31 +02:00
Piotr Sarnacki
615edb5686 Fix specs
For some reason mocked ajax queries don't fire when build page is opened
directly in specs. I don't want to go into detail at this point, because
I plan rewriting build/job related views and controllers to decouple
repo controller anyway, which should fix some of the oddities.
2014-08-14 18:45:06 +02:00
Piotr Sarnacki
0ba62df35c Remove outdated specs 2014-08-14 16:08:57 +02:00
Piotr Sarnacki
2677f3f613 Fix specs 2014-07-15 13:23:01 +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
Josef Šimánek
265dfa1d2d Fix JS spec env.
* remove unnecesary files
* add quint stylesheet
2014-05-12 23:57:08 +02:00
Josef Šimánek
862fd4cf1b Fix tests broken in 680a0c8. 2014-05-12 03:05:51 +02:00
Mathias Meyer
7e6e5ba00e Fix tests. 2014-05-09 10:30:00 +02:00
Josef Šimánek
141619c3f5 Show committer in build header only when he's not author. 2014-05-09 04:28:58 +02:00
Josef Šimánek
b8bd3b5fe8 Remove unnecessary ; from spec_helper. 2014-05-09 04:28:44 +02:00
Josef Šimánek
a934267b86 Use gravatar for author and committer avatars. 2014-05-09 02:20:34 +02:00
Mathias Meyer
e1bd111224 Change summary on job page, fix more tests.
This brings both pages on par, though the duplication isn't ideal.
2014-05-08 16:31:33 +02:00
Mathias Meyer
1373308475 Delete old summary, fix tests for the builds page.
This commit breaks tests for the job page, but bear with me. It
doesn't have the new layout yet.
2014-05-08 16:00:28 +02:00
Mathias Meyer
2172fb705a Trim the commit message. 2014-05-05 10:13:54 +02:00
Piotr Sarnacki
46e325c7bd Disable tailing specs for now 2014-04-16 09:58:36 +02:00
Piotr Sarnacki
535a873dc0 Make "to top" link visible when scrolling through the log
These are the changes by @dmathieu (reverted at d7bef2b) slightly
changed to allow us to use them also on Travis Pro.

The change is to still use onScroll calculations in order to position
elements instead of using "position: fixed". The latter method is harder
to use when element needs to be positioned relatively to other element -
on Pro we would have to still calculate the position because of the
right sidebar.
2014-03-04 14:07:33 +01:00
Piotr Sarnacki
36db80d45f Add Ember.computed.limit and use it in LimitedArray
arrayComputed was added recently in order to make array computations
easier. Using arrayComputed we can improve LimitedArray which now uses
an isolated multipurpose Ember.computed.limit.
2014-02-18 10:00:33 +01:00
Henrik Hodne
2450f9fe9d Revert previous revert
I found the commit that caused the bug that caused me to do the last
revert. I'm therefore reverting the previous revert and I will be
committing a revert that reverts the commit that introduced the bug. See
next commit.

This reverts commit db2d38a7af.
2014-02-12 09:54:24 -06:00
Henrik Hodne
db2d38a7af
Revert setting panel deploy
This seems to have caused issues with enabling the hooks for
repositories.
2014-02-12 09:14:47 -06:00
Piotr Sarnacki
8d19410264 Merge remote-tracking branch 'origin/settings-pane'
Conflicts:
	assets/scripts/app/controllers.coffee
	assets/scripts/app/routes.coffee
	assets/scripts/app/views/repo/show.coffee
2014-02-12 11:52:01 +01:00
Piotr Sarnacki
f29ee2372a Fix specs
Change in mocks.coffee broken specs - using repos variable was shadowing
global repos array.
2014-02-12 10:37:07 +01:00
Piotr Sarnacki
e5749b0629 Fix handling not existing repos
Also ensure that we don't break it again with an integration test.
2014-02-12 08:02:47 +01:00
Piotr Sarnacki
71e5959f4e Properly handle notFound URL
We handled notFound URL using an old hack, which no longer works. The
proper way now is to handle a "catch all" route.
2014-02-12 07:45:32 +01:00
Damien Mathieu
5ef0302243 automatically unfold lines starting or ending an highlight 2014-01-29 09:10:50 +01:00
Damien Mathieu
9571ce09e3 add integration specs to the log view 2014-01-28 17:23:15 +01:00
Damien Mathieu
6608032652 refactor and test the log folder 2014-01-28 17:23:15 +01:00
Piotr Sarnacki
360b32a4f2 Merge branch 'updated-styles'
Conflicts:
	assets/scripts/app/templates/layouts/top.hbs
	assets/scripts/app/templates/repos/list.hbs
2014-01-27 13:02:05 +01:00
Piotr Sarnacki
d41d6de175 Merge branch 'master' into settings-pane
Conflicts:
	assets/scripts/app/templates/profile/tabs/hooks.hbs
2014-01-21 18:01:42 +01:00
Piotr Sarnacki
d7bef2b94e Revert tailing changes 2014-01-20 15:00:34 +01:00
Piotr Sarnacki
492802920e Use pushState to set urls
It seems that directly setting location.hash directly doesn't play nice
with Ember.js URL handling - using it to handle line numbers results in
weird bugs (URL stops being updated after setting hash manually).

This commit gets back to using window.history.pushState() which was
changed to direct hash manipulation in ff1aad3
2014-01-20 14:24:05 +01:00
Hiro Asari
8b6be08ef4 Merge branch 'master' into settings-pane
Conflicts:
	assets/scripts/app/routes.coffee
	assets/scripts/app/templates/profile/tabs/hooks.hbs
2014-01-17 07:09:04 -05:00
Piotr Sarnacki
896c79dd16 Remove the rest of the locales related stuff 2014-01-15 14:40:56 +01:00
Hiro Asari
f5b49f4af7 Add specs for link-ifying commit references 2014-01-13 09:08:26 -05:00
Hiro Asari
4e24d9835a HTTPS everywhere for github.com 2014-01-11 15:11:03 -05:00
Damien Mathieu
228afe9a63 store the last selected line and use it as the other end for multiple selection 2014-01-09 17:31:47 +01: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
Piotr Sarnacki
f457a0974c Merge pull request #233 from dmathieu/tailing
Refactor tailing and test it
2013-12-19 09:17:32 -08:00
Piotr Sarnacki
c48f70a38b Finish test for settings-input 2013-12-18 11:02:25 +01:00
Piotr Sarnacki
c18222ea51 Settings pane
This commit contains a settings pane implementation. There are a couple
of things here, which are not used yet, like advanced form helpers. I'm
leaving them here, because the plan is to add support for more settings
soon (like: include/exclude branch patterns), which will need these
helpers.

There is also tabs support, although in the current version there is
only one tab (initially it was created for supporting general tab and
notifications tab).
2013-12-18 11:02:23 +01:00
Hiro Asari
eb3ec57be1 Merge pull request #234 from travis-ci/ha-feature-gh234-pretty_build_key_headers
Build Matrix keys should be more flexible than just being camelized
2013-12-16 07:23:05 -08:00
Hiro Asari
c2db169b4a Fix typo [skip ci] 2013-12-15 00:54:19 -05:00
Hiro Asari
ade98c7e44 Polish build matrix table header
Instead of uniformly camelizing the headers, use a map of headers
each build matrix key should display in the table
2013-12-15 00:50:48 -05:00
Damien Mathieu
1920785f50 fix regression when going below the log zone
Since a431b68c28, when going below the max
of the log files, the position button would remain in fixed position.
This fixes it.
2013-12-13 17:09:15 +01:00