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

feat(v2/logic): render empty and populated logic page, add mobile variant of builder sidebar #3390

Merged
merged 42 commits into from
Mar 9, 2022

Conversation

karrui
Copy link
Contributor

@karrui karrui commented Feb 8, 2022

Don't get shooketh by line changes... ~900 of those lines are for a single .svg file T_T

Problem

This PR adds components required to render the empty and populated logic pages.
Note that:

In addition, a few new improvements snuck in:

  • feat: add mobile variant of builder sidebar (bottom bar?)
  • feat: add mobile styling to builder design view
  • feat(theme): add Divider custom theme

Related to #3365

Solution

Features:

  • Add components required to render initial admin form logic page
    • LogicContent, with subcomponents
      • NewLogicBlock: wip component (pending dropdown/multiselect) to render creation of new logic block
      • LogicBlock to render current form logic blocks
    • EmptyLogic component to render page when there are no form logic blocks to display yet.

Screenshots

New stories have been added to show various states, along with mobile/desktop divide.

@karrui karrui changed the title feat(v2/logic): render empty and populated logic page feat(v2/logic): render empty and populated logic page, add mobile variant of builder sidebar Feb 8, 2022
@karrui karrui requested review from mantariksh and tshuli February 8, 2022 10:13
@karrui
Copy link
Contributor Author

karrui commented Feb 23, 2022

Will update to fix file renames

# Conflicts:
#	frontend/src/features/admin-form-builder/FormBuilderPage.tsx
#	frontend/src/features/admin-form-builder/common/components/BuilderContent.tsx
#	frontend/src/features/admin-form-builder/logic/BuilderLogic.tsx
#	frontend/src/features/admin-form/create/builder-and-design/components/BuilderAndDesignDrawer/BuilderAndDesignDrawer.tsx
#	frontend/src/features/admin-form/create/builder-and-design/components/BuilderAndDesignDrawer/EditFieldDrawer/EditFieldDrawer.tsx
#	frontend/src/features/admin-form/create/common/components/BuilderSidebar/MobileBuilderSidebar.tsx
#	frontend/src/features/admin-form/create/common/components/BuilderSidebar/SidebarMobileTab.tsx
#	frontend/src/features/admin-form/create/constants.ts
#	frontend/src/features/admin-form/create/logic/BuilderLogic.stories.tsx
#	frontend/src/features/admin-form/create/logic/BuilderLogicContext.tsx
#	frontend/src/features/admin-form/create/logic/components/EmptyLogic.tsx
#	frontend/src/features/admin-form/create/logic/components/LogicContent/LogicBlock/FieldLogicBadge.tsx
#	frontend/src/features/admin-form/create/logic/components/LogicContent/LogicBlock/LogicBadge.tsx
#	frontend/src/features/admin-form/create/logic/components/LogicContent/LogicBlock/LogicBlock.tsx
#	frontend/src/features/admin-form/create/logic/components/LogicContent/LogicBlock/LogicConditionValues.tsx
#	frontend/src/features/admin-form/create/logic/components/LogicContent/LogicBlock/index.ts
#	frontend/src/features/admin-form/create/logic/components/LogicContent/LogicContent.tsx
#	frontend/src/features/admin-form/create/logic/components/LogicContent/NewLogicBlock/NewLogicBlock.tsx
#	frontend/src/features/admin-form/create/logic/components/LogicContent/NewLogicBlock/index.ts
#	frontend/src/features/admin-form/create/logic/components/LogicContent/index.ts
#	frontend/src/features/admin-form/create/logic/components/LogicSvgr.tsx
#	frontend/src/features/admin-form/create/logic/constants.ts
#	frontend/src/features/admin-form/create/logic/utils.ts
# Conflicts:
#	frontend/src/features/admin-form/create/builder-and-design/utils.ts
Copy link
Contributor

@mantariksh mantariksh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some thoughts

@karrui karrui requested a review from mantariksh March 1, 2022 07:33
@karrui karrui merged commit c5fd13c into form-v2/develop Mar 9, 2022
@karrui karrui deleted the form-v2/logic/logic-layout-1 branch March 9, 2022 02:39
@justynoh justynoh mentioned this pull request Oct 5, 2022
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.

3 participants