-
Notifications
You must be signed in to change notification settings - Fork 661
CardView - editing - fixes #29898
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
CardView - editing - fixes #29898
Conversation
packages/devextreme/js/__internal/grids/new/grid_core/editing/public_methods.ts
Show resolved
Hide resolved
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.
The design review point about editors' stylingMode isn't fixed
Let's set the stylingMode:'outline' for editors
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.
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.
🚧 will be fixed in terms of a separate task -> w1ThR4Sp
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.
Issue with data type "date" + editing
Config:
dataSource: [
{
id: 0,
E: new Date('2024-01-01'),
}
],
keyExpr: 'id',
columns: [
{
dataField: 'E',
}
],
editing: {
mode: 'popup',
allowAdding: true,
allowUpdating: true,
allowDeleting: true,
},Steps:
- Edit existing card
- Clear the DateEditor value
Expected result
DateEditor without value, we can clear this field value
Actual result
DateEditor set 01/01/1970 value by default, we cannot clear the field value
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.
🚧 will be fixed as separate issue: id -> SiNOB53q
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.
New functionallity not covered by any type of tests (except some cases)
Let's cover at least happy pathes and discovered bugs cases
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.
🚧 Tests will be implemented in terms of separate task -> LJmmO1Gf
packages/devextreme/js/__internal/grids/new/grid_core/editing/popup/view.ts
Outdated
Show resolved
Hide resolved
packages/devextreme/js/__internal/grids/new/grid_core/editing/public_methods.ts
Show resolved
Hide resolved
| const originalContentReady = simpleFormItem?.editorOptions?.onContentReady; | ||
|
|
||
| simpleFormItem.editorOptions = { | ||
| stylingMode: 'outline', |
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.
Typo
| stylingMode: 'outline', | |
| stylingMode: 'outlined', |
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.
🚧 will be fixed as separate issue: id -> SiNOB53q
| return null; | ||
| } | ||
|
|
||
| const insertChange = changes.find( |
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 future refactoring]
Let's rename this func, it's find an insert change, don't inserting anything :)
|
|
||
| private readonly visible = computed(() => !!this.editingController.editingCard.value); | ||
|
|
||
| private readonly customizeItems = computed(() => (item: dxForm.Item): void => { |
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.
Let's remove computed or leave a comment
Now it's not reactive
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.
🚧 will be fixed in terms of a separate card -> aG4dluUl
| )?.value ?? null, | ||
| onContentReady: (e): void => { | ||
| // TODO: refactor | ||
| setTimeout(() => { |
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.
Let's clear this timeout in onDispose or sth like this
We cannot leave floating macro tasks by our code rules (in QUnit we have test for it for all components)
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.
🚧 will be fixed in terms of a separate task -> iL7V3E1H
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.
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.
🚧 will be fixed in terms of a separate task -> 1BvmPbSB
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.
Issue related to pagination
Config
dataSource: new Array(7).fill(null).map((_, idx) => ({
id: idx,
A: `A_${idx}`,
B: `B_${idx}`,
C: `C_${idx}`,
})),
keyExpr: 'id',
columns: ['A', 'B', 'C'],
editing: {
allowDeleting: true,
},Steps:
- Go to the second page
- Delete card (there is only one card on the 2nd page)
Expected result
Current page number changed to "1", and we see cards
Actual result
No data screen
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.
🚧 will be fixed in terms of separate task -> AYicExDv



No description provided.