Repository navigation
[DREAM-959] Paint table row state from one module #26503
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
Changes from all commits
5b792fc
e0afc4a
2ca422c
ae3b7f8
51b026a
cb32a22
bf64992
dd4b220
1cf4a2e
07b07c8
3d89c0e
aa35594
c87d09b
c0a5abe
367c18a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -197,6 +197,7 @@ export class TableEditForm extends EditForm<WorkPackageResource> { | |
| td.style.maxWidth = ''; | ||
| this.cellBuilder.refresh(cell, this.resource, fieldName); | ||
| td.classList.remove(editModeClassName); | ||
| this.table.painter.paint(this.table.painter.keysOf(this.resource.id!)); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This API seems a bit odd. We ask the painter what rows it would have to repaint, then immediately tell it to paint those rows. That sounds like a missing method of the painter
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. True. This breaks the "Tell, Don't Ask" principle.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The fix belongs in #26507's
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now implemented in #26507: the table provides a |
||
|
|
||
| if (focus || userEnded) { | ||
| this.returnFocusFrom(cell, fieldName, focus, closing); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,11 @@ | |
| // See COPYRIGHT and LICENSE files for more details. | ||
| //++ | ||
|
|
||
| export type RowKind = 'header'|'workPackage'|'groupHeader'|'sums'|'totals'; | ||
| import type { RowRecordKind } from '../../../semantics/row-classifier'; | ||
|
|
||
| export const ROW_KINDS = ['header', 'workPackage', 'groupHeader', 'sums', 'totals'] as const satisfies readonly RowRecordKind[]; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @lwassermann this should help prevent drift: renaming a |
||
|
|
||
| export type RowKind = (typeof ROW_KINDS)[number]; | ||
|
|
||
| export interface NavigableRow { | ||
| key:string; | ||
|
|
||
|
myabc marked this conversation as resolved.
Resolved
|
Uh oh!
There was an error while loading. Please reload this page.