Commit Graph

60 Commits

Author SHA1 Message Date
Piotr Sarnacki
f47b893cb8 Rename Travis.Route to Travis.BasicRoute and Travis.View to Travis.BasicView 2015-02-02 11:48:22 +01:00
Piotr Sarnacki
165d072d79 Use ENV.config instead of Travis.config 2015-01-30 17:15:13 +01:00
Piotr Sarnacki
949431b7df Move remaining files from lib/travis to utils 2015-01-30 15:43:23 +01:00
Piotr Sarnacki
8124bc3780 Fix requires 2015-01-29 13:39:07 +01:00
Piotr Sarnacki
f566d601ee Move toggleTailing to actions in PreView 2015-01-06 14:08:21 +01:00
Piotr Sarnacki
fbcfa04859 Don't destroy parts on cleanup
Destroying parts on cleanup can have weird effects, because we observe parts in
log view.
2014-12-30 11:58:56 +01:00
Piotr Sarnacki
23dd688d09 [pro-merge] Add token to log urls when in pro mode 2014-12-29 18:17:58 +01:00
Piotr Sarnacki
5f2f4c3852 First stab at fixing weird view errors
This commit starts refactoring of one of the remaining areas where we do weird
tricks to get the desired behaviour. Namely, we were treating "my_repositories"
and "recent" not as individual routes with separate URLs, but only different
states on the repos controller. Such approach leads to various problem with
connecting outlets on rerenders (ie. we don't explicitly connect outlets when
changing from one view to another programatically).

A new cleaner way is to change both tabs into routes.
2014-12-29 18:17:55 +01:00
Piotr Sarnacki
0dfb5dc10c Get parts from a log object
For some reason using this.get('log.parts') is not equivalent to
log.get('parts')
2014-12-29 18:16:16 +01:00
Piotr Sarnacki
0a69a5424d Fix log errors on 1.8.1
This part needs further refactoring, but for now I just fixed log view to
teardown and setup things properly in all cases something changes (when element
is inserted or removed, but also when log object is changed).
2014-12-29 18:16:15 +01:00
Piotr Sarnacki
09eeeaff1b Revert "Revert "Merge pull request #308 from rwjblue/update-ember""
This reverts commit 840ce5a47d.
2014-12-29 18:16:14 +01:00
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
e66ccfdfcd
Remove view.state checks (in favor of _state). 2014-11-05 12:50:40 -05:00
Piotr Sarnacki
5c913fcaaa Destroy parts object when leaving log 2014-09-12 16:20:52 +02:00
Piotr Sarnacki
2fd1af29ec Unfold lines before trying to scroll
(closes travis-ci/travis-ci#1501)
2014-06-18 15:36:23 +02:00
Piotr Sarnacki
43e9af77d5 Don't close folds when following logs 2014-06-17 00:50:01 +02:00
Mathias Meyer
b134f82fab Scroll #L links to upper third of the screen.
Fixes travis-ci/travis-ci#2276
2014-05-27 12:39:53 +02: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
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
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
Damien Mathieu
a431b68c28 make the back to top fixed and fluidify the follow scrolls
Fixes #89
2013-12-05 16:01:51 +01:00
Piotr Sarnacki
972fb6fb43 Always subscribe to log updates
When the job is restart, we will not get any updates unless we're
subscribed to job updates - that's why we need to subscribe even if the
job is already finished.

The other option to fix this would be to subscribe and unsubscribe also
based on the status, but since subscribing to finished jobs does not
cost us anything, I prefer the simpler solution.
2013-10-07 17:15:59 +02:00
Piotr Sarnacki
d0998a8fc5 Remove unused observer
log property in Travis.Job does not change - we create Log instance
when it's accessed and don't refresh it on any occasion, that's why the
observer on log is not needed.
2013-10-07 16:43:09 +02:00
Aaron Hill
2a83215fdc Fixed clearing log 2013-10-03 21:23:49 -04:00
Piotr Sarnacki
17923af973 Fix expanding folds on firefox 2013-03-29 23:25:05 +01:00
Sven Fuchs
63c0c50ec2 Merge branch 'master' into sf-log 2013-03-29 16:04:18 +01:00
Piotr Sarnacki
74f4a7b110 Fix the log view for finished logs 2013-03-22 10:13:26 +01:00
Sven Fuchs
300e91133c Merge branch 'master' into sf-log
Conflicts:
	assets/scripts/app/views/log.coffee
2013-03-22 02:14:55 +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
65254b70da Fix cutting too long logs 2013-03-19 16:07:21 +01:00
Sven Fuchs
95e58f5f38 remove double PreView definition 2013-03-14 18:05:59 +01:00
Sven Fuchs
ff6e126e45 fix lineNumberClicked 2013-03-14 17:35:39 +01:00
Sven Fuchs
c011cfafcd fix line numbering 2013-03-14 17:18:34 +01:00
Sven Fuchs
e1a667407f fix after rebase 2013-03-14 16:29:22 +01:00
Sven Fuchs
2331e8e006 re-add limit and scroll, fix positioning of messages 2013-03-14 15:48:42 +01:00
Sven Fuchs
c0a4fed836 use travis-web-log/sf-dom 2013-03-14 15:47:59 +01:00
Piotr Sarnacki
2013492371 Remove debug console.logs 2013-03-14 15:12:07 +01:00
Piotr Sarnacki
bdb552100a Always use currentItem to get log context 2013-03-14 15:10:56 +01:00
Piotr Sarnacki
3d3c0fc3b2 Jekyll is not the same as github flavoured markdown 2013-03-14 15:01:45 +01:00
Piotr Sarnacki
79f1dc448f Revert "move log subscrition to a log controller"
This was causing the log to not refresh sometimes when switching from
one repo to another, I'm reverting for now, we will have to have another
look.

This reverts commit 2e8b74160c.

Conflicts:
	assets/scripts/app/controllers/build.coffee
	assets/scripts/app/models/build.coffee
	assets/scripts/app/templates/builds/show.hbs
	assets/scripts/app/views/log.coffee
	assets/scripts/vendor/log.js
2013-03-14 10:07:35 +01:00
Piotr Sarnacki
2eab278736 Add ChunkBuffer to log 2013-03-13 00:13:51 +01:00
Piotr Sarnacki
b1edd8e510 Bring back log engine from master 2013-03-12 22:52:39 +01:00
Sven Fuchs
93edf5b63c remove limit for now and update log.js 2013-03-09 00:51:20 +01:00
Sven Fuchs
ffe6f2d62c actually limit before setting the part 2013-03-08 17:51:32 +01:00
Sven Fuchs
d44e3b0098 move limit to web-log 2013-03-08 17:33:03 +01:00
Sven Fuchs
ffd1b6d917 try to unsubscribe from the log when the log view is destroyed, too 2013-03-07 16:43:00 +01:00
Sven Fuchs
2e8b74160c move log subscrition to a log controller 2013-03-06 19:59:59 +01:00
Sven Fuchs
fbe52ac854 update log.js 2013-03-06 16:37:01 +01:00