Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Tim Jacomb
    @timja
    cc @janfaracik
    hervelemeur
    @hervelemeur:matrix.org
    [m]
    FTR, got some funny looking "+ Add" buttons on https://infra.ci.jenkins.io/configureClouds/ (v2.364, FF v103.0.2)
    Is this known or should I open an issue?
    Alexander Brandes
    @NotMyFault
    I didn't see that before yet :eyes:
    But as little pointer, the ec2 plugin uses the logic from the credentials plugin for buttons (afaik)
    Alexander Brandes
    @NotMyFault
    Yeah, something adds a yui-button class on top of it, hence we have a button on a button. Stripping it via DOM looks as intended and uses the new jenkins-button class: https://i.imgur.com/EYs10Jm.png
    3 replies
    Hrushikesh
    @hrushi2001:matrix.org
    [m]

    Hello world. I'm currently using the data-table plugin to display the the maintenance results of caches on Jenkins controller.

    The problem I'm currently facing is I'm loading all the data at a time (100's of data) and displaying it in the table. Is there a way to load the data when required and display it in the table?

    The link to my PR is jenkinsci/git-plugin#1277

    The lastest commits contains the code regarding the data-table.

    Ulli Hafner
    @uhafner:matrix.org
    [m]
    This is supported by DataTables but I did not yet provide a Java API for such a use case. In order to use that functionality you need to write the Java API on your own.
    1 reply
    Ulli Hafner
    @uhafner:matrix.org
    [m]
    Do we have some error logging when symbols do not work and are shown as a cross? I tried to use a custom symbol in an action: https://github.com/jenkinsci/code-coverage-api-plugin/pull/453/files
    Alexander Brandes
    @NotMyFault
    No(t yet), the symbol format is symbol-name plugin-artifactId, if one is missing or wrong, the cross is displayed
    Ulli Hafner
    @uhafner:matrix.org
    [m]
    No, that is not possible, jelly is rendered on the server side. You need to implement that part on the client side using JS.
    2 replies
    Ulli Hafner
    @uhafner:matrix.org
    [m]
    Yes exactly. You can have a look into the table.js file of the data tables plug-in
    Ulli Hafner
    @uhafner:matrix.org
    [m]
    When I am switching a theme from light to dark (using the MacOS display toggle) then Jenkins automatically switches the theme in the browser. How can I catch a corresponding event in JS that indicates that Jenkins changed the theme so that I can redraw the ECharts canvas with the new colors?
    1 reply
    Ulli Hafner
    @uhafner:matrix.org
    [m]
    Yes, I found those pointers as well. But if Jenkins does not also switch the theme then handling those OS events only in one Jenkins component is wrong. Then I have charts in black but the rest still is light. So I need to catch a corresponding Jenkins event: when Jenkins switches the theme, then I need to update my charts. So OS toggle -> Jenkins toggle -> Component toggle . Do we have those events?
    Tim Jacomb
    @timja
    I have some WIP for this but haven't finished it
    not specifically for this but more exposing more info about the selected theme
    to make it easier to hook other libraries in
    Ulli Hafner
    @uhafner:matrix.org
    [m]
    Yes exactly, that binds the proxy with the Java class
    halkeye
    @halkeye:g4v.dev
    [m]
    I think https://community.jenkins.io/t/is-automatic-installation-of-loading-plugin-extensions-normal/3549 might be a bug of some sort. Should I ask for a bug to get created
    (enter on search shouldn't install)
    Daniel Beck
    @daniel-beck
    Is the naming scheme of CSS classes documented somewhere? Asking because I thought classes for use in plugins are prefixed jenkins-!- like in https://weekly.ci.jenkins.io/design-library/Colors/ or https://weekly.ci.jenkins.io/design-library/Spacing/ ; but https://weekly.ci.jenkins.io/design-library/Buttons/ is only jenkins-. When is ! added, and when is it not?
    Tim Jacomb
    @timja
    jenkinsci/credentials-plugin#364 in case anyone has any feedback
    @daniel-beck no not that I know of, I raised an issue about it here: jenkinsci/design-library-plugin#58
    Daniel Beck
    @daniel-beck
    @timja thanks!
    Daniel Beck
    @daniel-beck
    What's the expectation for plugins that use config-disableBuild (now) incorrectly? The UI is very weird when in a config form, and it's not possible to enable affected jobs through the main config form anymore once disabled. Should this control render its output conditionally based on whether it's in an app bar or not?
    halkeye
    @halkeye:g4v.dev
    [m]
    Tim Jacomb
    @timja
    @halkeye:g4v.dev what are you trying to do to make it button like?
    i.e. what's wrong with it atm?
    halkeye
    @halkeye:g4v.dev
    [m]
    i donno, the PR is like a year old, and preferably i don't want to use YUI if i don't have to. I think I copied it from the ec2 plugin at the time.
    Tim Jacomb
    @timja
    makeButton is a function you can call on it if its being added dynamically but you shouldn't need to
    halkeye
    @halkeye:g4v.dev
    [m]
    I think its just a standard button on the cloud agents page to create a new agent manually
    Tim Jacomb
    @timja
    halkeye
    @halkeye:g4v.dev
    [m]
    awesome~
    halkeye
    @halkeye:g4v.dev
    [m]
    any examples of new windows/popups or modals or anything? Right now filling the select takes like a minute because there are so many image options, and I want to make it a plain text box with a popup to select via select/autocomplete/whatever
    i will have to use https://weekly.ci.jenkins.io/design-library/TextBox/ for the other stuff though
    that page is spitting out TypeError: e.getAttribute is not a function though
    Tim Jacomb
    @timja
    credentials plugin uses the yui dialog
    pretty yuck using
    nothing modern has been done yet afaik
    halkeye
    @halkeye:g4v.dev
    [m]
    i might just do window.open or something, i think most people will know an id or slug, and only a few would want to search. We will see
    halkeye
    @halkeye:g4v.dev
    [m]
    apparently I wanted button to trigger a menu
    Ulli Hafner
    @uhafner:matrix.org
    [m]

    I'm using Bootstrap for dialogs, it works quite well.

    Are you planning to add a button as a new empty row? This looks like an uncommon UI pattern.

    Tim Jacomb
    @timja
    it's weird but ec2 plugin already does it
    Ulli Hafner
    @uhafner:matrix.org
    [m]
    Hmm, actions that create new items (or work on multiple rows) should be placed outside a table
    halkeye
    @halkeye:g4v.dev
    [m]
    i can certainly move it outside the table, but the ec2 version triggers a yui menu (I think) that has a list of clouds
    I'm wondering if it should be added to core, so there's not a ec2 specific one, and a do specific one, if someone has a hybrid setup