zesty-io / manager-ui

Content platform powering enterprise websites and applications
https://www.zesty.io
Other
39 stars 5 forks source link

Web IDE: Parsley autocomplete is absent #168

Open kakoga opened 3 years ago

kakoga commented 3 years ago

Describe the bug There is no Parsley auto-complete when a user starts typing a Parsley curly braces

To Reproduce Steps to reproduce the behavior:

  1. Navigate to new Manager UI
  2. Select a view file
  3. Start typing a Parsley statement & notice that there is no Parsely autocomplete showing available items, fields, functions, etc.

Expected behavior When coding in Parsley there should be options for completing a Parsley statement once a user types the opening curly braces. For example something like - {{ this. }} should bring up a list of available fields.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information): n/a

Additional context Add any other context about the problem here.

shrunyan commented 3 years ago

@kakoga I believe this has been added. Please check and see if it now meets the expectations you have for this experience.

kakoga commented 3 years ago

@shrunyan it seems to work well except for when I use {{ globals. }} it doesn't return a list of options for me. Is there a way to fix that?

Screen Shot 2021-02-26 at 4 05 10 PM
nibblebot commented 3 years ago

currently autocomplete triggers on ., regardless of globals vs. page it will return the same fields. we might be able to expand this to have different logic for globals so it would return the correct completions

shrunyan commented 3 years ago

@nibblebot as you described, lets expand this to match globals. as well and show the list of global properties.

shrunyan commented 3 years ago

@kakoga what options should be returned with globals.?

d88naimi commented 2 years ago

Removed @nibblebot and assigned @shrunyan since you added this yourself to Upcoming.