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

Generate i18n mouseover/tooltip help from JDL comments #6797

Closed
agoncal opened this issue Dec 4, 2017 · 7 comments
Closed

Generate i18n mouseover/tooltip help from JDL comments #6797

agoncal opened this issue Dec 4, 2017 · 7 comments

Comments

@agoncal
Copy link
Contributor

agoncal commented Dec 4, 2017

Overview of the issue

When filling a JHipster form, we rely on a label and a entry field (textfield, combo...). But sometimes labels are not enough to give explanations. It would be good to generate some kind of i18n mouseover/tooltip help next to the label.

Motivation for or Use Case

JDL allows comments. So when we describe our model using JDL, this is what we can do:

/* This entity is complex and needs some documentation
*/
entity Complex {
    /** complex attribute */
    complexAttr1 String,
    /** another complex attribute */
    complexAttr2 Integer
}

These comments will be added to the Javadoc of the Entity, as well as the REST API

/**
 * This entity is complex and needs some documentation
 */
@ApiModel(description = "This entity is complex and needs some documentation")
@Entity
public class Complex implements Serializable {

    /**
     * complex attribute
     */
    @ApiModelProperty(value = "complex attribute")
    private String complexAttr1;

    /**
     * another complex attribute
     */
    @ApiModelProperty(value = "another complex attribute")
    private Integer complexAttr2;

For each comment, it would be great to generate an internationalized tooltip next to the label.

@deepu105
Copy link
Member

deepu105 commented Dec 4, 2017 via email

@agoncal
Copy link
Contributor Author

agoncal commented Dec 4, 2017

@deepu105 i18 would not be that of a PITA. The i18n Json file could look like something like this, WDYT ?

{
    "commentsApp": {
            "complexAttr1": "Complex Attr 1",
            "complexAttr2": "Complex Attr 2",
            "noHelpAttr": "No Help Attr",
            "help": {
                "complexAttr1": "complex attribute",
                "complexAttr2": "another complex attribute"
            },
}

As for the bandwidth, why don't you label issues (like this one) differently ? This way they could be used during hackathons or people wanting to contribute. Issues can also be used as a reminder if you use a special label. WDYT ?

@deepu105
Copy link
Member

deepu105 commented Dec 4, 2017 via email

@jdubois
Copy link
Member

jdubois commented Dec 4, 2017

I'm sorry but I agree with @deepu105 we just have too many opened issues at the moment to do new features. That's really annoying, I know.
As soon as we have more than 20 tickets (one page on GitHub is 25 tickets) we always get lost, and mess up things.

@agoncal
Copy link
Contributor Author

agoncal commented Dec 4, 2017

@jdubois I like the idea of "help wanted" label. You can tag issues like this ("good idea, but not crucial") and leave the community to implement them while the core team focuses on bugs and "important" issues. Then, you just have to filter them out.

Recently I've created a few "help wanted" kind of issues. Tag them, leave them open as a reminder, filter them out... and give the community a bit of time to implement them (I wouldn't mind implementing a few actually, I need them)

@jdubois
Copy link
Member

jdubois commented Dec 4, 2017

Of course I'd love to have more contributions from "non core team" people

I'm OK with that as long as we put some new rules, which I should submit as a vote to the core team:

  • "help wanted" issues should be for "easy to moderate" tickets, as we already know complex bugs won't be solved by non-core team people
  • they should not have big impacts on the project: they improve something (like an Angular component), but they don't have impacts on several generator options (as those are much more complex to test)
  • solution should be one PR, that will be easy to review by the core team (otherwise, do several tickets)
  • they are kept opened for 2 months, and are closed after that if there is no activity

@agoncal
Copy link
Contributor Author

agoncal commented Dec 4, 2017

@jdubois seems fair to me.

Dufgui added a commit to Magillem/generator-jhipster that referenced this issue Jan 14, 2018
Dufgui added a commit to Magillem/generator-jhipster that referenced this issue Jan 16, 2018
Dufgui added a commit to Magillem/generator-jhipster that referenced this issue Jan 18, 2018
Add tooltip based on javadoc field

Fix jhipster#6797

add angularjs

add angularjs
Dufgui added a commit to Magillem/generator-jhipster that referenced this issue Jan 19, 2018
Dufgui added a commit to Magillem/generator-jhipster that referenced this issue Jan 19, 2018
Dufgui added a commit to Magillem/generator-jhipster that referenced this issue Jan 19, 2018
Add tooltip based on javadoc field

Fix jhipster#6797
Dufgui added a commit to Magillem/generator-jhipster that referenced this issue Jan 19, 2018
Add tooltip based on javadoc field
Fix template inline

Fix jhipster#6797
Dufgui added a commit to Magillem/generator-jhipster that referenced this issue Jan 20, 2018
Add tooltip based on javadoc field
Fix template inline
Fix without translation

Fix jhipster#6797
Dufgui added a commit to Magillem/generator-jhipster that referenced this issue Jan 20, 2018
Add tooltip based on javadoc field
Fix template inline
Fix without translation
Fix integration test on react

Fix jhipster#6797
Dufgui added a commit to Magillem/generator-jhipster that referenced this issue Jan 21, 2018
Add tooltip based on javadoc field
Fix template inline
Fix without translation
Fix integration test on react

Fix jhipster#6797
Dufgui added a commit to Magillem/generator-jhipster that referenced this issue Jan 21, 2018
Add tooltip based on javadoc field
Fix template inline
Fix without translation
Fix integration test on react

Fix jhipster#6797
Dufgui added a commit to Magillem/generator-jhipster that referenced this issue Jan 21, 2018
Add tooltip based on javadoc field
Fix template inline
Fix without translation
Fix integration test on react

Fix jhipster#6797
Dufgui added a commit to Magillem/generator-jhipster that referenced this issue Jan 21, 2018
Add tooltip based on javadoc field
Tooltip are available in detail and edit view in angular, angularjs and
reactjs

Fix jhipster#6797
@jdubois jdubois added this to the 4.14.0 milestone Jan 30, 2018
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