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

Fix style #8475

Merged
merged 5 commits into from
Nov 13, 2024
Merged

Fix style #8475

merged 5 commits into from
Nov 13, 2024

Conversation

martmull
Copy link
Contributor

@martmull martmull commented Nov 13, 2024

Before

image

After

image

@martmull martmull force-pushed the fix-nested-fields-workflow-action-design branch from 7dd8b3e to d6437de Compare November 13, 2024 11:42
@martmull martmull marked this pull request as ready for review November 13, 2024 11:42
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Improved the visual design and layout of workflow action forms, focusing on better organization and readability of nested fields.

  • Added noMargin prop to HorizontalSeparator in /packages/twenty-front/src/modules/auth/sign-in-up/components/HorizontalSeparator.tsx for flexible spacing control
  • Enhanced nested field containers in /packages/twenty-front/src/modules/workflow/components/WorkflowEditActionFormServerlessFunction.tsx with background, borders, and proper spacing
  • Increased label font size from 'xs' to 'md' in /packages/twenty-front/src/modules/workflow/search-variables/components/VariableTagInput.tsx for better readability
  • Added visual separation between root-level fields using HorizontalSeparator for clearer form structure

3 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile

width: 100%;
`;

const StyledSeparatorContainer = styled.div`
const StyledSeparatorContainer = styled.div<{ noMargin: boolean }>`
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Type definition should include all props from HorizontalSeparatorProps since visible and text could be needed for styling

@@ -13,6 +12,7 @@ import { useDebouncedCallback } from 'use-debounce';
import { getDefaultFunctionInputFromInputSchema } from '@/workflow/utils/getDefaultFunctionInputFromInputSchema';
import { FunctionInput } from '@/workflow/types/FunctionInput';
import { mergeDefaultFunctionInputAndFunctionInput } from '@/workflow/utils/mergeDefaultFunctionInputAndFunctionInput';
import { HorizontalSeparator } from 'packages/twenty-front/src/modules/auth/sign-in-up/components/HorizontalSeparator';
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Import path should use relative path '@/auth/sign-in-up/components/HorizontalSeparator' instead of full path

): ReactNode | undefined => {
isRoot = true,
): ReactNode[] => {
const displaySeparator = (functionInput: FunctionInput) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

could go outside the component maybe?

@martmull martmull enabled auto-merge (squash) November 13, 2024 13:25
@martmull martmull merged commit ba79a1d into main Nov 13, 2024
19 checks passed
@martmull martmull deleted the fix-nested-fields-workflow-action-design branch November 13, 2024 13:32
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.

2 participants