feat: 802 combobox - #852
Conversation
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe case progress process selector now uses a Carbon combo box and extracts process instance identifiers from selected list items. The migration screen replaces native selects with combo boxes for definitions, versions, and task mappings. Migration component state now maintains combo box items, refreshes selections during loading and migration, ignores stale version responses, and caches filtered task mapping options. The migration module imports Carbon’s combo box module, and English and Dutch migration labels are added. 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: b317145c-88da-422f-bdb6-5e73c41c7032
📒 Files selected for processing (5)
frontend/projects/valtimo/case/src/lib/components/case-detail/tab/progress/progress.component.htmlfrontend/projects/valtimo/case/src/lib/components/case-detail/tab/progress/progress.component.tsfrontend/projects/valtimo/migration/src/lib/migration.component.htmlfrontend/projects/valtimo/migration/src/lib/migration.component.tsfrontend/projects/valtimo/migration/src/lib/migration.module.ts
| }); | ||
| } | ||
|
|
||
| onDefinitionSelected(selection: ListItem | ListItem[], type: string) { |
There was a problem hiding this comment.
| onDefinitionSelected(selection: ListItem | ListItem[], type: string) { | |
| public onDefinitionSelected(selection: ListItem | ListItem[], type: string) { |
| } | ||
| } | ||
|
|
||
| onVersionSelected(selection: ListItem | ListItem[], type: string) { |
There was a problem hiding this comment.
| onVersionSelected(selection: ListItem | ListItem[], type: string) { | |
| public onVersionSelected(selection: ListItem | ListItem[], type: string) { |
| this.loadProcess(item?.id ?? null, type); | ||
| } | ||
|
|
||
| onTaskMappingSelected(selection: ListItem | ListItem[], nodeId: string) { |
There was a problem hiding this comment.
| onTaskMappingSelected(selection: ListItem | ListItem[], nodeId: string) { | |
| public onTaskMappingSelected(selection: ListItem | ListItem[], nodeId: string) { |
| }); | ||
| } | ||
|
|
||
| getFilteredTargetFlowNodeMapItems(node): ListItem[] { |
There was a problem hiding this comment.
| getFilteredTargetFlowNodeMapItems(node): ListItem[] { | |
| public getFilteredTargetFlowNodeMapItems(node): ListItem[] { |
| <cds-combo-box | ||
| [dropUp]="false" | ||
| [appendInline]="true" | ||
| [label]="'Source Definition'" |
There was a problem hiding this comment.
Could you add this to the translations, please?
| [dropUp]="false" | ||
| [appendInline]="true" | ||
| [label]="'Source Definition'" | ||
| [placeholder]="'- Source Definition -'" |
There was a problem hiding this comment.
Also this translation
| <cds-combo-box | ||
| [dropUp]="false" | ||
| [appendInline]="true" | ||
| [label]="'Source Version'" |
There was a problem hiding this comment.
Also this translation
| [dropUp]="false" | ||
| [appendInline]="true" | ||
| [label]="'Source Version'" | ||
| [placeholder]="'- Source Version -'" |
| <cds-combo-box | ||
| [dropUp]="false" | ||
| [appendInline]="true" | ||
| [label]="'Target Definition'" |
| [dropUp]="false" | ||
| [appendInline]="true" | ||
| [label]="'Target Definition'" | ||
| [placeholder]="'- Target Definition -'" |
| <cds-combo-box | ||
| [dropUp]="false" | ||
| [appendInline]="true" | ||
| [label]="'Target Version'" |
| [dropUp]="false" | ||
| [appendInline]="true" | ||
| [label]="'Target Version'" | ||
| [placeholder]="'- Target Version -'" |
| <cds-combo-box | ||
| [dropUp]="false" | ||
| [appendInline]="true" | ||
| [placeholder]="'- Choose Target -'" |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 816ee33b-77d7-41d0-a04a-b0fd2ac6ca8e
📒 Files selected for processing (5)
frontend/projects/valtimo/case/src/lib/components/case-detail/tab/progress/progress.component.htmlfrontend/projects/valtimo/case/src/lib/components/case-detail/tab/progress/progress.component.tsfrontend/projects/valtimo/migration/src/lib/migration.component.htmlfrontend/projects/valtimo/shared/assets/core/en.jsonfrontend/projects/valtimo/shared/assets/core/nl.json
🚧 Files skipped from review as they are similar to previous changes (3)
- frontend/projects/valtimo/case/src/lib/components/case-detail/tab/progress/progress.component.ts
- frontend/projects/valtimo/migration/src/lib/migration.component.html
- frontend/projects/valtimo/case/src/lib/components/case-detail/tab/progress/progress.component.html
| "Source Definition": "Bron definitie", | ||
| "Source Version": "Bron versie", | ||
| "Target Definition": "Doel definitie", | ||
| "Target Version": "Doel versie", | ||
| "Choose Target": "Kies doel", |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Use compound nouns in the Dutch migration labels.
Bron definitie, Bron versie, Doel definitie, and Doel versie are not idiomatic Dutch compound nouns. Use Brondefinitie, Bronversie, Doeldefinitie, and Doelversie.
Proposed fix
- "Source Definition": "Bron definitie",
- "Source Version": "Bron versie",
- "Target Definition": "Doel definitie",
- "Target Version": "Doel versie",
+ "Source Definition": "Brondefinitie",
+ "Source Version": "Bronversie",
+ "Target Definition": "Doeldefinitie",
+ "Target Version": "Doelversie",📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| "Source Definition": "Bron definitie", | |
| "Source Version": "Bron versie", | |
| "Target Definition": "Doel definitie", | |
| "Target Version": "Doel versie", | |
| "Choose Target": "Kies doel", | |
| "Source Definition": "Brondefinitie", | |
| "Source Version": "Bronversie", | |
| "Target Definition": "Doeldefinitie", | |
| "Target Version": "Doelversie", | |
| "Choose Target": "Kies doel", |
Describe the changes
Link to the related Github issue: generiekzaakafhandelcomponent/gzac-issues#802
Specify the code branch location:
Relevant comments:
Breaking changes
Documentation
New features or changes that have been introduced have been documented.
Tests
Unit tests have been added that cover these changes
Integration tests have been added that cover these changes
Describe the testing steps
Security
The Secure by Design principle has been applied to these changes
Added or changed REST API endpoints have authentication and authorization in place
Valtimo access control checks have been implemented
Dependencies
Newly added dependencies do not introduce known vulnerabilities/CVE's and are in line with the Valtimo license