Commit Graph

1393 Commits

Author SHA1 Message Date
Lisa P
cd7ab9b719 remove code climate
remove code climate popup function
2016-02-01 13:09:15 +01:00
Piotr Sarnacki
ac4f5ed193 Merge pull request #445 from travis-ci/update-finished-at-for-finished-builds
Update time also for finished builds, but only every minute
2016-02-01 11:58:44 +01:00
Curtis Ekstrom
92896aa8e1 Remove initializer deprecation warnings
The previous initializer API was deprecated in Ember 2.1 (See
http://emberjs.com/deprecations/v2.x/), so this updates the initializer
signatures to accomodate that change.
Also, remove the registered deprecation from the workflow.
2016-01-31 12:30:27 +01:00
Piotr Sarnacki
4b9d9fda1e Remove unneeded class 2016-01-29 16:47:40 +01:00
Piotr Sarnacki
6deae83a1b Only hide #log element, so it's always in the DOM
When a job is not started, we will show a message that the log can't be
shown. If a pusher message with a state change comes after the first log
pusher message, travis-web-log will error out, because in such a
situation a DOM element wouldn't be available. To make it always work,
this commit changes the behaviour to just hide #log element with CSS
instead of using {{#if}}.
2016-01-29 16:32:51 +01:00
Piotr Sarnacki
7764479c14 Schedule inserting elements afterRender
It will ensure that log element is already loaded.
2016-01-29 14:31:16 +01:00
Piotr Sarnacki
24465e634f Use el.innerHTML = ''; instead of $(el).empty()
innerHTML is faster than empty(), especially on some versions of
firefox. This change was already commited before, but it was somehow
lost while converting project to JS.
2016-01-29 14:31:16 +01:00
Lisa P
41884ff9d2 fade out long commit messages 2016-01-27 16:41:20 +01:00
Piotr Sarnacki
6639a29411 Merge pull request #437 from travis-ci/lp-avatar
make a user-avatar component
2016-01-27 13:13:19 +01:00
Lisa P
22c938489e make gravatar depend on email 2016-01-27 13:01:18 +01:00
Piotr Sarnacki
9a9d3805d8 Bring back noop function which was accidentally destroyed 2016-01-27 12:32:53 +01:00
Lisa P
5d74d57ac6 add avatarUrl propertuy to user model 2016-01-26 18:40:07 +01:00
carlad
4f394ad72e remove Legacy from Precise builds text 2016-01-26 18:29:31 +01:00
Lisa P
d82ff49359 change component implementation 2016-01-26 14:50:58 +01:00
Lisa P
9cff29ce80 fix href on caches 2016-01-26 12:25:43 +01:00
Lisa P
0570a86035 add empty href to caches-item otherwise iOS does not fire tab event 2016-01-25 18:29:32 +01:00
Piotr Sarnacki
e919906f99 Update time also for finished builds, but only every minute 2016-01-25 17:55:48 +01:00
Lisa P
2882c8ca96 add empty href otherwise iOS does not fire a tap event correctly 2016-01-25 15:25:33 +01:00
Piotr Sarnacki
069f7ddbeb Fix displaying no-builds and not-active errors
This commit unifies the behaviour of displaying no-builds and not-active
errors for repo and fixes the error when user can't access repo settings
when the project is not active.
2016-01-21 16:35:36 +01:00
Lisa P
add716945f Merge pull request #436 from jasonkarns/patch-2
Fix grammatical error for finished job duration
2016-01-21 14:05:50 +01:00
Piotr Sarnacki
5c0697ed85 Always authenticate ajax calls
Our mechanism for blacklisting IPs, which was developed as a protection
against a DDoS attach, sometimes classifies IPs as offenders
incorrectly. In order to temporary improve the situation of 403
responses from API we're now going to authenticate all of the ajax
calls, because authenticated calls are not blacklisted that easily.
2016-01-21 14:00:41 +01:00
Piotr Sarnacki
7cfa83deb8 Merge pull request #439 from travis-ci/lp-ie-restart
don't send data body if it is empty
2016-01-21 13:56:30 +01:00
Lisa P
3e7a8b694e fix title tag when owner had no name set 2016-01-21 13:39:02 +01:00
Lisa P
1fc82577b1 dont send data body if it is empty 2016-01-21 13:04:05 +01:00
Lisa P
05b85eb37f make a user-avatar component
delete some, add some, fix some tests
2016-01-21 12:08:28 +01:00
Piotr Sarnacki
6efb2ac449 No need to load builds into repo.builds
Builds on repo model already incorporate all of the builds that belong
to a given repo and are loaded into a store, so no need to load them to
expandable array.
2016-01-18 13:18:19 +01:00
Piotr Sarnacki
2d0aee4e68 Fix status images popup
After recent refactorings status images popup started to fetch branches
info whenever a repo page was opened, resulting in additional HTTP
requests. Furthermore, because of a way we load branches, it could
result in builds view displaying very old builds, because in API V2 we
essentially download last build for each branch for branches request.

This commit fixes the situation in 2 ways:

1. We wait with downloading branhes till the popup is open
2. We use a V3 requests to download branches and we don't put that data
into the store
2016-01-18 13:14:28 +01:00
Piotr Sarnacki
b0df09fb22 Fix displaying no-builds message with an index view 2016-01-15 15:43:29 +01:00
Piotr Sarnacki
4bbf114e82 Check also for value in attrs for job-log 2016-01-15 15:15:59 +01:00
Piotr Sarnacki
e1a2f42030 Properly set pusher path in config 2016-01-15 12:36:45 +01:00
Jason Karns
a7e2099829 Fix grammatical error for finished job duration
While a job is running, on the job status view, the duration is labeled: "Running for x sec". When the job finishes, 'Running' is swapped for 'Total time'. But "Total time for x sec" doesn't make any sense. the " for" should be part of the conditional with "Running"
2016-01-14 14:03:41 -05:00
Piotr Sarnacki
c70ed06848 Fix sorting on builds list 2016-01-14 15:40:06 +01:00
Piotr Sarnacki
557797ab19 Fix show more button for builds
While doing search and replace I accidentally replaced too much
occurences of 'builds'
2016-01-14 14:10:20 +01:00
Piotr Sarnacki
0a872e25a7 Fix showing running jobs
When I changed tabs-list-view to be a component I missed the fact that
config is not registered for components, which resulted in not showing
the running jobs tab at all. This commit fixes the situation.
2016-01-14 14:04:29 +01:00
Piotr Sarnacki
8eaee33d6d Merge pull request #433 from travis-ci/update-ember
Update Ember.js to 2.2.0 and Ember Data to 2.3.0
2016-01-14 13:22:32 +01:00
Piotr Sarnacki
660752ec78 Fix build header for job with PR data 2016-01-14 13:21:57 +01:00
Piotr Sarnacki
93deb7f4e2 Fix tests 2016-01-14 13:14:45 +01:00
Piotr Sarnacki
0c15a09d54 Update Ember Data to 2.3.0 2016-01-14 11:54:47 +01:00
Piotr Sarnacki
ed71aa133e Update Ember.js to 2.2.0 2016-01-14 11:54:26 +01:00
Piotr Sarnacki
efaae492c4 Run GA instructions only if gaCode is set 2016-01-14 11:38:46 +01:00
Piotr Sarnacki
c96a4602cd Merge pull request #432 from travis-ci/ps-remove-deprecations
Remove deprecations in preparation for 2.x update
2016-01-14 11:37:41 +01:00
Piotr Sarnacki
99b7ce4a9d Add missing semicolon 2016-01-14 11:28:25 +01:00
Lisa P
c694ab24f6 remove broadcast animation because 💥 CPU 2016-01-13 18:19:56 +01:00
Lisa P
76749e2250 fix signin loop 2016-01-13 15:29:44 +01:00
Lisa P
a63188ae13 add explicit signin route 2016-01-13 14:28:22 +01:00
Piotr Sarnacki
34ca0cc386 Use transitionToRoute instead of transitionTo in controllers 2016-01-13 12:00:35 +01:00
Piotr Sarnacki
fb1b820837 [deprecations] Remove all of the views from the app 2016-01-13 11:26:30 +01:00
Piotr Sarnacki
ee5f842d51 Fix adding ssh key 2016-01-13 11:25:45 +01:00
Piotr Sarnacki
271b8f89ea Fix show more button and simplify builds controller 2016-01-13 11:25:41 +01:00
Piotr Sarnacki
13d2eba016 [deprecations] Remove the need to use beforeObserver in job-log component 2016-01-12 18:27:24 +01:00
Piotr Sarnacki
21f25cd2bf [deprecations] Remove all of the views from the app 2016-01-12 16:55:22 +01:00
Piotr Sarnacki
c3ef9ac5d9 [deprecations] Remove all of the views we use just for layouts 2016-01-12 16:55:22 +01:00
Piotr Sarnacki
1c33475ff6 [deprecations] Don't use snapshot.get() 2016-01-12 16:55:22 +01:00
Lisa P
bd7e4a001d fix wobbling building icon 2016-01-12 13:25:57 +01:00
Lisa P
e3b77b4b5a fix yellows across the place 2016-01-12 13:10:15 +01:00
Lisa P
6eed891a1a show build number on hover in branch tiles 2016-01-12 13:10:15 +01:00
Piotr Sarnacki
bbf0b7459f Allow to set an alternative endpoint for auth 2016-01-11 14:26:26 +01:00
Lisa P
b8f8071f98 add image descriptions 2016-01-07 14:33:34 +01:00
Lisa P
253a56f47d not use view in accounts 2016-01-07 14:22:39 +01:00
Piotr Sarnacki
f9df4b1896 [deprecations] Don't use before observer 2016-01-07 13:15:59 +01:00
Piotr Sarnacki
85b2837c52 [deprecations] Disable fetching records in the background by Ember Data 2016-01-07 11:28:52 +01:00
Piotr Sarnacki
39cf0b3044 [deprecations] Don't use ArrayController 2016-01-07 11:22:40 +01:00
Piotr Sarnacki
4b71704b1c [deprecations] Don't use second argument in a property
This makes Ember.js think that we're trying to use the property as
setter and it's deprecated
2016-01-07 11:18:05 +01:00
Piotr Sarnacki
e7ca2c8bfe [deprecations] Use Store#unloadRecord instaed of Store#dematerializeRecord 2016-01-07 11:18:05 +01:00
Piotr Sarnacki
a920ae9cd7 [deprecations] Use modelName instead of typeKey 2016-01-07 11:18:05 +01:00
Piotr Sarnacki
4e3a755908 [deprecations] Use Adapter#findRecord instead of Adapter#find 2016-01-07 11:18:05 +01:00
Piotr Sarnacki
a6087d4fcd [deprecations] Use Component#_state instead of Component#state 2016-01-07 11:18:00 +01:00
Piotr Sarnacki
131a09c9c5 [deprecations] Use store.query instead of store.find where appropriate 2016-01-07 10:41:08 +01:00
Piotr Sarnacki
f5823669b2 [deprecations] Use regular computed property instead of arrayComputed 2016-01-07 10:40:17 +01:00
Piotr Sarnacki
03332a8654 [deprecations] Don't run Ember.set directly in didInsertElement 2016-01-07 10:40:14 +01:00
Piotr Sarnacki
16da227dd9 [deprecations] Use LinkComponent instead of LinkView 2016-01-07 10:35:55 +01:00
Piotr Sarnacki
bde3b7375a Fix displaying flashes coming from the server 2016-01-07 10:22:18 +01:00
Piotr Sarnacki
7649c180dd Fix cancel and restart buttons
Callback functions for restart and cancel where improperly updated while
switching from coffeescript to javascript.
2016-01-07 10:19:29 +01:00
Lisa P
561e671e0d be more explicit about github icon size 2016-01-06 16:26:49 +01:00
Konstantin Haase
e6520ff7cc rkh moved to switzerland 2016-01-06 14:30:29 +01:00
Piotr Sarnacki
0b8c032c21 Make JSHint happy 2016-01-06 12:14:02 +01:00
Piotr Sarnacki
ac7c92d0c4 Bring back DurationCalculations mixin to Build 2016-01-06 12:09:03 +01:00
Piotr Sarnacki
b57adacf02 Fix displaying synced at time on the profile page 2016-01-06 11:32:17 +01:00
Piotr Sarnacki
6ee82c0cf8 Merge pull request #426 from travis-ci/lp-whitelist-info
add link to docs on requests if branch is gh-pages
2016-01-06 11:26:09 +01:00
Lisa P
5bf4e4ffe4 make isGHPages a proper property 2016-01-05 15:01:38 +01:00
Piotr Sarnacki
f4aa705b51 Merge pull request #427 from travis-ci/fix-displaying-last-synced-at
Fix displaying synced at time on the profile page
2016-01-05 14:57:37 +01:00
Piotr Sarnacki
341296aaaa Merge pull request #418 from travis-ci/lp-mobile-log
Mobile log
2016-01-05 14:55:52 +01:00
Piotr Sarnacki
01bcfb8a8c Merge pull request #424 from travis-ci/lp-accessible-jobslist
add aria-labels to jobs-item
2016-01-05 14:51:21 +01:00
Lisa P
1233eba3e8 fix log 2016-01-05 14:44:27 +01:00
Lisa P
8d2ca774d0 fix template logic if job has not yet started 2016-01-05 14:20:23 +01:00
Lisa P
f445690fb5 refactor a lot of buttons so toggle log looks more consistent 2016-01-05 14:20:23 +01:00
Lisa P
10b0c62fc2 make log toggle on mobile 2016-01-05 14:15:25 +01:00
Lisa P
8e2b3a86c6 feature flag Build 2016-01-05 13:57:14 +01:00
Lisa P
5a0618b22e bring back branch name 2016-01-05 13:35:29 +01:00
Lisa P
4edd1feaad remove coffee file 2016-01-05 13:25:48 +01:00
Lisa P
f5211f1fdc add aria-labels to jobs-item 2016-01-05 12:56:26 +01:00
Lisa P
dbd124852d remove coffee file 2016-01-05 12:44:08 +01:00
Lisa P
7aa77b4f6f add link to docs on requests if branch is gh-pages 2016-01-05 12:43:09 +01:00
Piotr Sarnacki
00d448c231 Fix displaying synced at time on the profile page 2016-01-05 12:31:12 +01:00
Piotr Sarnacki
737685a7c0 Fix ajax callbacks after javascript conversion 2016-01-04 13:15:15 +01:00
Piotr Sarnacki
ece4141cc5 Remove annotations relationship on job 2016-01-04 13:15:15 +01:00
Piotr Sarnacki
e60b0a0224 Fix jshint errors after conversion to JS 2016-01-04 13:15:15 +01:00
Piotr Sarnacki
fafaf65043 Convert project to JavaScript 2016-01-04 13:15:14 +01:00
Jonas Weber
e27a19101d Drop unneeded imports for gravatarImage 2016-01-04 12:19:14 +01:00
Jonas Weber
ab54733723 Show author name and author avatar on builds list 2016-01-04 12:18:33 +01:00
Jonas Weber
9e94643dc4 Calculate actual avatar URL in model
repeated logic for Gravatar fallback
2016-01-04 12:18:01 +01:00
Piotr Sarnacki
4e720519fe Revert "Merge branch 'thriqon-bug-author-committer'"
This reverts commit ac576077ab, reversing
changes made to f9263fc8f3.
2016-01-04 12:14:44 +01:00
Jonas Weber
b68ae942a6 Drop unneeded imports for gravatarImage 2016-01-04 11:54:18 +01:00
Jonas Weber
83bb882475 Show author name and author avatar on builds list 2016-01-04 11:53:20 +01:00
Jonas Weber
8abc24f04b Calculate actual avatar URL in model
repeated logic for Gravatar fallback
2016-01-04 11:50:10 +01:00
Piotr Sarnacki
573ebfd406 Fix status image popup
While fixing deprecations a `propertyBinding="foo"` calls were changed
into `property="foo"` calls, which should be `property=foo`. Otherwise
`foo` is treated as a string.
2016-01-04 11:41:50 +01:00
Piotr Sarnacki
ae704df6bf Use el.innerHTML = ''; instead of $(el).empty()
It turns out that jQuery's empty method can be really slow in Firefox,
which can freeze the browser when cleaning the log.
2016-01-04 11:41:50 +01:00
Piotr Sarnacki
f6b95a9a9a Convert log-content component to js 2016-01-04 11:41:50 +01:00
Piotr Sarnacki
7f74787b91 Properly normalize array repsonse for V2 jobs 2016-01-04 11:41:50 +01:00
Piotr Sarnacki
f01b95f886 Convert job serializer to js 2016-01-04 11:41:50 +01:00
Lisa P
8cf9be6adc refactor some of the icon styles an usages 2016-01-04 11:41:50 +01:00
Lisa P
a751145fef use base64 backgroung svg 2016-01-04 11:41:50 +01:00
Lisa P
7fa107a3f0 update default avatar 2015-12-22 11:13:14 +01:00
Lisa P
d95e34484f remove old repos templates 2015-12-22 11:13:10 +01:00
Lisa P
b4a8dc5707 remove jobs template 2015-12-22 11:13:03 +01:00
Lisa P
a941bc867a remove label helper 2015-12-22 11:12:57 +01:00
Lisa P
79c8e97f51 remove events file 2015-12-22 11:12:52 +01:00
Lisa P
fc0aefb42c remove old env-vars files 2015-12-22 11:12:44 +01:00
Lisa P
90675b1380 remove annotations 2015-12-22 11:12:38 +01:00
Lisa P
7eef434c67 delete unused accounts files 2015-12-22 11:12:32 +01:00
Lisa P
b99dc5ee59 refactor accounts, pt2 2015-12-22 11:12:25 +01:00
Lisa P
875ff4fb44 rearrange templates, start unifying avatar 2015-12-22 11:12:19 +01:00
Lisa P
201a37aa70 refactor accounts, pt1 2015-12-22 11:12:12 +01:00
Lisa P
8c9f92062d refactor cta subscription button to component, remove deprecation 2015-12-22 11:07:44 +01:00
Lisa P
bae81542b9 update more deprecated syntax
update input action handling
2015-12-22 11:07:35 +01:00
Lisa P
d18715858f switch to new each helper syntax 2015-12-22 11:07:07 +01:00
Lisa P
af76a3f30b change to .peekRecords and .isEvery 2015-12-22 10:50:59 +01:00
Piotr Sarnacki
96f22bff8c Get also api builds when clicking on 'show more' 2015-12-17 13:21:38 +01:00
Piotr Sarnacki
e170753ba8 Properly serialize env var 2015-12-17 13:12:56 +01:00
Piotr Sarnacki
fdd7b5b91b Properly normalize ssh key 2015-12-17 13:10:07 +01:00
Piotr Sarnacki
2e2d2ae81b Feature flag API V3 2015-12-17 12:39:17 +01:00
Lisa P
5a747a4da0 Merge pull request #417 from travis-ci/hh-new-title-picture
Update the picture and title for Henrik
2015-12-10 07:20:21 -08:00
Piotr Sarnacki
598f6a02fb Don't show default branch in inactive branches 2015-12-10 12:12:42 +01:00
Piotr Sarnacki
830211444b Make only one query to jobs 2015-12-10 11:43:54 +01:00
Piotr Sarnacki
048e7737ea Limit initial repos request to 20 repos 2015-12-10 11:43:46 +01:00
Piotr Sarnacki
b950b60c64 Fix committer and author in build header 2015-12-10 09:39:05 +01:00
Piotr Sarnacki
b94cc70a4e Removed wrong function in 4d73d67 2015-12-09 18:40:29 +01:00
Piotr Sarnacki
4d73d67f51 Remove duplicated function in job's serializer 2015-12-09 18:08:21 +01:00
Henrik Hodne
80a0255f39 Update the picture and title for Henrik 2015-12-09 17:43:03 +01:00
Piotr Sarnacki
679d5227b3 Don't reload a page after clicking on Travis CI's logo 2015-12-09 14:52:37 +01:00
Piotr Sarnacki
b2b892238b Fix adding ssh key 2015-12-09 11:58:10 +01:00
Piotr Sarnacki
9a55449789 Fix pusher auth for pro 2015-12-09 11:57:57 +01:00
Piotr Sarnacki
cc38f08df4 Fix codeclimate logo 2015-12-09 10:23:09 +01:00
Piotr Sarnacki
09f27d47be Fix search 2015-12-09 10:23:09 +01:00
Piotr Sarnacki
00653e9420 Fix repo search 2015-12-08 10:18:09 +01:00
Piotr Sarnacki
ada9e9ba02 Fix adding ssh keys and env vars 2015-12-08 10:18:09 +01:00
Piotr Sarnacki
6db80a4073 Remove unneeded require 2015-12-08 10:18:09 +01:00
Piotr Sarnacki
87fdd95a6f Fix tests 2015-12-08 10:18:09 +01:00
Piotr Sarnacki
d4955c1ed0 Fix hooks toggling
New ember-data serializers send data without a model key in the payload
by default, so instead of what API expects:

    {
      "hook": {
        "id": 1,
        "active": true
      }
    }

it would send:

    { "id": 1, "active": true }

Because of that we need to change how hooks are serialized.

Furthermore, API V2 returns just "result: true" after a successful
request to change a hook, so we need to return something meaningful from
the adapter's updateRecord in order to make ember-data happy.
2015-12-08 10:18:08 +01:00
Piotr Sarnacki
0d9755489f Sort repos in repos controller, not in the component
We rely on the order of repositories when we set current repo on the
main page. That's why we need to do sorting in the controller.
2015-12-08 10:18:08 +01:00