Skip to content
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

Section visibility #199

Merged
merged 17 commits into from
Oct 29, 2023
Merged

Section visibility #199

merged 17 commits into from
Oct 29, 2023

Conversation

atmonshi
Copy link
Member

@atmonshi atmonshi commented Oct 28, 2023

WIP.
Allow to show or hide sections based on another field value

  • refactor forms frontend designer
  • allows to extend the designer the same way for Schemata
  • prevent adding conditions for fields in the current section
  • more testing with ✅ tabs and 🪄wizard
    (currently wizard is not reactive and needs some magic unless adding skippable)
  • add docs
  • add loading indicator
  • add loading indicator docs

Quick demo:

Screen.Recording.2023-10-28.at.6.36.35.PM.mov

@what-the-diff
Copy link

what-the-diff bot commented Oct 28, 2023

PR Summary

  • Database Table Modification - Section
    A new feature is being added to allow more customization in each section by adding an Option column to the Sections database table.

  • Translation Updates In Arabic
    Some new texts have been labelled and translated into Arabic to make the product more responsive for Arabic speaking users.

  • Migration Updates
    Our system is now aware of the new change (Option added to Sections), so whenever we change our database structures, it won't cause any problems.

  • Additional Functionality Cutomizing Visibility
    We've developed a way to adjust how much of a section is visible, giving more control over how the system looks and functions.

  • Old Function Removal
    We got rid of an outdated function that was no longer needed, which should make the system slightly more efficient.

  • Changes in Data Selection Components
    Some components used to select data have been revised to automatically update based on live data, providing real-time interactivity.

  • Resource Modification
    A feature (HasOptions trait) is added to our resources to check if they have customization options available, helping to improve user configuration of resources.

  • Form Filling
    To enforce good practices in designing forms, we're using a Designer trait in the relevant file. This makes it easier to achieve consistency and efficiency while creating new forms.

@atmonshi
Copy link
Member Author

Hopefully, I am done and did a good job :), you tell me.

@atmonshi atmonshi merged commit efa053e into 2.x Oct 29, 2023
2 checks passed
@atmonshi atmonshi deleted the section-visibility branch October 29, 2023 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hide empty sections reactively or if it empty from fields conditionally show/hide sections
1 participant