Commit Graph

166 Commits

Author SHA1 Message Date
Piotr Sarnacki
5c280001d3 Rename IndexRoute to MainRoute 2015-01-14 13:22:58 +01:00
Piotr Sarnacki
2b86e93d13 Fix close button on flash messages 2015-01-14 12:47:16 +01:00
Piotr Sarnacki
2d69946772 It's Travis.config not Travis.features 2015-01-07 17:19:08 +01:00
Piotr Sarnacki
321c1efb33 Fix specs 2015-01-06 13:08:41 +01:00
Piotr Sarnacki
0074acb8fe Fix profile info tab 2015-01-06 12:45:08 +01:00
Piotr Sarnacki
eb9eac2b09 Merge branch 'refactoring' into ps-travis-pro-merge 2014-12-30 11:30:08 +01:00
Piotr Sarnacki
47e1de1d26 Extract Github URLs to controller 2014-12-30 11:28:49 +01:00
Piotr Sarnacki
8e2f8fc7f3 [pro-merge] Add controllers and controller extensions from travis-pro 2014-12-29 18:17:57 +01:00
Piotr Sarnacki
249d45ace6 Move save method in settings to actions 2014-12-29 18:17:56 +01:00
Piotr Sarnacki
385287489c Fix toggling hooks on profile page 2014-12-29 18:17:55 +01:00
Piotr Sarnacki
66be22af68 Fix actions on views
Almost all actions on views were not properly handled, because they were still
methods directly on a view object rather than in `actions` property. This commit
fixes it.
2014-12-29 18:17:55 +01:00
Piotr Sarnacki
f355bc58f3 Fix search to work with new way of handling repos tabs 2014-12-29 18:17:55 +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
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
e6800c80c6 Refactor our layout handling
Layout handling in travis-web was implemented in a dynamic way, so we
could change a main layout from any of the routes. This needed a
`rerender` call which was making things harder and needed some hacks. It
also broke a few transitions when upgrading to 1.8.1.

After examining our usage of layouts I've noticed that we don't need to
change the entire layout dynamically and instead we can set layout on
root routes (like "index", "profile" and other root routes).
2014-12-29 18:16:14 +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
a789fdab6f
Do not run timers in testing. 2014-11-05 08:19:16 -05:00
Robert Jackson
0972475dcb
Controller#content -> Controller#model. 2014-11-05 08:18:32 -05:00
Piotr Sarnacki
d15b6f851c _referenceCache is not a function 2014-08-25 15:32:19 +02:00
Piotr Sarnacki
5c41529d07 Reset ssh key controller properly 2014-08-25 15:22:17 +02:00
Piotr Sarnacki
50e9986dda Fixes after merging ps-env-vars 2014-08-21 16:39:15 +02:00
Piotr Sarnacki
9741ede075 Merge branch 'ps-env-vars'
Conflicts:
	assets/scripts/app/controllers.coffee
	assets/scripts/app/helpers/handlebars.coffee
	assets/scripts/app/templates/repo/settings.hbs
	assets/scripts/app/views/repo/show.coffee
	assets/styles/tabs.sass
	config.ru
