-
Notifications
You must be signed in to change notification settings - Fork 61
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(application-system): Refactoring half of divider field into a new field #17273
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThis pull request introduces significant updates to the form field system, focusing on the addition of a new Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17273 +/- ##
=======================================
Coverage 35.69% 35.69%
=======================================
Files 6921 6922 +1
Lines 148507 148519 +12
Branches 42409 42416 +7
=======================================
+ Hits 53007 53012 +5
- Misses 95500 95507 +7 Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Datadog ReportAll test runs ✅ 10 Total Test Services: 0 Failed, 10 Passed Test ServicesThis report shows up to 10 services
🔻 Code Coverage Decreases vs Default Branch (2) |
…and.is into fix/divider-field-refactor
…and.is into fix/divider-field-refactor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 4
🧹 Nitpick comments (12)
libs/application/ui-fields/src/lib/DividerFormField/DividerFormField.tsx (1)
11-12
: Consider adding explicit type for destructured propsWhile the implementation is correct, we can improve type safety.
Apply this diff to add explicit typing:
-> = ({ field }) => { - const { useDividerLine, marginTop, marginBottom } = field +> = ({ field }: { field: DividerField }) => { + const { useDividerLine, marginTop, marginBottom }: { + useDividerLine?: boolean; + marginTop?: number; + marginBottom?: number; + } = fieldlibs/application/ui-fields/src/lib/TitleFormField/TitleFormField.tsx (1)
9-14
: Props interface looks good but could be more explicitThe TypeScript interface is well-defined, but consider extracting it to a separate interface for better reusability and documentation.
+interface TitleFormFieldProps { + field: TitleField + application: Application +} + -export const TitleFormField: FC< - React.PropsWithChildren<{ - field: TitleField - application: Application - }> -> = ({ field, application }) => { +export const TitleFormField: FC<TitleFormFieldProps> = ({ field, application }) => {libs/application/templates/health-insurance/src/forms/MissingInfoForm.ts (1)
41-43
: Consider consistent styling across title fieldsWhile the title field implementation is correct, other files in this PR set a specific color (e.g., 'black' or 'blue400') for their title fields. Consider whether these title fields should follow the same styling pattern for consistency.
buildTitleField({ title: m.missingInfoAnswersTitle, + color: 'blue400', }),
Also applies to: 59-61
libs/application/templates/passport/src/forms/ParentB.ts (2)
9-9
: Remove unused importbuildTitleField
The
buildTitleField
is imported but never used in this file. Consider either using it or removing the import.
56-57
: Consider adding a title field for better section separationSince the PR's objective is to split divider functionality into separate title and divider fields, consider adding a
buildTitleField
here if a title is needed for this section.libs/application/templates/driving-license/src/forms/draft/subSectionTempInfo.ts (2)
10-10
: Remove unused importbuildTitleField
The
buildTitleField
is imported but not utilized in the file. Either implement it or remove the unused import.
50-51
: Consider replacing divider with title fieldThe divider is being used between key-value fields. Since we're splitting divider functionality, consider if a title field would be more appropriate here for better semantic structure.
libs/application/templates/health-insurance/src/forms/HealthInsuranceForm/formerInsuranceSection.ts (2)
11-11
: Remove unused importbuildTitleField
The
buildTitleField
is imported but not used. Remove it if not needed.
93-94
: Consider semantic separation using title fieldThe divider is used to separate form sections. Consider using
buildTitleField
for better semantic structure, aligning with the PR's objective of splitting divider functionality.libs/application/templates/document-provider-onboarding/src/forms/ReviewApplication.ts (1)
31-31
: Consider extracting color value to a constantThe color value 'blue400' is repeated multiple times. Consider extracting it to a constant or theme variable for better maintainability.
+ const SECTION_TITLE_COLOR = 'blue400' // Then use it in title fields buildTitleField({ title: m.applicantTitle, - color: 'blue400' + color: SECTION_TITLE_COLOR })Also applies to: 54-56, 75-78, 96-96
libs/application/templates/document-provider-onboarding/src/forms/DocumentProviderApplication.ts (1)
Line range hint
187-261
: Consider reducing code duplication in confirmation sectionThe confirmation section duplicates many field definitions from previous sections. Consider refactoring to reuse the field definitions:
const createContactFields = (prefix: string, messages: typeof m) => [ buildTextField({ id: `${prefix}.name`, title: messages[`${prefix}Name`], placeholder: messages[`${prefix}NamePlaceholder`], }), // ... other fields ] // Usage in confirmation section buildTitleField({ title: m.applicantSection, color: 'currentColor' }), ...createContactFields('applicant', m), buildTitleField({ title: m.administrativeContactSection, color: 'currentColor' }), ...createContactFields('administrativeContact', m), // ... etclibs/application/ui-fields/src/lib/TitleFormField/TitleFormField.stories.mdx (1)
44-44
: Fix preposition in usage descriptionThe sentence should use "in" instead of "into" for better grammar.
-You can also use this field into a custom component by using `<TitleFormField field={...} />` +You can also use this field in a custom component by using `<TitleFormField field={...} />`🧰 Tools
🪛 LanguageTool
[uncategorized] ~44-~44: The preposition “in” seems more likely in this position than the preposition “into”.
Context: ... You can also use this field into a custom component by using `<TitleForm...(AI_EN_LECTOR_REPLACEMENT_PREPOSITION_INTO_IN)
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (16)
libs/application/core/src/lib/fieldBuilders.ts
(5 hunks)libs/application/templates/aosh/change-machine-supervisor/src/forms/ChangeMachineSupervisorForm/InformationSection/supervisorSubSection.ts
(2 hunks)libs/application/templates/aosh/street-registration/src/forms/StreetRegistrationForm/InformationSection/machineSubSection.ts
(2 hunks)libs/application/templates/document-provider-onboarding/src/forms/DocumentProviderApplication.ts
(5 hunks)libs/application/templates/document-provider-onboarding/src/forms/ReviewApplication.ts
(5 hunks)libs/application/templates/driving-license/src/forms/draft/subSectionTempInfo.ts
(2 hunks)libs/application/templates/health-insurance/src/forms/HealthInsuranceForm/confirmSection.ts
(2 hunks)libs/application/templates/health-insurance/src/forms/HealthInsuranceForm/formerInsuranceSection.ts
(2 hunks)libs/application/templates/health-insurance/src/forms/MissingInfoForm.ts
(3 hunks)libs/application/templates/passport/src/forms/ParentB.ts
(2 hunks)libs/application/templates/reference-template/src/forms/reviewApplicationForm/reviewApplication.ts
(3 hunks)libs/application/types/src/lib/Fields.ts
(4 hunks)libs/application/ui-fields/src/lib/DividerFormField/DividerFormField.tsx
(1 hunks)libs/application/ui-fields/src/lib/TitleFormField/TitleFormField.stories.mdx
(1 hunks)libs/application/ui-fields/src/lib/TitleFormField/TitleFormField.tsx
(1 hunks)libs/application/ui-fields/src/lib/index.ts
(1 hunks)
🧰 Additional context used
📓 Path-based instructions (16)
libs/application/templates/driving-license/src/forms/draft/subSectionTempInfo.ts (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/application/templates/passport/src/forms/ParentB.ts (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/application/templates/health-insurance/src/forms/MissingInfoForm.ts (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/application/templates/reference-template/src/forms/reviewApplicationForm/reviewApplication.ts (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/application/ui-fields/src/lib/index.ts (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/application/templates/health-insurance/src/forms/HealthInsuranceForm/confirmSection.ts (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/application/templates/health-insurance/src/forms/HealthInsuranceForm/formerInsuranceSection.ts (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/application/ui-fields/src/lib/DividerFormField/DividerFormField.tsx (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/application/templates/aosh/change-machine-supervisor/src/forms/ChangeMachineSupervisorForm/InformationSection/supervisorSubSection.ts (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/application/types/src/lib/Fields.ts (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/application/templates/document-provider-onboarding/src/forms/ReviewApplication.ts (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/application/ui-fields/src/lib/TitleFormField/TitleFormField.tsx (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/application/templates/aosh/street-registration/src/forms/StreetRegistrationForm/InformationSection/machineSubSection.ts (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/application/templates/document-provider-onboarding/src/forms/DocumentProviderApplication.ts (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/application/core/src/lib/fieldBuilders.ts (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/application/ui-fields/src/lib/TitleFormField/TitleFormField.stories.mdx (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
🪛 LanguageTool
libs/application/ui-fields/src/lib/TitleFormField/TitleFormField.stories.mdx
[uncategorized] ~44-~44: The preposition “in” seems more likely in this position than the preposition “into”.
Context: ... You can also use this field into a custom component by using `<TitleForm...
(AI_EN_LECTOR_REPLACEMENT_PREPOSITION_INTO_IN)
🔇 Additional comments (21)
libs/application/ui-fields/src/lib/DividerFormField/DividerFormField.tsx (1)
14-23
: Implementation aligns with PR objectives
The component has been successfully simplified:
- Conditional rendering of the divider based on
useDividerLine
- Appropriate padding adjustments
- Clean and reusable implementation
This change aligns well with the PR's goal of splitting the divider field functionality.
libs/application/ui-fields/src/lib/TitleFormField/TitleFormField.tsx (1)
16-34
: Implementation looks good!
The component is well-structured with:
- Proper destructuring of props with sensible defaults
- Correct usage of localization utilities
- Appropriate UI component composition
libs/application/templates/health-insurance/src/forms/HealthInsuranceForm/confirmSection.ts (2)
10-10
: Import addition aligns with PR objectives
The addition of buildTitleField
import supports the refactoring of divider fields into separate title and divider components.
59-59
: Verify margin consistency across form sections
The addition of marginBottom: 5
to the file upload field might affect the visual spacing between form elements.
✅ Verification successful
Margin values are consistent across form sections
The marginBottom: 5
value aligns with the existing margin styling in the codebase, where marginTop: 5
is used in the formerInsuranceSection. This maintains visual consistency throughout the form components.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Search for other instances of marginBottom in form fields to ensure consistency
rg "marginBottom: \d+" "libs/application/templates/health-insurance/src/forms/"
Length of output: 198
Script:
#!/bin/bash
# Let's search for any margin-related styling in the form components to ensure consistency
rg "margin[A-Z][a-z]*: \d+" "libs/application/templates/health-insurance/src/forms/"
Length of output: 327
libs/application/ui-fields/src/lib/index.ts (1)
11-11
: Export addition looks good!
The TitleFormField export follows the established pattern and maintains the file's organization.
libs/application/templates/health-insurance/src/forms/MissingInfoForm.ts (1)
Line range hint 1-12
: LGTM! Clean import changes
The addition of buildTitleField
import is properly done while maintaining TypeScript types.
libs/application/templates/aosh/change-machine-supervisor/src/forms/ChangeMachineSupervisorForm/InformationSection/supervisorSubSection.ts (2)
1-11
: LGTM! Clean import changes
The addition of buildTitleField
import is properly done while maintaining TypeScript types.
76-79
: LGTM! Proper title field implementation
The title field is correctly implemented with appropriate color styling, maintaining visual hierarchy in the form.
libs/application/templates/reference-template/src/forms/reviewApplicationForm/reviewApplication.ts (1)
1-11
: LGTM! Clean import changes
The addition of buildTitleField
import is properly done while maintaining TypeScript types.
libs/application/templates/health-insurance/src/forms/HealthInsuranceForm/formerInsuranceSection.ts (1)
Line range hint 1-1
: Verify consistent implementation across all form files
The changes show a pattern of adding buildTitleField
import and modifying buildDividerField
params, but the buildTitleField
isn't implemented in any of the reviewed files.
Let's verify if this pattern exists in other form files:
Consider creating a migration guide or documentation for the new field separation pattern to ensure consistent implementation across all form files.
libs/application/templates/document-provider-onboarding/src/forms/ReviewApplication.ts (1)
8-8
: LGTM: Import statement correctly added
The addition of buildTitleField
import aligns with the PR objective of replacing divider fields with dedicated title fields.
libs/application/templates/aosh/street-registration/src/forms/StreetRegistrationForm/InformationSection/machineSubSection.ts (1)
8-8
: LGTM: Import statement correctly added
The addition of buildTitleField
import is consistent with the codebase changes.
libs/application/templates/document-provider-onboarding/src/forms/DocumentProviderApplication.ts (1)
10-10
: LGTM: Import statement correctly added
The addition of buildTitleField
import is consistent with the codebase changes.
libs/application/types/src/lib/Fields.ts (3)
272-272
: LGTM: Field type and component enums updated correctly
The new TITLE
entries in both FieldTypes
and FieldComponents
enums are properly added and follow the existing naming convention.
Also applies to: 310-310
458-458
: LGTM: DividerField interface simplified
The DividerField
interface has been simplified by replacing the color
property with useDividerLine
, making its purpose more focused and clear.
462-467
: LGTM: TitleField interface well-structured
The new TitleField
interface is well-designed with appropriate properties for title styling and follows the established pattern of field interfaces.
libs/application/core/src/lib/fieldBuilders.ts (3)
401-418
: LGTM: DividerField builder updated correctly
The buildDividerField
function has been properly updated to match the new interface, with a sensible default of true
for useDividerLine
.
Line range hint 420-440
: LGTM: TitleField builder well-implemented
The new buildTitleField
function follows the established builder pattern and properly handles all TitleField properties.
453-454
: LGTM: KeyValueField builder enhanced with margin support
The buildKeyValueField
function has been enhanced with margin support, improving layout flexibility.
Also applies to: 467-468, 488-489
libs/application/ui-fields/src/lib/TitleFormField/TitleFormField.stories.mdx (2)
13-24
: LGTM: Mock application creator well-structured
The createMockApplication
helper function provides a good foundation for testing with sensible defaults.
30-35
: LGTM: Usage documentation is clear and concise
The documentation provides clear instructions with appropriate code examples for using the TitleFormField
.
libs/application/ui-fields/src/lib/DividerFormField/DividerFormField.tsx
Outdated
Show resolved
Hide resolved
...pplication/templates/reference-template/src/forms/reviewApplicationForm/reviewApplication.ts
Show resolved
Hide resolved
...street-registration/src/forms/StreetRegistrationForm/InformationSection/machineSubSection.ts
Show resolved
Hide resolved
.../application/templates/document-provider-onboarding/src/forms/DocumentProviderApplication.ts
Show resolved
Hide resolved
…and.is into fix/divider-field-refactor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
libs/application/templates/reference-template/src/forms/exampleForm/noInputFieldsSection/dividerSubsection.ts (2)
16-36
: Consider extracting margin values as constantsThe implementation effectively demonstrates different field types and margins, but consider extracting the margin values as named constants for better maintainability.
+const NO_MARGIN = 0; +const DIVIDER_MARGIN = 7; + buildTitleField({ title: 'Below this is a divider line:', - marginTop: 0, - marginBottom: 0, + marginTop: NO_MARGIN, + marginBottom: NO_MARGIN, }),
16-36
: Add documentation for demonstration casesSince this appears to be a reference template demonstrating different field types, consider adding JSDoc comments to explain each use case.
+/** + * Demonstrates three different field combinations: + * 1. Title field followed by a standard divider line + * 2. Title field followed by a divider with margin only + * 3. Title field showing the resulting space + */ buildMultiField({ id: 'dividerMultiField', title: 'Divider', children: [
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
libs/application/core/src/lib/fieldBuilders.ts
(5 hunks)libs/application/templates/reference-template/src/forms/exampleForm/noInputFieldsSection/dividerSubsection.ts
(2 hunks)libs/application/templates/reference-template/src/forms/exampleForm/noInputFieldsSection/index.ts
(2 hunks)libs/application/templates/reference-template/src/forms/exampleForm/noInputFieldsSection/titleSubsection.ts
(1 hunks)
👮 Files not reviewed due to content moderation or server errors (3)
- libs/application/templates/reference-template/src/forms/exampleForm/noInputFieldsSection/index.ts
- libs/application/templates/reference-template/src/forms/exampleForm/noInputFieldsSection/titleSubsection.ts
- libs/application/core/src/lib/fieldBuilders.ts
🧰 Additional context used
📓 Path-based instructions (4)
libs/application/templates/reference-template/src/forms/exampleForm/noInputFieldsSection/index.ts (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/application/templates/reference-template/src/forms/exampleForm/noInputFieldsSection/titleSubsection.ts (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/application/templates/reference-template/src/forms/exampleForm/noInputFieldsSection/dividerSubsection.ts (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
libs/application/core/src/lib/fieldBuilders.ts (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
🔇 Additional comments (1)
libs/application/templates/reference-template/src/forms/exampleForm/noInputFieldsSection/dividerSubsection.ts (1)
Line range hint 1-6
: LGTM: Import changes follow best practices
The addition of buildTitleField
import from the core library maintains good reusability and tree-shaking practices.
…and.is into fix/divider-field-refactor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
libs/application/ui-fields/src/lib/DividerFormField/DividerFormField.tsx (1)
11-22
: Consider simplifying the padding logic.The padding logic could be more concise by using a single conditional value.
- paddingTop={useDividerLine ? 2 : 0} - paddingBottom={useDividerLine ? 2 : 0} + padding={useDividerLine ? 2 : 0}Great job on component reusability!
The component is well-structured for reuse across different NextJS applications:
- Pure presentational component with no side effects
- Clear, single responsibility
- Flexible styling through props
- No app-specific dependencies
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
libs/application/ui-fields/src/lib/DividerFormField/DividerFormField.tsx
(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
libs/application/ui-fields/src/lib/DividerFormField/DividerFormField.tsx (1)
Pattern libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
🔇 Additional comments (2)
libs/application/ui-fields/src/lib/DividerFormField/DividerFormField.tsx (2)
1-4
: LGTM! Clean and efficient imports.
The imports are minimal, specific, and follow good tree-shaking practices.
6-10
: Well-defined TypeScript props interface!
The props interface is minimal, type-safe, and follows React best practices with proper TypeScript usage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Refactoring divider field into a new field
Task Link
What
Refactoring divider field into 2 fields, a simpler divider field and a title field
Why
Its simpler to understand what to use when its separated into two fields
Checklist:
Summary by CodeRabbit
TitleField
component for improved visual representation in forms.buildTitleField
function to create title fields across various forms.buildDividerField
from multiple forms to streamline structure and enhance clarity.TitleFormField
to assist with usage and integration.