Implement consultation sequence for motions - #6498
Conversation
sequence of delibatation for motionssequence of deliberation for motions
27ea4cf to
7aa535a
Compare
sequence of deliberation for motionsconsultation sequence for motions
| } | ||
|
|
||
| <!-- Workflow timestamp --> | ||
| <os-motion-manage-timestamp field="workflow_timestamp" title="{{ 'Submission date' | translate }}" [motion]="motion" /> |
| private displayFutureForward = false; | ||
| public displayFutureForward$ = this.meetingSettingsService | ||
| .get(`motions_enable_origin_motion_display`) | ||
| .pipe(map(v => !!v)); |
There was a problem hiding this comment.
Change displayFutureForward to signal and displayFutureForward$ to private. There is already a signals api in place in MeetingSettingsService in feature/vote which this can be replaced with in the future.
| } | ||
|
|
||
| public refreshOriginMotions(): void { | ||
| this.displayFutureForward = true; // TODO: remove this line |
There was a problem hiding this comment.
This is waiting for Dammi or a decision from ABS of what to to without the new setting (I think this will be merged with the new setting)
| public getToolTip(motion: ViewMotion): string { | ||
| let toolTip = ``; | ||
| if (motion.meeting?.location) { | ||
| toolTip = this.translate.instant(`Meeting location`) + `: ` + motion.meeting.location + ` `; | ||
| } | ||
| if (motion.meeting?.start_time) { | ||
| toolTip += | ||
| this.translate.instant(`Meeting start time`) + | ||
| `: ` + | ||
| this.meetingController.parseUnixToMeetingTime(motion.meeting?.start_time * 1000) + | ||
| ` `; | ||
| } | ||
| if (motion.meeting?.end_time) { | ||
| toolTip += | ||
| this.translate.instant(`Meeting end time`) + | ||
| `: ` + | ||
| this.meetingController.parseUnixToMeetingTime(motion.meeting?.end_time * 1000) + | ||
| ` `; | ||
| } | ||
| return toolTip; | ||
| } |
There was a problem hiding this comment.
You can use parameters instead of concatenating your strings since a couple weeks.
https://ngx-translate.org/getting-started/translating-your-components/#with-parameters
https://ngx-translate.org/reference/translate-service-api/#instant
| public searchLists: SearchListDefinition[] = [ | ||
| { | ||
| observable: this.repo.getViewModelListObservable(), | ||
| label: `Motions` |
There was a problem hiding this comment.
| label: `Motions` | |
| label: _(`Motions`) |
Should be marked
| }, | ||
| { | ||
| observable: this.motionForwardingService.forwardingCommitteesObservable, | ||
| label: `Committees`, |
There was a problem hiding this comment.
| label: `Committees`, | |
| label: _(`Committees`), |
| (originToggleDefault$ | async) === false && | ||
| !motion.isAmendment() | ||
| ) { | ||
| |
There was a problem hiding this comment.
Not a good way to add margins
There was a problem hiding this comment.
paginator-intl/paginato-intl.service.ts
| this.motion.derived_motions$.subscribe(_ => this.refreshOriginMotions()), | ||
| this.displayFutureForward$.subscribe((v: boolean) => { | ||
| this.displayFutureForward = v; | ||
| }) |
There was a problem hiding this comment.
Prone to have side effects as displayFutureForward is used within refreshOriginMotions.
Also it looks like that you should use all_derived_motions$ from what I see.
bspekker
left a comment
There was a problem hiding this comment.
- Final meeting: The sequence is currently not available in the final meeting of the consultation sequence (in our example in meeting E or F). The issue does not suggest that this meeting should be excluded.
Closed meetings:
- As far as I understand the issue description the meeting title should not be displayed if I can't access the meeting. (Issue: the path should show this meeting as '[Lock-Icon] Closed Meeting' without a tooltip.)
- Additionally, if the backtracking is active but I can't see the meeting, the on/off button shouldn't be displayed since it leads to undefined content:
Pagination of different paths:
- When backtracking is active and I select the backtracking from a meeting on the second 'page', the content of the pagination jumps to the first page but displays the second page.
- If the selected meeting is only in the path on the second page, the motion from that meeting will appear in a new tab but the button is not selected.
Observe here with meeting Cccccc that is only on second page:
resolves #6442