vscode-spring-initializr icon indicating copy to clipboard operation
vscode-spring-initializr copied to clipboard

please somehow render any links for the dependencies

Open joshlong opened this issue 7 years ago • 4 comments

the dependencies (sometimes) have things like links to documentation or guides.

Maybe it could be rendered in the 2 line textbox for the suggested dependency?

joshlong avatar Jan 19 '18 13:01 joshlong

[UPDATED] I find the links, e.g.

{
    "id": "security",
    "name": "Security",
    "description": "Secure your application via spring-security",
    "_links": {
        "guide": [
            {
                "href": "https://spring.io/guides/gs/securing-web/",
                "title": "Securing a Web Application"
            },
            {
                "href": "https://spring.io/guides/tutorials/spring-boot-oauth2/",
                "title": "Spring Boot and OAuth2"
            },
            {
                "href": "https://spring.io/guides/gs/authenticating-ldap/",
                "title": "Authenticating a User with LDAP"
            }
        ],
        "reference": {
            "href": "http://docs.spring.io/spring-boot/docs/{bootVersion}/reference/htmlsingle/#boot-features-security",
            "templated": true
        }
    }
},

Are they rendered in WebUI now?

And one thing to mention, even if we have rendered a link in the textbox, it's regarded as plain text. We have to seek for other ways to navigate users to the guides.

Eskibear avatar Jan 22 '18 02:01 Eskibear

Please check the documentation.

Are they rendered in WebUI now?

See https://github.com/spring-io/initializr/issues/353

if we have rendered a link in the textbox, it's regarded as plain text.

FWIW I don't see the value of rendering the link the proposed format. It works very well in the IDE where you have a full screen to browse through the available dependencies and figure out what they do by clicking links on them.

snicoll avatar Jan 22 '18 07:01 snicoll

Is this issue still valid?

We currently have a button for each dependency that opens _links.reference.href, and I believe that within our design simplicity intentions, it achieves what's asked here.

brunovieira97 avatar Jan 21 '24 15:01 brunovieira97

yes, the reference link can be opened as below: image

Actually, there are already buttons for reference, sample, home. This issue should be fine to close. https://github.com/microsoft/vscode-spring-initializr/blob/04f6c3ddb8dc0c511c6fcaf6c864c6fe82e4a684/src/DependencyManager.ts#L138-L162

Eskibear avatar Jan 22 '24 02:01 Eskibear