tomusborne / generateblocks

GenerateBlocks is a small collection of lightweight WordPress blocks that can accomplish nearly anything.
https://generateblocks.com
194 stars 21 forks source link

GB 2.0 - Dynamic Data, improve select UI #1410

Open diggeddy opened 14 hours ago

diggeddy commented 14 hours ago

Description

Couple of issues when using the select options in Dynamic data:

  1. the Meta Key list doesn't refresh if the Source is changed. For example switching between Author Meta and Post Meta, the author meta keys are still shown:

https://github.com/user-attachments/assets/0dd1fd44-ce4c-45d3-a9b3-06348be10702

1.1 it also keeps the selected meta key value after changing the source. Positive here is deleting said key will refresh the list for the current meta source:

https://github.com/user-attachments/assets/fdae3503-2759-488a-8150-e8c5f1e1516c

  1. typing into a select box filters the list of options. Which is nice But it is not clear how to retrieve the whole list, which requires deleting the text from the field: Consider clearing the "search" text if an option has been selected. Or provide a DELETE X option in the select box similar to the Meta Key options.

https://github.com/user-attachments/assets/bf07ddfb-a7fc-4411-b32d-32919b07e4ae

diggeddy commented 12 hours ago

Noticed the delete x don't always work:

https://github.com/user-attachments/assets/8e271a8f-5a8a-47be-a275-83e4acf0d193