Commit Graph

58 Commits

Author SHA1 Message Date
Piotr Sarnacki
e84b7b81c5 Remove incomplete records loading implementation 2014-09-19 15:43:17 +02: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
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
Josef Šimánek
141619c3f5 Show committer in build header only when he's not author. 2014-05-09 04:28:58 +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
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
Damien Mathieu
5ef0302243 automatically unfold lines starting or ending an highlight 2014-01-29 09:10:50 +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
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
Damien Mathieu
10d49c6983 refactor and add tests to tailing 2013-12-13 15:27:33 +01:00
Piotr Sarnacki
c751b7a8a4 Fix specs
After update specs fail when there is an unexpected ajax query, because
the response is not an ajax response.

A long term solution is to remove mockjax from specs, because it makes
them brittle and they usually fail after small changes. A better
approach would be to use fixtures, which are available for ember model
2013-12-11 12:43:09 +01:00
David Celis
aeebe85308 Do not githubify sign-off messages
Don't successfully `githubify` strings prepended with an `@` symbol if
what's matched actually resembles an email address. @mentions should
only be githubified if there is a word boundary before it.

This fixes travis-ci/travis-ci#1591

Signed-off-by: David Celis <me@davidcel.is>
2013-12-10 12:54:06 -08:00
Hiro Asari
3f30eecc7d Add granular permission levels to User
Display buttons for job control only if the user has permission to do
so.
2013-11-06 15:00:46 -05:00
Lukasz Sarnacki
226c5bb42b More github references replaced with links
Github links will be created for following references:
* @username
* gh-1 (for issue #1)
2013-09-01 13:43:21 +02:00
Lukasz Sarnacki
44c7c627fb Replace github refference with link travis-ci/travis-ci#1266
Github issue refference is now replaced with github issue url.
This covers following refferences:
* #Num
* User#Num
* User/Project#Num
2013-09-01 13:36:24 +02:00
Piotr Sarnacki
359c97cad0 Rewrite specs from jasmine to qunit 2013-07-31 13:29:45 +02:00
Piotr Sarnacki
07cd8233d4 Use $.ajax when testing to not break jquery.mockjax 2013-05-15 17:23:48 +02:00
Piotr Sarnacki
c7561ee13e Properly display matrix keys when build does not have all keys
When additional items are included into matrix via 'matrix.include' key
in .travis.yml they may contain config keys, which are not available on
build.

For example build can contain only 'rvm' key, but we may add the
following include:

    matrix:
      include:
        - rvm: '2.0.0'
          env: 'FOO=bar'

In such case, we need to take into account also keys from additional
job, not only from the build.

(closes #172)
2013-04-06 01:48:32 +02:00
Piotr Sarnacki
7996358f01 Fix fetching log in firefox when Location header is unavailable 2013-04-02 20:17:24 +02:00
Piotr Sarnacki
745b3a0167 Wait more time in ChunkBufferSpec, to make it more reliable 2013-03-27 20:05:38 +01:00
Piotr Sarnacki
f1adbf8f20 Improve log handling
* don't fetch log content on Travis.Log init
* use timeout in ChunkBuffer instead of Ember.run.later
* remove timeout when log is finalized
2013-03-22 01:25:23 +01:00
Piotr Sarnacki
e02ece9424 Merge branch 'master' into ps-ember-update
Conflicts:
	assets/scripts/app/models/artifact.coffee
	assets/scripts/app/store.coffee
	assets/scripts/app/views/job.coffee
	assets/scripts/spec/spec_helper.coffee
2013-03-12 13:47:20 +01:00
Piotr Sarnacki
b289d3966b Finish ChunkBuffer implementation and integrate it with Artifact 2013-03-09 22:01:06 +01:00
Piotr Sarnacki
b4022f5f67 A few improvements for ChunkBuffer
* insert available items at once
* allow to use pushObject on buffer itself
* add a test using arrayObserver to make sure that it fires only when
  elements are added to arrangedContent
2013-03-09 22:01:05 +01:00
Piotr Sarnacki
d549831c22 Add chunk buffer 2013-03-09 22:01:05 +01:00
Piotr Sarnacki
4337949dd4 Fix the rest of the specs 2013-03-04 13:29:00 +01:00
Piotr Sarnacki
712389efdb Fix more specs 2013-03-04 03:46:04 +01:00
Piotr Sarnacki
46f7e6bba0 Fix remaining ember-data and pusher updates issues
When records are updated by pusher events, we should not mark them as
dirty - we don't modify them on client side anyway.
2013-02-26 04:37:23 +01:00
Piotr Sarnacki
83fb0ebb2c Fix incomplete implementation 2013-02-21 23:22:54 +01:00
Piotr Sarnacki
23a58866bd Fix LimitedArray to work properly with SortableMixin 2012-12-14 04:31:28 +01:00
Piotr Sarnacki
27fe85989a Make rendering long logs faster when rendering huge chunks at once
After change log rendering method, to append HTML elements instead of
rerendering the entire thing, the case of gradual rendering of a log
started to behave much better (because we just append new elements), but
the initial render took a bit longer, because of the fact that appending
large separate HTML elements to DOM at once is not a good idea.

In order to make the situation better I added simple optimization.
Elements are added to DocumentFragment node before inserting to DOM and
appended to DOM only after all elements are processed. That way, when
log needs to be rendered all at once, we will not do any DOM operations
until log is ready.
2012-12-05 21:29:41 +01:00