2014-08-21 16:02:07 +02:00
Piotr Sarnacki
6aa9771170 Reset value in env_var controller also based on public attr
When we switch from private to public env var, we don't want to set
"***********" as a new value of a var.
2014-08-19 19:42:08 +02:00
Justine Arreche
d1de40d918 Cleaned up typographic dominant styling 2014-08-19 15:29:02 +02:00
Mathias Meyer
3d6cc0cb1f Fix casing for the settings tabs.
This also slighlty improves the copy on the SSH key settings page.
2014-08-18 10:45:13 +02:00
Piotr Sarnacki
94a752592d Revert "Revert "API uses match to filter by slug""
This reverts commit 0a9fdb718c.
2014-08-12 16:05:28 +02:00
Piotr Sarnacki
eecd5187a3 Revert "Revert "Page for displaying caches""
This reverts commit 3d6931c523.
2014-08-12 16:05:21 +02:00
Sven Fuchs
3d6931c523 Revert "Page for displaying caches"
This reverts commit a58688b451.
2014-08-12 15:53:19 +02:00
Sven Fuchs
0a9fdb718c Revert "API uses match to filter by slug"
This reverts commit e286428722.
2014-08-12 15:53:06 +02:00
Piotr Sarnacki
2958717eba Fix settings tab highlighting 2014-08-06 16:38:37 +02:00
Piotr Sarnacki
e286428722 API uses match to filter by slug 2014-08-05 18:14:34 +02:00
Piotr Sarnacki
a58688b451 Page for displaying caches 2014-08-05 18:09:24 +02:00
Piotr Sarnacki
74d20d0149 Ssh key form styling and polishing 2014-08-01 04:10:26 +02:00
Piotr Sarnacki
c9f58718cf Final touches on env vars 2014-08-01 02:50:20 +02:00
Piotr Sarnacki
568c0e14b8 Display settings in repo pane 2014-07-31 12:26:33 +02:00
Piotr Sarnacki
17ed1d94cc First stab at ssh key form 2014-07-31 12:26:19 +02:00
Piotr Sarnacki
745a39eae5 First stab at env vars 2014-07-28 14:19:44 +02:00
Piotr Sarnacki
05489d4a0a Change tabs to work with routes and outlets instead of helpers
When I started working on settings I had a bit different vision on tabs
and I've added that code prematurely. It seems that the best way to go
is to create separate routes and controllers for each tab - that way we
can just rely on Ember.js for customizing, not some custom code in tabs
helpers etc.
2014-07-28 12:42:21 +02:00
Piotr Sarnacki
aa06f3947e Display current repo's URL for lint link 2014-07-22 18:47:45 +02:00
Piotr Sarnacki
00ccb07a49 Fix sync button 2014-06-17 16:39:21 +02:00
Piotr Sarnacki
52dea338ee Refactor handling accounts
This commit changes a way we load accounts for profile view:

* instead of using several views with profile controllers, always use
  one view to render hooks. This is achieved by redirecting to
  individual account page from main profile page (for example when going
  into /profile as a user drogus, the effective address will be
  /profile/drogus)
* instead of using observers to wait for accounts to load I just use
  promise in ProfileRoute#model which effectively ensures that accounts
  are loaded at the time we want to select an individual account
* profile controller is split into profile and account controller
2014-05-28 10:23:39 +02:00
Piotr Sarnacki
3b1cd4f5c4 Bring back afterSignIn and afterSignIn as actions sent to controller
It seems that there is more use cases to cover with this behaviour, for
example when someone enters /auth directly and logs in from there.
2014-05-28 10:22:48 +02:00
Piotr Sarnacki
3544d523d7 Refactor auth code
* don't use __container__
* register it as a factory on container and inject into routes and
  controller
* avoid afterSignIn errors by checking on hooksTarget, ApplicationRoute
  should register itself as a hooksTarget
* keep user info on auth
2014-05-28 10:22:47 +02:00
Piotr Sarnacki
57edf811b7 Add requests page 2014-05-12 11:03:10 +02:00
Mathias Meyer
e093b5b90a Hide "Show More" when there are no more builds.
Fixes travis-ci/travis-ci#1057
2014-05-10 09:39:24 +02:00
Piotr Sarnacki
66e93ed3ab Limit flash messages to 2
(closes travis-ci/travis-ci#1859)
2014-05-06 11:39:36 +02:00
Mathias Meyer
2fa2ea533b Fix repository hint on accounts pages.
Accounts and the profile are currently separate controllers, so
whenever you switched the account, the message would be hidden.
2014-05-06 10:10:36 +02:00
Mathias Meyer
34c07325d3 Add a message for travis-ci.com as well.
Switched the logic around to make a bit more sense with the
configuration conditionals.
2014-03-18 10:44:34 +01:00
Mathias Meyer
aaf777ce9d Show a message pointint to travis-ci.com.
Reduces friction a whee bit in finding your private repositories.
2014-03-18 10:40:30 +01:00