Commit Graph

58 Commits

Author SHA1 Message Date
Piotr Sarnacki
c707135ccd First spike of 'isComplete' functionality
When we get payload from pusher, we usually don't send the entire
record. Initially such records where fetched from server right away to
get missing data. This was done becuase Ember can't tell if given data
is complete or not and just assumes that the record is loaded.

To not fire unneeded request, this code sets incomplete flag on records
loaded from pusher and loads the rest of the data only if needed.
2012-10-13 20:47:21 +02:00
Piotr Sarnacki
7ccbba2959 Don't redirect user if we're already in state that's not auth 2012-10-13 19:00:56 +02:00
Sven Fuchs
28346ce233 add an empty repos view 2012-10-13 17:31:12 +02:00
Sven Fuchs
d84b5dfd0a add autoSignIn to fix that after signOut it would always re-signin on pages that require auth 2012-10-13 15:52:27 +02:00
Sven Fuchs
44d81af450 make sure we go through the auth check after signout 2012-10-13 15:07:35 +02:00
Sven Fuchs
4689545547 camelize to afterSignIn and add afterSignOut 2012-10-13 15:02:23 +02:00
Sven Fuchs
2485a7bcb9 fix router after_signin behaviour 2012-10-13 14:51:12 +02:00
Sven Fuchs
dee3591147 some tweaks 2012-10-13 04:34:30 +02:00
Piotr Sarnacki
88abeb48c0 We still return repository_id in build's payload 2012-10-12 20:51:05 +02:00
Piotr Sarnacki
3ecbc8f139 Fix workers sorting, it should be done based on SortableMixin 2012-10-12 20:37:12 +02:00
Piotr Sarnacki
87bccccde8 Fix routing to build/job when object is already loaded 2012-10-12 18:46:27 +02:00
Piotr Sarnacki
2575218ddb Fix logs to always point to build or job view 2012-10-12 18:32:25 +02:00
Piotr Sarnacki
a3ec12bda7 Fix some of the build links 2012-10-12 15:34:07 +02:00
Piotr Sarnacki
a3826fbeb3 Show all repos accessible by current user in 'My repositories' 2012-10-12 14:42:04 +02:00
Sven Fuchs
f16c83d10f somewhat more consistent naming 2012-10-12 02:34:54 +02:00
Sven Fuchs
b35763baa3 using the production pusher key with RUN_API causes tons of 404 errors 2012-10-11 17:23:32 +02:00
Sven Fuchs
551b976bbc re-enable auto-auth 2012-10-11 15:34:01 +02:00
Sven Fuchs
05a57a593c deactivate auto-auth for now because redis has run full :/ 2012-10-11 05:16:07 +02:00
Piotr Sarnacki
6a487c8fd8 Actually fix profile view when reloading page - no need to redirect 2012-10-11 01:25:18 +02:00
Piotr Sarnacki
e561d7e145 Use localStorage instead of cookies 2012-10-10 22:42:28 +02:00
Piotr Sarnacki
3c303e5a86 Reload page when locale for user changes, also cache it in cookie 2012-10-10 22:37:44 +02:00
Piotr Sarnacki
a15836c50a Buffer search phrase to fire only after 500ms of last key press 2012-10-10 19:20:43 +02:00
Piotr Sarnacki
ed2ddc04f6 Fix back button
Repo.bySlug can return loaded items if they were loaded previously,
that's why it will not trigger isLoaded property change.
2012-10-10 19:07:32 +02:00
Piotr Sarnacki
b142d3cdcf Close popups and menus when clicking outside of them 2012-10-10 18:45:33 +02:00
Piotr Sarnacki
e997ac7f6a Make sure that workers are correctly sorted 2012-10-10 17:25:55 +02:00
Piotr Sarnacki
aef185f536 Show message on stats page 2012-10-10 16:47:22 +02:00
Piotr Sarnacki
404dde1cdf Initialize application in Ember.next, fixes auth 2012-10-10 16:13:21 +02:00
Sven Fuchs
24d98eb66a ok, it's DEFAULT_ENDPOINT 2012-10-10 14:16:47 +02:00
Sven Fuchs
00b38062cc stop loading the app config from the api cuz it adds quite a noticeable delay 2012-10-10 13:25:22 +02:00
Sven Fuchs
7cd5899eba hm, also check for the build here, obviously 2012-10-10 12:29:31 +02:00
Sven Fuchs
056f20ddfe check if we do have jobs before trying to iterate over them 2012-10-10 12:04:31 +02:00
Piotr Sarnacki
7fc77e66ea Limit repos list to 30 items 2012-10-09 18:23:11 +02:00
Piotr Sarnacki
7f6210ec6c Fixed build links on worker's list 2012-10-09 16:41:13 +02:00
Sven Fuchs
67aacb7baa keep flash messages for 10sec 2012-10-09 16:15:18 +02:00
Sven Fuchs
927c8de8b0 remove flash count binding and solve that in css 2012-10-09 15:53:23 +02:00
Sven Fuchs
6342367810 remove debug flash message 2012-10-09 15:28:10 +02:00
Sven Fuchs
6e7382ed05 Merge branch 'master' of github.com:travis-ci/travis-web
Conflicts:
	Gemfile.lock
	public/scripts/app.js
	public/scripts/min/app.js
	public/styles/app.css
	public/version
2012-10-09 15:25:27 +02:00
Sven Fuchs
847c120bd7 fuck yeah, flash messages 2012-10-09 15:16:54 +02:00
Piotr Sarnacki
233e95b18d Use empty function instead of Ember.K
Technically it's the same thing, but since in coffeescript it's just a
few characters, there is no need to use something that does not
explicitly say what it does.
2012-10-09 13:18:24 +02:00
Piotr Sarnacki
64fc6ce717 Don't trigger state change on signin if already in authenticated state 2012-10-09 13:08:57 +02:00
Sven Fuchs
7e6907feba Merge branch 'master' of github.com:travis-ci/travis-web
Conflicts:
	Gemfile.lock
	public/scripts/app.js
	public/scripts/min/app.js
	public/version
2012-10-09 12:33:11 +02:00
Sven Fuchs
6cbe6f140e refactor ajax, get rid of the module 2012-10-09 12:31:15 +02:00
Piotr Sarnacki
e0d3d83484 Kill typo 💣 2012-10-09 12:06:37 +02:00
Piotr Sarnacki
3a999e8598 If there is no path, route to '/' 2012-10-09 04:11:23 +02:00
Piotr Sarnacki
e6106a236a Remove initialState properties from most of the routes
initialState in some of the routes where needed because router was
behaving incorrectly when going to 'default state'. Now it is fixed, so
initialState entries are not needed anymore in those places.
2012-10-09 03:56:26 +02:00
Piotr Sarnacki
504a58add8 Check if permissions exist before calling anything on them 2012-10-08 22:42:02 +02:00
Piotr Sarnacki
94e16ab229 Worker still gets payload with repository
I tweaked the code to work for both versions, so we can update API
flawlessly
2012-10-08 17:32:04 +02:00
Piotr Sarnacki
37d1348054 Use Travis Pro in sponsors info 2012-10-08 17:12:39 +02:00
Piotr Sarnacki
b309819f24 Display Travis CI as box sponsor if there is not worker with given name 2012-10-08 17:09:42 +02:00
Piotr Sarnacki
94f1e64554 Show sponsor info under the log 2012-10-08 16:53:31 +02:00