forcedotcom / Einstein-GPT-for-Developers

Einstein GPT For Developers
BSD 3-Clause "New" or "Revised" License
33 stars 8 forks source link

LWC invalid syntax for iteration #12

Closed karthikhibiz closed 12 months ago

karthikhibiz commented 1 year ago

Prompt: render list of accounts using html table in lightning web component.

image

Incorrect syntax for iteration: {#each accounts as account}

Expected: <template for:each={accounts} for:item="account">

abrantes23 commented 1 year ago

Additionally, the line of below, should only be displayed when no accounts are found. <p>No accounts found</p>

muenzpraeger commented 1 year ago

Please note that the current version is targeted towards Apex, not LWC (coming later).

jonifazo commented 1 year ago

Hi karthikhibiz, thanks for reporting this issue!

As muenzpraeger noted above, the current version only generates Apex.

Please provide feedback on generated responses using the "EinsteinGPT: History & Feedback" panel in the Output Panel? Our model learns through feedback so the Thumbs Up/Thumbs Down will help us improve the responses that you're seeing as well.

klewis-sfdc commented 12 months ago

Thank you for your feedback @karthikhibiz and @abrantes23.

I would also encourage you to leave a detailed comment in the Comment box for that prompt in the History & Feedback panel. This is the best way for this type of feedback to make its way back to the model.

2023-09-18_14-47-23

And thank you also for sharing re: Apex being generated currently with LWC targeted in future @muenzpraeger and @jonifazo.