• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

AutarkLabs / open-enterprise / 4264
100%

Build:
DEFAULT BRANCH: dev
Ran 17 Jan 2020 12:58PM UTC
Jobs 5
Files 5
Run time 9min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
4264

push

travis-ci

rkzel
refactor(projects): mv Tabs & Header out of App.js (#1894)

Soon, we will get rid of Issues from the Tabs bar, and when you tap on a
project from Overview, you will see a ProjectDetail view. This
ProjectDetail view will be very similar to the current Issues component,
but will show a back button & filter bar instead of the tabs, and may
have different header text.

Rather than adding more edge-case logic to App.js, I simplified it,
moving this logic to the Content components. Here's what changed:

* rm Header and Tabs from App.js, add to Content components
* extract Tabs logic to own component, easy to use anywhere
* relocate which-Content-to-show logic to Routes component
* clean up props passed to Content components – Issues saw the biggest
  cleanup. Some of the props declared in its propTypes were vestigial,
  and many that were passed from App.js could be looked up in the
  component itself.

While testing this, I discovered a bug, triggered by these steps:

1. add a project
2. visit `/issues`
3. refresh the page
4. cached data loads initially
5. aragonAPI replays info from the blockchain, since current data is not
   more than 100 blocks old and nothing is cached in its `store`
6. data gets reset, so `repos` becomes empty
7. we construct a nonsense GraphQL query for an empty set of repos

The fix for this required one line, so I included it here.

260 of 274 branches covered (94.89%)

Branch coverage included in aggregate %.

609 of 613 relevant lines covered (99.35%)

15.34 hits per line

Jobs
ID Job ID Ran Files Coverage
3 4264.3 (COVERALLS_PARALLEL=true COVERAGE=true) 17 Jan 2020 12:58PM UTC 0
93.88
Travis Job 4264.3
4 4264.4 (COVERALLS_PARALLEL=true COVERAGE=true) 17 Jan 2020 12:59PM UTC 0
97.18
Travis Job 4264.4
5 4264.5 (COVERALLS_PARALLEL=true COVERAGE=true) 17 Jan 2020 01:00PM UTC 0
98.67
Travis Job 4264.5
6 4264.6 (COVERALLS_PARALLEL=true COVERAGE=true) 17 Jan 2020 12:59PM UTC 0
97.74
Travis Job 4264.6
7 4264.7 (COVERALLS_PARALLEL=true COVERAGE=true) 17 Jan 2020 12:59PM UTC 0
100.0
Travis Job 4264.7
Source Files on build 4264
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4264
  • 47f22936 on github
  • Prev Build on dev (#4263)
  • Next Build on dev (#4267)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc