-
Notifications
You must be signed in to change notification settings - Fork 52
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
[4110] Add layout capabilities for form widgets #4125
base: master
Are you sure you want to change the base?
Conversation
...ages/forms/frontend/sirius-components-forms/src/propertysections/CheckboxPropertySection.tsx
Show resolved
Hide resolved
...ages/forms/frontend/sirius-components-forms/src/propertysections/CheckboxPropertySection.tsx
Outdated
Show resolved
Hide resolved
...ages/forms/frontend/sirius-components-forms/src/propertysections/CheckboxPropertySection.tsx
Outdated
Show resolved
Hide resolved
packages/forms/frontend/sirius-components-forms/src/propertysections/FlexboxHelper.ts
Outdated
Show resolved
Hide resolved
...g/eclipse/sirius/components/view/builder/generated/form/CheckboxDescriptionStyleBuilder.java
Outdated
Show resolved
Hide resolved
...form/src/main/java/org/eclipse/sirius/components/view/form/impl/WidgetFlexboxLayoutImpl.java
Outdated
Show resolved
Hide resolved
...nts-view-form/src/main/java/org/eclipse/sirius/components/view/form/WidgetFlexboxLayout.java
Outdated
Show resolved
Hide resolved
...n/java/org/eclipse/sirius/components/view/form/provider/WidgetFlexboxLayoutItemProvider.java
Outdated
Show resolved
Hide resolved
d37927f
to
216d494
Compare
...ges/forms/frontend/sirius-components-forms/src/propertysections/TextfieldPropertySection.tsx
Outdated
Show resolved
Hide resolved
...ntext/migration/participants/WidgetDescriptionStyleLayoutPropertiesMigrationParticipant.java
Outdated
Show resolved
Hide resolved
216d494
to
e22dcaa
Compare
411e956
to
a4d2a7b
Compare
d6cb4e9
to
2368219
Compare
2368219
to
516c14a
Compare
516c14a
to
5e8602d
Compare
.../forms/backend/sirius-components-collaborative-forms/src/main/resources/schema/form.graphqls
Outdated
Show resolved
Hide resolved
...mdescriptioneditors/frontend/sirius-components-formdescriptioneditors/src/CheckboxWidget.tsx
Show resolved
Hide resolved
<div className={classes.propertySectionLabel}> | ||
<Typography variant="subtitle2" className={selected ? classes.selected : ''}> | ||
{widget.label} | ||
</Typography> | ||
{widget.hasHelpText ? <HelpOutlineOutlined color="secondary" style={{ marginLeft: 8, fontSize: 16 }} /> : null} | ||
</div> | ||
<TextField | ||
className={classes.propertySectionWidget} |
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.
Why is this class on the widget instead of on a containing div (same comment for TextfieldWidget) while it's on a containing div for the SelectWidget?
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.
I added a div only when it was needed that is in the case where it would contain more than one child.
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.
For homogeneity, we could have the same here(even if not necessary)
Tell if you want to add the div anyway
...ius-components-forms/src/main/java/org/eclipse/sirius/components/forms/WidgetGridLayout.java
Show resolved
Hide resolved
...sirius-components-forms/src/main/java/org/eclipse/sirius/components/forms/DateTimeStyle.java
Outdated
Show resolved
Hide resolved
...src/test/java/org/eclipse/sirius/web/services/forms/FormWithTextareaDescriptionProvider.java
Outdated
Show resolved
Hide resolved
...rc/test/java/org/eclipse/sirius/web/services/forms/FormWithTextfieldDescriptionProvider.java
Outdated
Show resolved
Hide resolved
...form-edit/src/main/java/org/eclipse/sirius/components/view/form/provider/FormEditPlugin.java
Outdated
Show resolved
Hide resolved
@@ -10,248 +10,251 @@ | |||
# Contributors: | |||
# Obeo - initial API and implementation | |||
################################################################################# | |||
pluginName = Form Edit Support | |||
providerName = www.example.org | |||
pluginName=Form Edit Support |
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.
No need to change all those lines
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.
Same remark. I took the result of the EMF generation. I should not have to process it manually afterwards.
How to have the right dev environnement?
packages/forms/frontend/sirius-components-forms/src/propertysections/PropertySection.types.ts
Outdated
Show resolved
Hide resolved
dd47b3d
to
0a99898
Compare
Bug: #4110 Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr> Signed-off-by: Florian ROUËNÉ <florian.rouene@obeosoft.com>
0a99898
to
0448726
Compare
Bug: #4110
Pull request template
General purpose
What is the main goal of this pull request?
Project management
priority:
andpr:
labels been added to the pull request? (In case of doubt, start with the labelspriority: low
andpr: to review later
)area:
,difficulty:
,type:
)CHANGELOG.adoc
been updated to reference the relevant issues?CHANGELOG.adoc
? (Including changes in the GraphQL API)CHANGELOG.adoc
? For example indoc/screenshots/2022.5.0-my-new-feature.png
Architectural decision records (ADR)
[doc]
?CHANGELOG.adoc
?Dependencies
CHANGELOG.adoc
?CHANGELOG.adoc
?Frontend
This section is not relevant if your contribution does not come with changes to the frontend.
General purpose
Typing
We need to improve the typing of our code, as such, we require every contribution to come with proper TypeScript typing for both changes contributing new files and those modifying existing files.
Please ensure that the following statements are true for each file created or modified (this may require you to improve code outside of your contribution).
useMutation<DATA_TYPE, VARIABLE_TYPE>(…)
useQuery<DATA_TYPE, VARIABLE_TYPE>(…)
useSubscription<DATA_TYPE, VARIABLE_TYPE>(…)
useMachine<CONTEXT_TYPE, EVENTS_TYPE>(…)
useState<STATE_TYPE>(…)
?.
(if the GraphQL API specifies that a field cannot benull
, do not treat it has potentiallynull
for example)let diagram: Diagram | null = null;
)Backend
This section is not relevant if your contribution does not come with changes to the backend.
General purpose
Architecture
Review
How to test this PR?
Please describe here the various use cases to test this pull request