Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support embedding Build Monitor in other dashboards #223

Open
tinu1976ch opened this issue May 20, 2016 · 2 comments
Open

Support embedding Build Monitor in other dashboards #223

tinu1976ch opened this issue May 20, 2016 · 2 comments

Comments

@tinu1976ch
Copy link

tinu1976ch commented May 20, 2016

hello out there,

why has v1.9 another view than v1.6? I'm working with iFrames to display different machines.

so at the moment I always use the 1.6+build.164 instead of 1.9+build.201605021413 (reason see attached image)

on v1.9 I have to scale text to 2 that I can nearly read the text, but I have to scroll
on v1.6 i have to scale text to 0.3 to fit the bars in the frame and no scroll

possible to adapt the view of v1.6 to v1.9?

20160520_152446 build monitor view - problem with newer version

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/34423127-support-embedding-build-monitor-in-other-dashboards?utm_campaign=plugin&utm_content=tracker%2F580790&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F580790&utm_medium=issues&utm_source=github).
@tinu1976ch tinu1976ch changed the title different views view of v1.9 is different from v1.6 May 20, 2016
@jan-molak
Copy link
Member

Ha! Embedded mode is a use case I haven't anticipated for :-)

OK, so there's a couple of things at play here:

  • With the introduction of version 1.9, the default font size is calculated based on the size of the viewport (which should make sense as Build Monitor is designed to be displayed on large screens) - because of that, the size of the iframe affects the size of the viewport so you need to set the font size factor to "2", as per your screenshot.
  • Version 1.6 had a CSS bug. The bug forced Build Monitor to squeeze all the jobs one requested it to display on one screen, even if it broke the layout and made the whole thing look pretty ugly. That's why you don't get the scrollbar on the second screenshot, but get cropped header and job names.
  • I introduced the scrollbar because on some installations people have several hundred (!) jobs displayed on one screen and without Grouping: Accumulated (worst result) Folder Status #130 it seemed like a sensible temporary workaround. In most scenarios, the scrollbars shouldn't appear because most people display fewer than 30 jobs per screen.

It seems like the best way to solve your problem though would be to introduce an "embedded" mode, with no navigation UI (which means the display would have to be configurable using URL parameters perhaps? #54) and just the job status.

This doesn't solve the problem of too many jobs though. To get rid of this one we'd probably need a better support for CloudBees Folders (#130) to display accumulated status of a group of jobs.

Thoughts?

Best,
Jan

@jan-molak jan-molak changed the title view of v1.9 is different from v1.6 Support embedding Build Monitor in other dashboards Aug 2, 2016
@Anuubis
Copy link

Anuubis commented Aug 30, 2016

I also really would appreciate this fully embeddable mode. I would only need the header and footer tags removed to fit into our dashboards.

Since our dashboard and monitoring service are not under the same domain I cannot inject css into the iframe and do it myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants