Commit Graph

528 Commits

Author SHA1 Message Date
Piotr Sarnacki
1cd460e020 Experimental implementation of travis-cmd 2015-11-20 19:09:34 +01:00
Piotr Sarnacki
bd3b62c264 Fix handling branches
This commit fixes handling of branches when using both V3 and V2. The
changes include:

  * proper definition of relationships that reflect V3 structure, so for
    example build belongs to a branch
  * setting up inverse records for some of the relationships. without
    doing that Ember Data can handle relationships in a surprising way,
    for example if the same record is referenced in 2 places in a
    belongsTo relationship, Ember Data will remove one of the references
    without proper inverse definitions
  * we need to add id when extracting branch as a relationship. Ember
    Data expects all of the relationships to have an id
  * lastly, we need to mimic the structure of the V3 API in V2 payloads,
    so for a build payload I'm now creating a branch record
2015-11-18 17:00:34 +01:00
Piotr Sarnacki
310627cc55 Sort repos in repos-list component, not in controller 2015-11-09 13:46:55 +01:00
Piotr Sarnacki
2a2b3f018b Use lastBuild from defaultBranch on repository
One thing that is not standard here is a serializer for branch, which
uses @href as id. At this point branches don't have ids and ember-data
needs one, so using @href is the easiest way.
2015-11-09 13:46:54 +01:00
Piotr Sarnacki
6992a79a93 Create adapters and serializers working with v3 and v2 APIs
This commit adds adapters and serializers for v3, but also a fallback
serializer for v2, which allows to handle v2 and v3 payloads at the same
time. This is needed, because when we use v3 endpoint for one of the
models (in this case repo), we can also get embedded records of other
types (like branch or build).
2015-11-09 13:46:54 +01:00
Lisa P
0f6230fddc fix link-to in branches template 2015-10-29 17:56:29 +01:00
Lisa P
625e23228a put eye svg into component 2015-10-26 15:22:13 +01:00
Lisa P
512450b7ce tweak icon iris and toolip 2015-10-26 13:48:34 +01:00
Lisa P
8c911fcc2c add eye icon and tooltip to profile token toggle 2015-10-26 12:34:57 +01:00
Lisa P
5f00526700 add toggle functionality to profile token 2015-10-23 17:52:15 +02:00
Lisa P
64a580f299 rewrite icon template logic 2015-10-23 12:17:26 +02:00
Lisa P
1545dbd9d1 animate transmission waves 2015-10-21 18:39:54 +02:00
Lisa P
5c99abfafc add hover colors and rewrite tower as component 2015-10-21 16:55:44 +02:00
Lisa P
9fa7e408cd make seen broadcasts work with localstorage 2015-10-21 10:27:29 +02:00
Lisa P
558f6e64c0 remove some things 2015-10-21 10:27:28 +02:00
Lisa P
1bbceeaf13 rewrite topbar to fix in broadcasts, plus some cleanup 2015-10-21 10:27:28 +02:00
Lisa P
bb544f8a7d only show tower when logged in 2015-10-21 10:26:30 +02:00
Lisa P
9c403da804 style broadcasts and toggle them 2015-10-21 10:26:30 +02:00
Lisa P
f33161f95e start working on broadcasts 2015-10-21 10:26:30 +02:00
carlad
02e2f84209 remove link to stack overflow in help menu 2015-10-19 18:11:35 +02:00
Lisa P
2e39139da3 fix dashbaord after api cleanup, change some interaction elements 2015-10-14 14:57:39 +02:00
Lisa P
860e89dd86 fix owner page after api cleanup 2015-10-14 14:57:39 +02:00
Lisa P
3306e5a7e6 Merge pull request #398 from travis-ci/fix-404
Fix 404
2015-10-13 13:02:30 +02:00
Lisa P
3c2fbc067e make give 404 a matchable route and redirect from owner if necessary 2015-10-13 12:38:22 +02:00
Lisa P
f9ac2e6a76 remove spacing on build list 2015-10-08 15:34:36 +02:00
Lisa P
1ba4cf25d0 filter for push and api builds on branches 2015-10-08 15:28:17 +02:00
Lisa P
1d71f943ca really fix build tile links 2015-10-07 18:01:31 +02:00
Lisa P
24032d4040 fix status coloring on owner page 2015-10-07 17:37:53 +02:00
Lisa P
b7215bbeaf fix sync button trigger icon on profile page 2015-10-07 17:34:09 +02:00
Lisa P
4da602c632 fix build tile links 2015-10-07 17:29:17 +02:00
Lisa P
a9c39ceab6 update icons for running builds in sidebar 2015-10-07 15:28:06 +02:00
Lisa P
fedc6acec1 take out dropup on build tiles and use title attribtue instead 2015-10-06 00:54:08 +02:00
Lisa P
12ac35a123 fix double link in build tiles, better error message for owner 2015-10-05 22:44:29 +02:00
Lisa P
e4e29ff418 add component for landing page builds + styles 2015-10-05 17:26:45 +02:00
Lisa P
a6ca21f03d remove some deprecation errors 2015-10-02 14:49:10 +02:00
Lisa P
d07afa8b6f also remove trigger build from branches without builds 2015-09-30 18:27:39 +02:00
Lisa P
3a366a234a refactor new styles 2015-09-29 18:15:29 +02:00
Lisa P
6e7a27da87 take out interactive elements for now 2015-09-29 16:21:00 +02:00
Lisa P
1a1fedfb74 fix last_branch fields on dashbaord 2015-09-29 15:23:44 +02:00
Lisa P
76c9b368cf fix long repo and branch name issue 2015-09-28 17:25:20 +02:00
Lisa P
8562ac894c redo sync button on dashboard 2015-09-28 16:44:32 +02:00
Lisa P
e350f7bb04 fix dashboard avatars and filter padding 2015-09-28 14:41:25 +02:00
Lisa P
c38a64bc2f fix links in dashboard templates 2015-09-28 14:12:04 +02:00
Lisa P
ffb635b846 switch back to default branch 2015-09-22 17:57:57 +02:00
Lisa P
a964272df2 change some styles on dashboard 2015-09-22 17:49:11 +02:00
Lisa P
3ef64f0910 start redoing dashboard 2015-09-21 18:56:00 +02:00
Lisa P
ace639adc0 update icons on owner page 2015-09-18 15:25:25 +02:00
Lisa P
33917bf73c try to refactor coloring mixins 2015-09-18 15:02:07 +02:00
Lisa P
d44f020dec fix tab highlighting 2015-09-18 12:13:18 +02:00
Lisa P
732f572c6e make sidebar icons smaller 2015-09-17 16:42:08 +02:00