Piotr Sarnacki
1f0b068992
Pass ids as params to ajax to make it easier to debug it in chrome
2013-12-11 12:43:10 +01:00
Piotr Sarnacki
a2bc840292
Use more fetch instead of find
...
fetch method returns a promise instead of an actual object. We used find
before, because this was the way we did things before upgrade to Ember
Model. Returning a promise from a model hook pauses router rendering for
the time a resource is loading, which makes it much easier to deal with
asynchronous requests. Thanks to that we can remove parts of the code,
which dealt with it manually.
2013-12-11 12:43:09 +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
Piotr Sarnacki
5b5a9d7839
Update Ember Model
2013-12-11 12:43:09 +01:00
Piotr Sarnacki
edb4e19309
Run lastBuildDidChange only once for a runloop run
...
When a lot of pusher events come with build updates, lastBuildDidChange
can run quite frequently. We can avoid that by using scheduleOnce, which
will ensure that only the last invocation of lastBuildDidChange will be
run for a given runloop run.
2013-12-11 12:43:08 +01:00
Piotr Sarnacki
21fecf855a
Reference lastBuildId instead of lastBuild when checking for existance
...
Referencing lastBuildId will not trigger loading a build record, which
will lower ajax queries number.
2013-12-11 12:43:08 +01:00
Piotr Sarnacki
4f31ce57cf
Update Ember.js to 1.2.0
2013-12-11 12:43:08 +01:00
Piotr Sarnacki
18a7f9b09e
Merge pull request #227 from dmathieu/fluid_scrolling_buttons
...
Fluid scrolling buttons
2013-12-11 03:42:43 -08: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
Dmitry Malikov
1041b59246
Add ghc to CONFIG_KEYS
2013-12-09 22:09:37 +04: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
07e0620b23
Fix duplicated broadcasts
2013-12-04 16:20:16 +01:00
Damien Mathieu
347cb0f887
actions need in views need to be in their own namespace, not in events anymore
2013-12-04 15:32:52 +01:00
Hiro Asari
f86a7f8973
Merge pull request #223 from travis-ci/ha-bug-ci_gh1659
...
Style 'grey' class
2013-12-02 05:35:16 -08:00
Piotr Sarnacki
4ddee83cc5
Merge pull request #220 from travis-ci/ps-allow-to-cancel-on-pull-permissions
...
Allow to cancel build on pull permissions
2013-11-28 03:55:15 -08:00
Hiro Asari
9c2be87ac2
Lighten $ansi-grey
2013-11-27 01:20:55 -05:00
Hiro Asari
9e3700752e
Style 'grey' class
2013-11-22 08:32:02 -05:00
Greg Karékinian
d5bb233df0
Align line numbers with CSS
...
It looks good up to 9999
Refs #222
2013-11-20 13:01:37 +01:00
Piotr Sarnacki
6f3d291d3e
Allow to cancel build on pull permissions
2013-11-13 12:07:00 +01:00
Piotr Sarnacki
46e04c4f3f
Restarts should be available for pull permissions as well
2013-11-12 17:41:27 +01:00
Sven Fuchs
eaf260a516
Revert "Display repos with no builds, but which are active in 'My repositories'"
...
This reverts commit fbed80f166
.
Conflicts:
assets/scripts/app/templates/repos/list.hbs
2013-11-12 16:06:26 +01:00
Hiro Asari
758ad40349
Fix typo
2013-11-07 11:50:12 -05:00
Hiro Asari
b72cc319cc
Reduce number of AJAX requests
2013-11-06 15:57:16 -05: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
Sven Fuchs
6d52827576
timeago: assume "now" when date is in the future
2013-11-05 15:48:30 +01:00
Piotr Sarnacki
06d90dbc9b
Merge branch 'master' into insufficient-oauth-permissions
...
Conflicts:
assets/scripts/app/routes.coffee
2013-10-31 15:52:59 +01:00
Nick Schonning
b21f9f82fb
travisci.com to travis-ci.com
...
travisci.com emits a 301
2013-10-30 13:15:41 -04:00
Piotr Sarnacki
190bf9e837
Use lastBuildHash on repo, not lastBuild
...
lastBuildHash uses information for last build, which is available on the
repo object, so it will not trigger an ajax request if we haven't
fetched a build yet.
2013-10-30 14:36:32 +01:00
Piotr Sarnacki
018eafe84b
Fix problem with getting started template rendering on first sync
...
When first sync template is displayed, user usually doesn't have any
repos, which also triggers rendering of getting started template. The
fix for this is to handle the action to render getting started page on
first sync and do nothing in such case.
I also added a test to ensure that it works correctly.
2013-10-29 20:48:27 +01:00
Piotr Sarnacki
fbed80f166
Display repos with no builds, but which are active in 'My repositories'
...
When user activates a repository in the profile page, we now will
display this repository on the 'My Repositories' list. When user chooses
this repository, she will see an explenation why there is no builds and
what could be done to fix this.
Conflicts:
assets/scripts/app/controllers.coffee
assets/scripts/app/models/repo.coffee
assets/scripts/app/templates/repos/list.hbs
2013-10-29 18:05:23 +01:00
Justine Arreche
b100565048
removed smile from crying travis
2013-10-28 17:56:00 -04:00
Justine Arreche
745e2da628
modified travis-crying icon to have sad beard
2013-10-28 12:26:18 -04:00
Justine Arreche
de02f0d028
styling to github oauth error page and added travis-crying icon
2013-10-28 11:55:25 -04:00
Piotr Sarnacki
7363a1d7ef
Render builds/not_found and repo/not_found in the next runloop run
...
This is done to make sure that if something else render just after
not_found, not_found will still be rendered.
2013-10-27 00:32:58 +02:00
Piotr Sarnacki
796e830a36
Add page about insufficient oauth permissions
2013-10-25 13:10:22 +02:00
Piotr Sarnacki
6a9510413d
Use loading_link class instead of default loading on links
...
loading class conflicts with some of our CSS entries
2013-10-24 18:03:14 +02:00
Justine Arreche
15dc5ff921
added vertical align top to .slug
2013-10-21 21:19:37 -04:00
Justine Arreche
75ae8d7d14
Merge branch 'master' of https://github.com/travis-ci/travis-web
2013-10-21 20:04:30 -04:00
Justine Arreche
1210d07a90
changed #right .slug to inline
2013-10-21 20:04:13 -04:00
Piotr Sarnacki
b5297d7800
Update code for newest ember-model
2013-10-18 13:41:10 +02:00
Piotr Sarnacki
b3ce14cc22
Update ember to 1.1.beta and ember-model to newest version
2013-10-18 13:41:10 +02:00
Piotr Sarnacki
9958de3191
Add record to record arrays in adapter
...
Ember Model does not do it automatically. I had a patch, which was
changing that, but after giving it more thought, I think it's not a good
idea - this should be up to adapter if the records are going into
record arrays.
2013-10-18 13:41:09 +02:00
Justine Arreche
af65c668d1
bringing in darker #left div bg color for master app.css
2013-10-16 13:09:48 -04:00
Justine Arreche
9fb54749be
darkened #left div a bit to reduce amount of white on page for people with less repos
2013-10-16 12:55:35 -04:00
Justine Arreche
14d7c0405c
adding white color for anchors in flash messages
2013-10-15 13:58:46 -04:00
Justine Arreche
4bde44e40e
added color white to flash class anchor tag
2013-10-15 13:45:56 -04:00
Justine Arreche
e5363fc64d
added stylesheet ref for google fonts and added backup helvetica and sans-serif to app sass and getting started
2013-10-14 17:34:14 -04:00
Josh Kalderimis
4abee5edca
remove some duplicated content due to a bad merge
2013-10-14 23:17:02 +02:00
Josh Kalderimis
c699d48337
Merge branch 'updated-styles'
2013-10-14 17:37:28 +02:00
Justine Arreche
b9a7916cf4
changed colors of build error/success messages to fit new color scheme, adjusted message positioning and added a white version of the close icon
2013-10-10 18:39:28 -04:00
Justine Arreche
3c90e42ecf
fixed positioning of #profile right bar
2013-10-10 01:06:58 -04:00
Justine Arreche
3d8a72a074
fixed border colors for all tip boxes
2013-10-09 14:13:50 -04:00
Justine Arreche
3278b1e308
centerd tab titles
2013-10-09 13:14:11 -04:00
Justine Arreche
ced2bc63f6
fixed alignmnt of Mr. T
2013-10-08 16:57:17 -04:00
Justine Arreche
bdc84746f8
WIP - added inline-block to both span and .mascot in attemps to fix Mr. T
2013-10-08 15:48:09 -04:00
Justine Arreche
a57952e2f8
WIP fixing auth page, successfully fixed firefox button bug
2013-10-08 15:11:27 -04:00
Justine Arreche
68d71c33b5
lightened show more button to closer reflect tools buttons
2013-10-08 01:28:40 -04:00
Justine Arreche
588536e360
styled show more builds button
2013-10-08 01:26:11 -04:00
Justine Arreche
dda961c117
fixed profile left cells to be clickable
2013-10-07 18:30:55 -04:00
Henrik Hodne
e3e96aca73
Remove more trailing whitespace
2013-10-07 17:07:33 -05:00
Josh Kalderimis
63c8c59744
remove some whitespace
2013-10-07 23:52:17 +02:00
Justine Arreche
51c1b4dcee
Took out linkTo in list.hbs and fixed cursor to pointer on li elements for left repo list view
2013-10-07 17:16:54 -04:00
Justine Arreche
b0415a7148
Fixed list.coffee so repo cell to be entirely clickable, all the credit goes to @bastilian
2013-10-07 17:04:31 -04:00
Josh Kalderimis
0d4babb07e
wrap the contents of the li, not the whole collection
2013-10-07 21:00:35 +02:00
Justine Arreche
32c1f31241
attempt to make entire repo cell clickable
2013-10-07 13:48:55 -04: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
Piotr Sarnacki
ae0db5780a
Merge pull request #214 from Aaron1011/clear_log
...
Clear log when a job is restarted
2013-10-07 07:41:50 -07:00
Justine Arreche
0500ab1168
Rearranged some copy for first_sync to increase readability and added mascot to success message
2013-10-05 15:19:46 -04:00
Justine Arreche
9c078575c1
Merge branch 'updated-styles' of https://github.com/travis-ci/travis-web into updated-styles
2013-10-05 14:25:43 -04:00
Justine Arreche
515a0861ba
new loading spinner gif, header styles and columns for first_sync page
2013-10-05 14:04:52 -04:00
Josh Kalderimis
78c53dd500
change the log font size to 12
2013-10-05 15:46:19 +02:00
Justine Arreche
1bc7bbee67
changed layout of getting_started to two columns and reorganized typographic styles and heirarchy
2013-10-04 23:27:30 -04:00
Aaron Hill
7218655cf4
Added tests for clearing log when a job is started or requeued
2013-10-04 16:51:28 -04:00
Justine Arreche
0feb1684dc
added new screenshot for build email notification img
2013-10-04 16:01:06 -04:00
Justine Arreche
1cd544ad3b
new screenshots for getting started steps and new styles and centered alignment
2013-10-04 15:40:46 -04:00
Mathias Meyer
f6867e8a4c
Move title attributes into <li> elements.
...
The icon pictures are smaller than the li, reducing the surface
to show the title as a tooltip.
2013-10-04 16:27:51 +02:00
Aaron Hill
2a83215fdc
Fixed clearing log
2013-10-03 21:23:49 -04:00
Justine Arreche
0cfb44868c
added in 'step' headlines to break down the info a bit better
2013-10-03 19:46:40 -04:00
Justine Arreche
b78dec5091
increased width of getting started div and took away align right on images
2013-10-03 19:11:35 -04:00
Justine Arreche
0b01dd6278
fixed styling on auth and added mascot above copy
2013-10-03 18:46:48 -04:00
Justine Arreche
d75a2f64a6
increased width of #left to account for longer repo users/names
2013-10-03 18:09:21 -04:00
Justine Arreche
b5a27c5d21
reduced width of #left to 260px
2013-10-03 18:05:46 -04:00
Justine Arreche
9d39402f2d
additional styling to auth page and new icon for finished label
2013-10-03 18:00:54 -04:00
Justine Arreche
872ebca991
removed overflow scroll to fix dropdowns
2013-10-02 17:40:47 -04:00
Justine Arreche
f1163977e6
adjustments to #top and #right bars for increased responsiveness in all browsers
2013-10-02 16:55:12 -04:00
Justine Arreche
45b37345ba
added a min width to #top to prevent the user wrapping
2013-10-02 13:15:52 -04:00
Justine Arreche
e59ed8766a
replaced box-flex and altered #left min/max width
2013-10-02 12:14:35 -04:00
Justine Arreche
87046b60f1
Added max and min width to #left to fix chrome bug
2013-10-02 12:02:00 -04:00
Justine Arreche
d972c81eb1
changed min-widths on #left and #main to resolve sidebar bugs
2013-10-02 10:21:25 -04:00
Mathias Meyer
3b3d36a98a
Make build email ever so slightly wider.
2013-10-02 15:55:19 +02:00
Justine Arreche
3ebeb3b262
fixed top logged in profile right margin to align with the rest of the app
2013-10-02 09:44:56 -04:00
Justine Arreche
3f5c5a0a50
Changed bg color of #right to match search_box, removed border radius and changed margin-top to align with #main h3
2013-10-02 09:34:18 -04:00
Justine Arreche
6a011f3c88
Removed radius on buttons and profile message container, styled buttons to new colors, increased top-padding on profile #main div
2013-10-02 09:25:30 -04:00
Justine Arreche
6492fdccb1
replaced first build and first project no recent screen shots and started re-styling switch class
2013-10-02 08:19:00 -04:00
Justine Arreche
4bf98f5515
removed opacity on build message
2013-10-01 19:52:06 -04:00
Justine Arreche
df139ec475
fixed line height on nav to align with travis logo
2013-10-01 19:16:37 -04:00
Justine Arreche
64e10f4f61
fixed spinner height to be inline with avatar
2013-10-01 19:06:18 -04:00
Justine Arreche
0dea38af7c
replaced #left back to 380px wide
2013-10-01 17:44:01 -04:00
Justine Arreche
d4ae21251e
lightened up the log bg by 10%
2013-10-01 17:42:31 -04:00
Justine Arreche
593f3425bd
increased size and fixed positioning of avatar
2013-10-01 17:18:42 -04:00
Justine Arreche
82c8ac67dc
adjusted positioning on topbar dropdown to remove overlap
2013-10-01 17:10:30 -04:00
Justine Arreche
70c0d02d2e
reduced max-width of #left to 350px
2013-10-01 17:07:09 -04:00
Justine Arreche
c63461f6c3
fixed positioning on logged in img avatar
2013-10-01 16:34:27 -04:00
Justine Arreche
314b0e9dff
removed gradient and border radius from tools and updated tools-button.png to reflect the rest of the tools changes
2013-10-01 16:02:03 -04:00
Justine Arreche
6bc3c66f78
changed repo title to warm grey, changed odd list bg color two very light warm grey
2013-10-01 12:35:41 -04:00
Justine Arreche
bd5d62264a
added stop padding to search_box and repo for breathing room under topbar
2013-10-01 12:03:27 -04:00
Justine Arreche
2882119d33
changed repo title to blue and removed drop shadow on indicator triangle
2013-10-01 11:47:24 -04:00
Justine Arreche
8172e3bd10
got rid of the border radius on tabs
2013-10-01 11:10:02 -04:00
Justine Arreche
3a73aeb4a6
new typeface, header styles and changes to h3 size colors and styles to reflect landing page
2013-10-01 10:46:14 -04:00
Mathias Meyer
c40aacb1b0
Update build email image.
2013-10-01 15:19:57 +02:00
Piotr Sarnacki
9c7606ff96
Don't try to format date if it does not exist
2013-10-01 14:29:55 +02:00
Piotr Sarnacki
01e0362242
Add moment.js library for easier dates formatting
2013-10-01 11:25:40 +02:00
Piotr Sarnacki
4bb331686c
Fix finishedAt tooltips and show dates in local time zone
2013-10-01 11:25:40 +02:00
Piotr Sarnacki
1ea19a7cbd
Properly detect if user is logged in for broadcasts
2013-09-24 14:17:19 +02:00
Mathias Meyer
6c04d5adbd
Make icon buttons wider.
...
Just three more pixels.
2013-09-24 14:15:35 +02:00
Mathias Meyer
d5474b5588
Remove config from build page too.
2013-09-24 14:01:32 +02:00
Mathias Meyer
f575a0e73c
Push icons 3 pixels to the right.
...
Obsessive about whitespace much? Indeed!
2013-09-24 13:59:53 +02:00
Piotr Sarnacki
97c2cbec8a
Don't style every link to github with an icon ( closes #207 )
2013-09-24 11:02:48 +02:00
Mathias Meyer
a8e1b270a2
Fix styles for box on the profile.
2013-09-24 10:44:21 +02:00
Mathias Meyer
464c4ea5dc
Revert "Moving sidebar styles to travis-pro-web"
...
This reverts commit bc7d73c355
, as it
broke the box on the profile page.
2013-09-24 10:38:52 +02:00
Piotr Sarnacki
1d6842ef43
Merge pull request #211 from goshakkk/ga
...
Track route transitions to Google Analytics as well
2013-09-23 10:35:09 -07:00
Mathias Meyer
9d7e610f52
Remove config line, which is now empty everywhere.
2013-09-23 19:16:12 +02:00
Mathias Meyer
71cf203b83
UPDATE EMOJIS!!
...
😿
2013-09-23 17:29:01 +02:00
Mathias Meyer
c98f701bc2
One pixel further south.
2013-09-23 13:26:24 +02:00
Mathias Meyer
47f84d5b5b
Move build status image button to the top right.
...
It takes up quite a bit of room on the tabs list, and it makes
more sense to have it up there, as it belongs to the repository.
2013-09-23 13:19:43 +02:00
Piotr Sarnacki
a7f26ac4e2
Merge pull request #210 from goshakkk/controller-for-depr
...
Get rid of 'controllerFor' deprecation warnings
2013-09-23 03:15:58 -07:00
Josh Kalderimis
0cf6eeffee
UPDATE ALL THE EMOJISSSSSS
2013-09-22 17:44:56 +02:00
Gosha Arinich
a62cd4062f
track route transitions to GA as well
2013-09-21 21:48:03 +03:00
Gosha Arinich
62322318da
get rid of 'controllerFor' deprecation warnings
2013-09-21 21:31:12 +03:00
Piotr Sarnacki
bc7d73c355
Moving sidebar styles to travis-pro-web
2013-09-19 22:41:10 +02:00
Piotr Sarnacki
9fdc95cdf8
Make right sidebar bigger
2013-09-19 22:26:42 +02:00
Piotr Sarnacki
194080cc43
Treat build number as number
...
I changed it to be a Number along with Job's number, but it's wrong -
Build's number should be treated as an integer (to not screw up
ordering) and Job's number can be treated as a string (because it has a
format "\d.\d")
2013-09-19 00:04:09 +02:00
Mathias Meyer
8cc1bacf21
Fix border radius on active tab.
2013-09-18 16:41:20 +02:00
Mathias Meyer
46adf1164d
Tilt the mascot by 10 degrees, for extra whimsy.
...
Remember: Whimsiness grows exponentially with the degrees of tilt.
2013-09-16 18:57:13 +02:00
Piotr Sarnacki
fc77800f8e
Build.number and Job.number should be treated as strings
2013-09-16 18:53:14 +02:00
Piotr Sarnacki
19a6b29b35
Reload hooks if they're not available
2013-09-16 18:53:13 +02:00
Piotr Sarnacki
3d6fd53883
Ember Model sets primaryKey on class
2013-09-16 18:53:13 +02:00
Mathias Meyer
4b76b07d10
Add default avatars for build email.
2013-09-16 16:47:00 +02:00
Mathias Meyer
e7a58a15be
Change arrow file name.
2013-09-16 15:45:45 +02:00
Mathias Meyer
0fe82c6803
Add new assets for build email.
2013-09-16 10:26:07 +02:00
Piotr Sarnacki
d40c097074
Update ember-model with a reloading fix
2013-09-13 23:24:43 +02:00
Piotr Sarnacki
199f236b23
Merge pull request #205 from Aaron1011/fix_duration
...
Fix duration being incremented after a build/job is finished
2013-09-12 14:29:38 -07:00
Piotr Sarnacki
0327d39e2c
Move observing last build to controller
...
We observe last build on the repo in order to show the freshest build on
repo page. I moved it to router in order to keep such observers in the
same place, but this was not a wise move. To make it work properly
observer needs to be removed when moving to some other part (like
build's page). The problem is that deactivate function is not called
when we move to the other route in the same nesting. We have our own
'activate' function on repoController, which is better suited for
handling this task.
2013-09-12 23:23:21 +02:00
Henrik Hodne
688f8a0bb9
Fix typo in cancellation flash message
2013-09-12 10:01:01 -05:00
Mathias Meyer
3e7b9eadeb
Include proper link.
2013-09-11 10:59:18 +02:00
Mathias Meyer
59de081cb7
Update instructions for Code Climate token.
2013-09-11 10:53:14 +02:00
Mathias Meyer
0c9a49ab51
Rework Code Climate integration for action icon bar.
2013-09-11 10:53:02 +02:00
Mathias Meyer
8d3fa21665
Merge branch 'master' into mm-code-climate-window
...
Conflicts:
assets/scripts/app/templates/repos/show/tools.hbs
assets/scripts/app/views/repo/show.coffee
2013-09-10 14:32:20 +02:00
Mathias Meyer
eaf258f033
Use status image helper to determine the URL.
2013-09-10 12:46:33 +02:00
Mathias Meyer
340dec5396
Fix sidebar not fully collapsing.
2013-09-10 12:29:24 +02:00
Mathias Meyer
84130350bd
Merge branch 'mm-extract-actions-from-menu'
2013-09-10 10:30:36 +02:00
Mathias Meyer
e7d4b284cd
Make action links actual icons.
...
This change pushes the cog menu to the top, where it belongs, as it
now only includes repository-relevant actions. The icons now reflect
things relating to the build/job itself, and have replace the cog
meny.
2013-09-09 16:40:23 +02:00
Mathias Meyer
24fb869d53
Disable links when permissions isn't granted.
2013-09-08 11:45:40 +02:00
Mathias Meyer
451894bcec
Pull some bindings into build and job controllers.
2013-09-08 10:11:20 +02:00
Mathias Meyer
2cc35556ab
Pull job/repository actions out of cog menu.
...
It's very hard to notice where something is, when it's hidden in
that menu.
2013-09-08 09:21:37 +02:00
Aaron Hill
c1dcaa2715
Fix duration being incremented after a build/job is finished
2013-09-07 20:49:53 -04:00
Piotr Sarnacki
1a0e378732
Fix rendering job when moving from index route
...
The hack which is needed for wrong outlet behaviour renders a template
when outlet is not rendered automatically, but it was done immediately.
Because of that when changing routes from index to job route, sometimes
the hack was kicking in and rendering build instead of job template.
This commit fixes it to check if rendering is needed in "afterRender"
phase on runloop.
2013-09-07 17:44:43 +02:00
Piotr Sarnacki
cebe5b1e1c
Revert "Update ember and ember-model"
...
This reverts commit 408cce2d4f
.
2013-09-06 22:14:11 +02:00
Piotr Sarnacki
92616251bb
Revert "Update code for newest ember-model"
...
This reverts commit 1594130ff3
.
2013-09-06 22:14:06 +02:00
Piotr Sarnacki
7c161069f5
Fix problems with transitioning to job
2013-09-06 22:04:25 +02:00
Piotr Sarnacki
1594130ff3
Update code for newest ember-model
2013-09-06 19:37:06 +02:00
Piotr Sarnacki
408cce2d4f
Update ember and ember-model
2013-09-06 19:36:34 +02:00
Piotr Sarnacki
12aaeeef2d
Add records to record arrays in a runloop
...
When adding records just after loading them, the elements in the UI
might have to be updated, which may trigger `get` on associations right
away. As an effect, even if we load a few records on an event (like
repository on build:started event), ember model may end up fetching the
record.
This commit fixes such occurrences by adding record to record arrays in
a run loop, so newly created records will be added at once, after the
event was served.
2013-09-04 21:20:10 +02:00
Mathias Meyer
f4acc21d06
WIP: Code Climate UI integration.
2013-09-03 14:26:02 +02:00
Piotr Sarnacki
4b7f9bb14a
Delegate CurrentUserController#updateLocale to user instance
2013-09-01 14:22:48 +02: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
4ab6a90b66
Simplified code in github refference linking
2013-09-01 13:36:33 +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
072a5de579
Show first_sync page after routerTransitions
...
This code ensures that we send an event after router is fully
initialized, otherwise it could cause an error.
2013-08-29 16:33:09 +02:00
Piotr Sarnacki
2c5071bbba
Update travis-web-log
2013-08-29 04:05:10 +02:00
Piotr Sarnacki
14d0596249
Update travis-web-log
2013-08-29 03:36:01 +02:00
Piotr Sarnacki
30d273a648
Fix specs
2013-08-29 01:19:35 +02:00
Piotr Sarnacki
27929faf6f
Don't render sidebar
2013-08-29 01:15:57 +02:00
Piotr Sarnacki
f82707b832
Always run deferReadiness()
2013-08-29 01:15:46 +02:00
Piotr Sarnacki
358b7cc0c0
Don't add records to expandable array if they're already there
2013-08-29 01:01:28 +02:00
Piotr Sarnacki
fb120af69e
Use pullRequestNumber from build, not from commit
2013-08-29 01:01:03 +02:00
Piotr Sarnacki
18ba86eca0
Remove stuff not used in travis-web anymore
2013-08-28 14:17:26 +02:00
Piotr Sarnacki
34ae33f087
Fix filtering for queue and running jobs
2013-08-27 23:26:08 +02:00
Piotr Sarnacki
08d17fdf2b
Check also for superclass of Travis.AuthRoute
...
Ember.js creates subclasses of given class in container, so we need to
check also superclass
2013-08-27 18:23:17 +02:00
Piotr Sarnacki
b56fa7b9df
Fix getting hooks on profile page
...
Hooks were sometimes not loaded, because user property on
ProfileController was not available. This commit tries one additional
way to get a login - Travis.lookup with controller:currentUser.
2013-08-27 16:11:56 +02:00
Piotr Sarnacki
c0397ae5d4
Fix rendering on firefox
...
Rendering on firefox was broken due to the difference in time when DOM
loads - without deferReadiness it was sometimes failing to add
ember-application element to body
2013-08-27 15:55:29 +02:00
Mathias Meyer
da7cb6f4b0
Add githubLanguage as repository property.
2013-08-27 15:30:42 +02:00
Piotr Sarnacki
33861717ee
Update travis-web-log
2013-08-27 10:37:34 +02:00
Piotr Sarnacki
7be461758c
Fix specs
2013-08-26 17:01:27 +02:00
Mathias Meyer
04545cc066
Add synchronization spinner.
2013-08-26 12:55:11 +02:00
Mathias Meyer
581f9f6858
Include a mustached spinner.
2013-08-26 12:47:35 +02:00
Piotr Sarnacki
d5038a4855
Fix allBuilds for ember-model
2013-08-25 14:54:55 +02:00
Piotr Sarnacki
eb35a0e1c6
Merge branch 'master' into ui-improvements
...
Conflicts:
assets/scripts/app/controllers.coffee
2013-08-25 14:46:03 +02:00
Piotr Sarnacki
020bf12d90
Update ember.js
2013-08-25 14:37:05 +02:00
Piotr Sarnacki
d3ded51a16
Automatically redirect away from 'first_sync' after synced is finished
2013-08-25 14:13:46 +02:00
Piotr Sarnacki
d2ebf4cbcf
Remove indicator from first sync for now
2013-08-25 13:13:58 +02:00
Piotr Sarnacki
b6c2ee418a
Don't require sidebar controller
2013-08-22 16:05:08 +02:00
Piotr Sarnacki
d18cffd1a7
When observing all builds don't request them
...
We use `allBuilds` to observe new incoming builds, so we can put new
builds into the lists (for example when build is started). We use it for
observing purposes only, so we actually don't need to get builds from
the server, we can just register record array and use it later on.
2013-08-22 15:29:12 +02:00
Mathias Meyer
f479cac505
Add copy for the first sync page.
2013-08-21 15:18:06 +02:00
Piotr Sarnacki
766f4e8907
Properly handle job:canceled event
2013-08-13 01:09:02 +02:00
Piotr Sarnacki
c9e677fd86
Allow to cancel jobs after they're started
2013-08-12 17:35:12 +02:00
Piotr Sarnacki
8f91eee610
Display 0 instead of blank field if reposCount is null
2013-08-12 13:16:58 +02:00
Piotr Sarnacki
0217b20943
Implement missing pieces for cancel build
...
We allow to cancel only created builds at this point.
2013-08-09 23:06:19 +02:00
Henrik Hodne
93e7b40346
Squash image size
2013-08-06 20:24:48 -07:00
Piotr Sarnacki
8c3e92faea
Merge branch 'master' into ui-improvements
...
Conflicts:
assets/scripts/app/controllers/repo.coffee
assets/scripts/app/templates/builds/show.hbs
assets/scripts/app/templates/jobs/show.hbs
2013-08-06 13:16:56 +02:00
Piotr Sarnacki
c92720f280
Fix displaying pull request number on builds' list
...
Commit sometimes does not have information about pull request (probably
when payload is coming from pusher).
2013-08-06 13:05:25 +02:00
alonisser
590bd87e38
Change height of status image popup to include all formats
...
Close #196 .
2013-08-05 15:48:14 -07:00
Piotr Sarnacki
d94816ec8f
Remove unneeded code
...
This piece of code was used in order to load repos associated to jobs
when the latter were loaded from pusher. This was needed because jobs
events do not have repository record passed in pusher payload, so when
job was added with pusher and link to the job was displayed in "Running
Jobs" or in workers on right sidebar, Ember was loading missing repos.
We don't need this code anymore as there is no right sidebar.
Additionally after changes in Ember.js, it's possible to pass primitives
to linkTo. Previously the link to record needed to be constructed as
following:
{{#linkTo "job" job.repo job}}Link to repo{{/linkTo}}
The drawback of such code is that repo would have been instantiated in
such case. Now, we can do something like this:
{{#linkTo "job" job.repositorySlug job}}Link to repo{{/linkTo}}
so as long as we have information about repository slug in the job data,
such hacks are not be needed.
2013-08-05 13:14:58 +02:00
Piotr Sarnacki
dcb2945092
Buffer pusher updates to RecordArrays until content is set
...
When collections are loading as ajax requests, we may still get pusher
updates, which will try to add records to these collections. In order to
make it work nicely, we should wait until Ajax request finishes (ie.
content of record array is set) and only then add objects from pusher
2013-08-05 13:12:38 +02:00
Piotr Sarnacki
33bce774a3
Add first_sync template
...
First sync will be displayed when user is logged in and first sync is
still taking place
2013-08-05 03:29:19 +02:00
Piotr Sarnacki
b40d0acf9c
Return empty array from userRepos when there is no user
2013-08-05 03:28:43 +02:00
Piotr Sarnacki
acf5d8e9be
Redirect to root after signin in on auth page
2013-08-05 03:27:47 +02:00
Piotr Sarnacki
003c6e7b01
Add unload method on model
2013-08-05 03:24:39 +02:00
Piotr Sarnacki
ce56c95b5f
Change styling for auth template
2013-08-05 03:24:39 +02:00
Piotr Sarnacki
c79725d0e9
Refactor sign in related templates, fix indicator in auth template
2013-08-05 03:24:33 +02:00
Piotr Sarnacki
d248fd11a6
Fix messages on empty repos list
2013-08-05 02:35:47 +02:00
Piotr Sarnacki
218a078164
Fix messages on empty repos list
2013-08-05 02:35:28 +02:00
Piotr Sarnacki
9170795639
Improve auth code in router by using new async stuff ( ❤️ @machty)
2013-08-03 20:48:59 +02:00
Piotr Sarnacki
d9d833d1b4
No need to prefetch repos in recentRepos
...
Repo#withLastBuilds already does a fetch, so this is redundant
2013-08-03 15:11:23 +02:00
Piotr Sarnacki
b2f543f3a2
Don't require sidebar and running jobs, it's not used anyway
2013-08-03 15:10:55 +02:00
Piotr Sarnacki
66ed172888
Refactor the way we insert new records with pusher
...
Previousy I was using find to ensure that the record is materialized,
but the new version is much lighter - it uses Model#load to load the
record directly
2013-08-03 15:09:18 +02:00
Piotr Sarnacki
9cb84f78ee
Update travis-web-log to use setImmediate.js
...
Currently travis-web-log uses setTimeout which makes long logs rendering
much slower than it should be.
2013-08-03 15:07:48 +02:00
Piotr Sarnacki
dd525dd1d2
Update ember-model
2013-08-03 15:07:14 +02:00
Piotr Sarnacki
17d5212d86
Bring back deferReadiness(), it was accidentally removed
2013-07-31 16:18:54 +02:00
Piotr Sarnacki
53951c3691
Don't reload user repositories each time my repos tab is clicked
2013-07-31 16:18:37 +02:00
Piotr Sarnacki
07d2d1ff2a
Check if record is in a record array before adding it
2013-07-31 15:06:06 +02:00
Piotr Sarnacki
27da51fcc1
Don't update entire filtered array when adding record
2013-07-31 14:57:08 +02:00
Piotr Sarnacki
42470fd416
Wrap updateTimes in Ember.run
2013-07-31 13:59:03 +02:00
Piotr Sarnacki
fb41820917
Remove ticker require
2013-07-31 13:57:49 +02:00
Piotr Sarnacki
549efc8046
Add resetData, unload and removeFromCache to Travis.Model
2013-07-31 13:56:19 +02:00
Piotr Sarnacki
647863ca59
Remove require 'store', add require 'adapter'
2013-07-31 13:55:39 +02:00
Piotr Sarnacki
96066709b4
Simplify permissions CP code
2013-07-31 13:55:04 +02:00
Piotr Sarnacki
50e533b116
Log router transitions
2013-07-31 13:54:39 +02:00
Piotr Sarnacki
0ac5b6855e
Use isPullRequest instead of eventType
2013-07-31 13:54:02 +02:00
Piotr Sarnacki
e8809727bf
Ticker is no longer used
2013-07-31 13:52:51 +02:00
Piotr Sarnacki
1951752f47
Wrap ajax callbacks in Ember.run
2013-07-31 13:52:08 +02:00
Piotr Sarnacki
c0cb223aeb
Update Travis.Model to work with Ember Model
2013-07-31 13:51:28 +02:00
Piotr Sarnacki
ccfd116f08
Use Handlebars.helper instead of registerBoundHelper
2013-07-31 13:49:46 +02:00
Piotr Sarnacki
f271622758
Update ExpandableRecordArray to work correctly with Ember Model
2013-07-31 13:49:15 +02:00
Piotr Sarnacki
f92c592f2d
Add pusher receive related stuff to App (previously it was in store)
2013-07-31 13:47:55 +02:00
Piotr Sarnacki
8082d3a6d3
Update loading user to EmberModel's version
2013-07-31 13:45:52 +02:00
Piotr Sarnacki
8daf5b857a
Don't fail if user signs out before router is set up
2013-07-31 13:45:23 +02:00
Piotr Sarnacki
ded00e0182
unloadRecord -> unload
2013-07-31 13:44:56 +02:00
Piotr Sarnacki
92da0c8034
Simplify build/job and tools templates
2013-07-31 13:43:06 +02:00
Piotr Sarnacki
da9a34f06c
Change ED's filter() calls to FilteredArrays
2013-07-31 13:42:06 +02:00
Piotr Sarnacki
9093b2a311
Remove tick from sidebar controller
2013-07-31 13:39:18 +02:00
Piotr Sarnacki
af3f865854
Make routes code more async capable when setting job
...
After changing Ember Data to Ember Model, the default behavior is to
not return promise by default from `find` call. This is better in
general for our use case, because we don't block rendering the UI while
data loads, but we now have to handle cases where model is not yet
loaded in `setupController`
2013-07-31 13:35:47 +02:00
Piotr Sarnacki
373c7f706f
Get rid of hacks from routes
2013-07-31 13:32:23 +02:00
Piotr Sarnacki
670f38542a
Use model.save() for saving records
...
Also, there is no need to use transactions anymore
2013-07-31 13:29:55 +02:00
Piotr Sarnacki
823c8441be
Change EmberData properties/relationships into EmberModel versions
...
DS.attr -> Ember.attr
DS.belongsTo -> Ember.belongsTo
DS.hasMany -> Ember.hasMany
2013-07-31 13:29:55 +02:00
Piotr Sarnacki
4d74491401
Remove unused code
2013-07-31 13:29:55 +02:00
Piotr Sarnacki
7fb090fe99
Update ember-model and ember.js
2013-07-31 13:29:54 +02:00
Piotr Sarnacki
359c97cad0
Rewrite specs from jasmine to qunit
2013-07-31 13:29:45 +02:00
Piotr Sarnacki
5fea9d1d7b
Change spec runner to qunit
...
New ember-testing additions can be plugged into qunit without any
changes, so the easiest way to start using it is to rewrite our tests to
qunit.
2013-07-30 17:12:58 +02:00
Piotr Sarnacki
c194c775b9
Merge pull request #195 from floydpink/show-more-button
...
Show loading indicator on 'Show More' click
2013-07-29 18:18:43 -07:00
Piotr Sarnacki
f54054de72
Merge pull request #194 from floydpink/build-job-page-fixes
...
Fix a couple of metadata items on build and job tabs
2013-07-29 17:17:41 -07:00
Floyd Pink
fd98847863
show loading indicator on show-more button click
2013-07-27 16:11:12 -04:00
alonisser
4bc4d10e7d
Add Rst status image format
...
Close #192 .
2013-07-26 23:55:12 -07:00
Floyd Pink
d12bb1e8e4
a) author/committer emails on build page and b) PR on job page
2013-07-26 17:34:03 -04:00
Piotr Sarnacki
76af32013b
Fix updating times on repo page
2013-07-23 17:13:29 +02:00
Piotr Sarnacki
831540af88
Fix link to PR on build/job page
2013-07-17 17:48:56 +02:00
Piotr Sarnacki
74dc2bc339
Reset parts when fetching log
2013-07-16 00:29:45 +02:00
Henrik Hodne
6b1df07621
Show images for annotations that have them.
2013-07-11 12:20:49 -07:00
Henrik Hodne
31cb6ce98a
Extract annotations view
2013-07-11 11:45:23 -07:00
Henrik Hodne
c912634dd0
Handle annotation Pusher payloads
2013-07-11 11:24:55 -07:00
Henrik Hodne
5ec9199677
Show annotations in build view
2013-07-11 11:19:06 -07:00
Henrik Hodne
5ce8093253
Show annotations on the job page
2013-07-10 18:52:07 -07:00
Henrik Hodne
1b8ec432dc
Initial annotation support
2013-07-10 17:49:47 -07:00
Piotr Sarnacki
8d0d990825
Remove DS.Store
2013-07-09 15:38:09 +02:00
Piotr Sarnacki
d1413516eb
Use double qoutes for a route name in action and linkTo
2013-07-09 13:49:59 +02:00
Piotr Sarnacki
7350d37e91
Remove ember-data, add Ember model, update ember
2013-07-09 13:46:50 +02:00
Piotr Sarnacki
e343161017
Update travis-web-log
2013-06-26 18:54:50 +02:00
Piotr Sarnacki
c7516b458e
Show all accounts and hooks in profile
...
Previously we showed only accounts and repositories, to which you have
admin access. To improve usability, it's better to show all accounts and
all repositories, but explain why part of the repositories are not
manageable.
2013-06-18 17:54:13 +02:00
Piotr Sarnacki
357aa3a563
Fix sidebar for new Chrome version
2013-06-18 15:11:55 +02:00
Mathias Meyer
81bf2582ca
Add a first project image without recent tab.
2013-06-13 22:22:08 +02:00
Mathias Meyer
162b4386ef
Rework guide a whee bit to be more compact.
2013-06-13 20:47:21 +02:00
Mathias Meyer
20432d7254
Increase padding for images.
2013-06-13 13:50:31 +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
Mathias Meyer
50c2565540
Add a small Blue Box logo.
2013-06-07 14:52:16 +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
Henrik Hodne
c1814fa062
Change shadow for "Follow logs" button
...
In general, the "light" on web pages come from directly above, so
shadows should be directly below things. This isn't really a shadow,
though, but rather a way to make it seem like the text is "embossed"
into the surface by giving it a slight sheen on the bottom edge, in
which case the shadow definitely shouldn't be shifted left or right.
2013-05-22 12:58:29 +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
3caf5adfc2
Set an opacity on the GitHub octomark images.
...
Leaving them black makes them stand out a bit too much, this is
a bit more subtle.
2013-05-17 07:54:27 +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
Henrik Hodne
f05477bb0c
Add GitHub mark to GitHub links
...
This was requested in #95 .
Adds a little 10x10px GitHub mark to every GitHub link in the main
frame.
2013-05-16 17:59:07 +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
Mathias Meyer
c012a36614
Update GitHub icon .
2013-05-16 12:58:13 +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
Piotr Sarnacki
1fa040d9a3
Set container on View
...
After updating Ember it complains that using defaultContainer was
deprecated, in order to silence the deprections I just set the container
so it does not uses defaultContainer
2013-05-15 17:23:53 +02:00
Piotr Sarnacki
5f366a2989
Make Travis.ajax.ajax return a promise
2013-05-15 17:23:53 +02:00
Piotr Sarnacki
dddf66b8cf
Don't refresh duration when record is loading
2013-05-15 17:23:52 +02:00
Piotr Sarnacki
d65f733f28
Log router transitions
2013-05-15 17:23:52 +02:00
Piotr Sarnacki
b6e89073dc
Revert "Revert "Revert "Remove sidebar elements, which need to query API
...
This reverts commit 9ca1833103
.
2013-05-15 17:23:52 +02:00
Piotr Sarnacki
c8a9e650be
Use uncompressed version of pusher, we compress everything anyway
2013-05-15 17:23:52 +02:00
Piotr Sarnacki
49ce1485f9
Update pusher
2013-05-15 17:23:51 +02:00
Piotr Sarnacki
ebeaabe598
Use jQuery.param for generating query string
2013-05-15 17:23:51 +02:00
Piotr Sarnacki
3f30f3eec9
sign out before resetting app
2013-05-15 17:23:51 +02:00
Piotr Sarnacki
99c3ad770c
Router changes for new ember.js
2013-05-15 17:23:50 +02:00
Piotr Sarnacki
f374feae32
Update Ember.js
2013-05-15 17:23:50 +02:00
Piotr Sarnacki
47630b5bab
Use view.jobIdForLog instead of showDownloadLog
...
The latter is not always refreshed, I don't have time to debug it more
thoroughly
2013-05-15 17:23:48 +02:00
Piotr Sarnacki
07cd8233d4
Use $.ajax when testing to not break jquery.mockjax
2013-05-15 17:23:48 +02:00
Piotr Sarnacki
070d863588
No need to do hacks with Location header or Content-Type anymore
2013-05-15 17:23:48 +02:00
Piotr Sarnacki
5b771aafcc
Use XMLHttpRequest directly
...
jQuery uses getAllResponseHeaders function for getting response headers,
even for getResponseHeader. As far as I know, there is no easy way to
get original xhr object and call getResponseHeader on such object.
Because of that getResponseHeader is broken on firefox with CORS.
I rewrote Travis.ajax to use XMLHttpRequest directly in order to fix
this, the compatibility with jQuery.ajax is mostly handled.
2013-05-15 17:23:47 +02:00
Henrik Hodne
3c8bfa4690
Fix bold ANSI colours
2013-05-15 17:12:34 +02:00
Henrik Hodne
94eaa079dc
Update the ANSI log colours
2013-05-15 16:46:07 +02:00
Josh Kalderimis
da35b52a56
Merge branch 'master' of https://github.com/travis-ci/travis-web
2013-05-13 10:56:03 +02:00
Mathias Meyer
f7618bef8b
There's a capital H in GitHub.
2013-05-11 08:38:23 +02:00
Mathias Meyer
6230224412
Remove Fork me sidebar.
2013-05-10 23:50:25 +02:00
Mathias Meyer
61c0f5179d
Add Blue Box as the default sponsor of a test run.
2013-05-10 23:19:07 +02:00
Josh Kalderimis
55a58f275d
remove the (i) from the top right of the tabs
...
the (i) is a miscommunication as it looks like it is to give information about the tabs instead of pop down descriptions underneath each of the repos in the recent and 'my repos' lists.
2013-05-10 19:54:52 +02:00
Mathias Meyer
d82116d68f
Fix GitHub URL test.
2013-05-10 17:09:40 +02:00
Mathias Meyer
d04988138d
Fix specs and expectations for URL changes.
2013-05-10 17:05:45 +02:00
Mathias Meyer
9bce26ea3e
Change repository header to link to Travis repo.
...
Linking this to GitHub is cause for confusion, even for myself.
The tiny octocat now points to GitHub instead.
2013-05-10 16:49:15 +02:00
Nick Schonning
c1f9ed20e3
Remove conditional ga HTTPS loading
...
Shortcut since site is always secure.
Fixes gh-137
2013-05-08 23:13:18 -04:00
Piotr Sarnacki
e2d92c2ffb
POST requests should always require auth
2013-05-02 19:56:48 +02:00
Piotr Sarnacki
595393f273
Don't send Authorization header when it's not needed
...
CORS specification specifies "simple request", which does not need a
preflight OPTIONS request. The only thing, which we send and is
forbidding to send simple requests is Authorization header, which is not
needed for public endpoints.
2013-05-02 17:59:43 +02:00
Piotr Sarnacki
924b20d12e
Update log engine
2013-05-02 01:30:07 +02:00
Piotr Sarnacki
df9db80c42
A few improvements for tabs on repos list
...
* if user is logged out, the default tab should be 'recent'
* when user logs in, the tab is switched to 'my repositories'
* when user logs out, my repositories is hidden again and tab is
switched to 'recent'
2013-04-30 02:45:16 +02:00
Piotr Sarnacki
e23d16c135
Sign out user before running tests
2013-04-29 23:00:13 +02:00
Piotr Sarnacki
f3570acf7c
Comment failing tests, sidebar is temporarily limited.
2013-04-29 22:58:57 +02:00
Piotr Sarnacki
9ca1833103
Revert "Revert "Remove sidebar elements, which need to query API""
...
This reverts commit e6b8562054
.
2013-04-29 14:53:56 +02:00
Fiona Tay
8152f4f2d6
Add placeholder for search input
2013-04-29 14:53:55 +02:00
Fiona Tay
3b53aca586
Fix minor spelling mistakes
2013-04-29 14:53:55 +02:00
Piotr Sarnacki
d2e103bc36
Revert "Remove sidebar elements, which need to query API"
...
This reverts commit d0009176f9
.
2013-04-29 14:53:55 +02:00
Fiona Tay
5cf2c65d2f
make 'My Repos' come before 'Recent' in sidebar
2013-04-17 20:12:33 -07:00
Piotr Sarnacki
d0009176f9
Remove sidebar elements, which need to query API
...
We have problems with timeouts and thus we want to lower API load
2013-04-16 20:46:56 +02:00
Piotr Sarnacki
dbbd82c825
Move GroupView into proper location
2013-04-15 18:55:22 +02:00
Piotr Sarnacki
1198809979
Move WorkersView and JobsView to Travis.SidebarView namespace
...
Travis.JobsView already exists, so I need to put those views in some
other namespace, but so that they're available without instantiating
SidebarView
2013-04-08 00:36:21 +02:00
Piotr Sarnacki
31f25ed4f8
Move WorkersView and JobsView to Travis namespace
...
That way those views can be overriden easily
2013-04-08 00:25:05 +02:00
Piotr Sarnacki
dce72c8b20
Update log.js
2013-04-07 23:58:33 +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
8a69df0126
For some reason passing event breaks on chrome
2013-04-05 19:42:53 +02:00
Piotr Sarnacki
957d8a01ab
Merge branch 'sidebar-tabs'
...
Conflicts:
assets/scripts/spec/support/conditions.coffee
2013-04-05 19:26:24 +02:00
Piotr Sarnacki
d414c47833
Don't render links if slug is missing
2013-04-05 19:25:30 +02:00
Piotr Sarnacki
39d0202d7a
Fix specs, add styling for firefox
2013-04-05 18:09:00 +02:00
Piotr Sarnacki
cf23f81c40
Typo in tools view: hasPermissions -> hasPermission
2013-04-04 17:18:41 +02:00
Piotr Sarnacki
2f6e8082ac
Show pull request title also in job view
2013-04-03 13:27:52 +02:00
Piotr Sarnacki
7996358f01
Fix fetching log in firefox when Location header is unavailable
2013-04-02 20:17:24 +02:00
Sven Fuchs
46413b66fb
update log.js
2013-04-01 03:08:45 +02:00
Sven Fuchs
b70c344250
update log.js
2013-04-01 02:35:08 +02:00
Sven Fuchs
e498c9bd53
Merge branch 'master' of github.com:travis-ci/travis-web
2013-03-31 23:34:55 +02:00
Sven Fuchs
c2063e0a45
update log.js
2013-03-31 23:34:41 +02:00
Piotr Sarnacki
17923af973
Fix expanding folds on firefox
2013-03-29 23:25:05 +01:00
Piotr Sarnacki
ac675e5918
Fix tests
2013-03-29 22:53:57 +01:00
Piotr Sarnacki
ce6862e6a0
Always poll for changes when user is syncing
2013-03-29 22:15:19 +01:00
Sven Fuchs
63c0c50ec2
Merge branch 'master' into sf-log
2013-03-29 16:04:18 +01:00
Piotr Sarnacki
2537daf0eb
Try to fix error on setting duration when record is reloading
2013-03-28 23:42:32 +01:00
Piotr Sarnacki
6e632f7033
Don't set content for a controller automatically in some of the routes
...
Ember by default sets controller's `model` property which may cause
weird race conditions when connected with a way we handle setting up
controller's content - most of the time we bind things.
2013-03-28 23:28:58 +01:00
Piotr Sarnacki
d5bfa092b0
Don't setup pusher if we don't have key
...
That way we don't need to even fire anything pusher related when running
tests
2013-03-27 20:06:09 +01:00
Piotr Sarnacki
745b3a0167
Wait more time in ChunkBufferSpec, to make it more reliable
2013-03-27 20:05:38 +01:00
Piotr Sarnacki
c9f08417f7
Keep pullRequestNumber on build not on commit
2013-03-27 14:06:03 +01:00
Piotr Sarnacki
ea3ea61146
Fix ordering on workers lists
...
Emebr does not allow to use mixin on create, it needs to be passed to
extend().
(closes #151 )
2013-03-25 00:41:05 +01:00
Piotr Sarnacki
406dd06952
Merge pull request #162 from jwswj/142-ShowPrTitle
...
Show Pull Request title when available #142
2013-03-24 13:58:57 -07:00
Piotr Sarnacki
df37cb46f0
Update pusher library to 2.0.0
2013-03-22 13:03:48 +01:00
Piotr Sarnacki
74f4a7b110
Fix the log view for finished logs
2013-03-22 10:13:26 +01:00
Sven Fuchs
8f891168d7
un-bold the non-active tab in the sidebar
2013-03-22 02:32:27 +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
Sven Fuchs
894f321a8f
some style tweaks to the sidebar tabs /cc @drogus
2013-03-22 02:14:00 +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
5d049fd7de
Destroy groups in running jobs after they're emptied
2013-03-21 23:46:27 +01:00
Piotr Sarnacki
010754da8a
Use container as a context to lookup delegated call
2013-03-20 19:05:36 +01:00