Skip to content

Feature: Creating field – different UI for option<> #704

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

Open
2 tasks done
FilipJirsak opened this issue Mar 3, 2025 · 0 comments
Open
2 tasks done

Feature: Creating field – different UI for option<> #704

FilipJirsak opened this issue Mar 3, 2025 · 0 comments
Labels
feature New feature or request triage This issue is new

Comments

@FilipJirsak
Copy link

Is your feature request related to a problem?

When creating a new field (Table designerCreate field), optional fields are specified by selecting the desired type in the Field kind dropdown and then manually wrapping it with option<>, or by selecting option<> first and then manually specifying the desired type inside. The same approach is required for set<> and array<>. However, for record<>, predefined record types for all tables are already available in the dropdown.

Describe the solution

It would be useful if I could simply select the specific type from the dropdown and use checkboxes to apply option<>, set<>, or array<>, similar to how the readonly option is handled.

There would be no issue with the order of elements — array<> and set<> are mutually exclusive, and option<> is always the outermost wrapper. This means that if I check both option<> and array<>, it would always result in option<array<>>.
If nesting structures like arrays within arrays are allowed (e.g., option<array<array<set<string>>>>), users would still need to manually input such exceptional cases, just as they do now. (Provided that SurrealQL even supports such constructs.)

Have you considered contributing this feature yourself?

No response

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@FilipJirsak FilipJirsak added feature New feature or request triage This issue is new labels Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request triage This issue is new
Projects
None yet
Development

No branches or pull requests

1 participant