Code Monkey home page Code Monkey logo

Comments (5)

AminTi avatar AminTi commented on June 11, 2024 1

Hello everyone, we appreciate your contributions to the community. The issues have been resolved.

from vsts-extension-multivalue-control.

mavsguy482 avatar mavsguy482 commented on June 11, 2024

We are also experiencing this issue. It used to work, and now it does not. The custom value we have entered on the control extension is 75. I attempted to correct this issue by clearing out the value and saving (thus reverting to the default 35 character limit), and then going back into the control extension and setting the value back to 75 and then saving. This made no difference.

The display is showing 30 characters, plus the periods (i.e. ...), so not even the 35 which is supposed to be the default value.

I have confirmed this issue is affecting our multivalue controls in two separate Azure DevOps processes (both within the same organization).

from vsts-extension-multivalue-control.

liyongscb avatar liyongscb commented on June 11, 2024

@AminTi my colleague @AlbertArulPrakash found below:

The error seems to be in the file \src\MultiValueControl.tsx
Line 109: label={this._wrapText(o.length > 30 ? ${o.slice(0, 30)}... : o)}

this line should use the property named _labelDisplayLength which can be configured (default value 35).

from vsts-extension-multivalue-control.

mavsguy482 avatar mavsguy482 commented on June 11, 2024

I think Line 109 should probably just be: label={this._wrapText(o)}
because the _wrapText function handles adding the ellipsis if the length of the label text is greater than the _labelDisplayLength property.

private _wrapText(text: string){
    return text.length > this._labelDisplayLength ? `${text.slice(0,this._labelDisplayLength)}...` : text;
} 

from vsts-extension-multivalue-control.

AlbertArulPrakash avatar AlbertArulPrakash commented on June 11, 2024

I think Line 109 should probably just be: label={this._wrapText(o)} because the _wrapText function handles adding the ellipsis if the length of the label text is greater than the _labelDisplayLength property.

private _wrapText(text: string){
    return text.length > this._labelDisplayLength ? `${text.slice(0,this._labelDisplayLength)}...` : text;
} 

using _labelDisplayLength can be configured (using config files located in config folder. By default it is 35 characters.
Line 34 in same file has the initiator of _labelDisplayLength:
private readonly _labelDisplayLength: number = VSS.getConfiguration().witInputs.LabelDisplayLength ? VSS.getConfiguration().witInputs.LabelDisplayLength : 35;

The azure-devops-extension.json contains the info about this.

from vsts-extension-multivalue-control.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.