Creating LWC's component names it all lowercase unless you change the auto-populated Tag/Service Name
Creating LWC's component names it all lowercase unless you change the auto-populated Tag/Service Name.
I think it would be desirable to not have to change the auto-populated filed value to preserve the camelcase of the name.
Comments (5)
-
repo owner -
reporter - changed component to Lightning Web Components
- marked as enhancement
- marked as minor
-
reporter hmmI by symbolic name If you mean the Tag/Service Name field? if so it makes more sense. I didn't think about the Display Name being what is used in the Salesforce UI as the label.
From a SF perspective it would match the flow of creating things in the UI to keep the order you have and starting the with Display Name. Would make an info or help text popup on the modal clear up confused people like me? Not sure if that's a thing in WebStorm/IntelliJ though.
-
repo owner Yeah, I'm wondering if perhaps I should change it so that you type the tag/service name and have the class name and display name initially auto-generated from that, e.g., the user types a Tag/Service Name value of
testThing
and the dialog auto-populates Class Name asTestThing
and Display Name asTest Thing
, then you tab through those two fields (and Description) and, if desired, change them to something else. Hopefully 90+% of the time you can just accept the generated defaults, though.It's an easy change to make, and I think it would be a smoother workflow for LWC component creation...
-
repo owner - changed status to resolved
Delivered in 2.0.6.0. Now the initial input field is the tag/service name, and the ES6 class name and display name are derived from it.
- Log in to comment
Brett, I think this may be a UX issue because you're starting by entering the display name instead of a symbolic name. In your example if you type a display name of
Test Thing
, the symbolic names are initialized properly:It's arguable, though, that perhaps you should type the symbolic name first and try to derive a display name from that. Thoughts?