Skip to content

Agenda export improved#5894

Draft
Borreg0 wants to merge 6 commits intoOpenSlides:mainfrom
Borreg0:5870-AgendaExportRework
Draft

Agenda export improved#5894
Borreg0 wants to merge 6 commits intoOpenSlides:mainfrom
Borreg0:5870-AgendaExportRework

Conversation

@Borreg0
Copy link
Copy Markdown
Contributor

@Borreg0 Borreg0 commented Feb 23, 2026

Resolves #5870

Additionally found: Lists are not exported at all in motions, topics or assignments. Normal text and raw html code is exported right. @MSoeb is it okay if it is fixed later in a separate issue? It is too complex for me right now, someone else needs to take over.

@Borreg0 Borreg0 requested review from MSoeb and bastianjoel February 23, 2026 10:57
@Borreg0 Borreg0 added enhancement General enhancement which is neither bug nor feature Schrödinger projectname labels Feb 23, 2026
@Elblinator Elblinator assigned Borreg0 and unassigned bastianjoel and MSoeb Feb 25, 2026
@Borreg0 Borreg0 force-pushed the 5870-AgendaExportRework branch from 2641019 to c64a1c5 Compare February 25, 2026 15:08
@Borreg0 Borreg0 linked an issue Feb 25, 2026 that may be closed by this pull request
4 tasks
@Borreg0 Borreg0 assigned bastianjoel and MSoeb and unassigned Borreg0 Feb 25, 2026
@Elblinator
Copy link
Copy Markdown
Member

Given that the export of the motion list was not working before the agenda export change in october I would recommend fixing that part of the export in a later issue and test this issue as is.

Copy link
Copy Markdown

@MSoeb MSoeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. The top margin needs to be reset to its original value. I forgot that this setting could be adjusted. So please undo this change. (I’m sorry.)
  2. Spacing between headings: Reduce the spacing by half.
  3. Indentation: Indentation is no longer correct starting from the third level. In example below Antrag 03 is on third level but not indented.--> Indentation hierarchy should correspond correctly to its level.
  4. The spacing between the agenda (heading) and the first agenda item is too small. --> Use the current spacing between agenda items (current value of number 2) at this point.

Image for help:
Image

Additionally an improvement for content with text is needed:

  1. Alignment of topic text with topic heading: Heading and text should be aligned.
Image

@MSoeb
Copy link
Copy Markdown

MSoeb commented Mar 18, 2026

About lists: Yes, you can do this later.

@MSoeb MSoeb assigned Borreg0 and unassigned bastianjoel and MSoeb Mar 18, 2026
@Borreg0 Borreg0 marked this pull request as draft March 25, 2026 09:02
@Borreg0 Borreg0 force-pushed the 5870-AgendaExportRework branch from b176b5e to 64a75a3 Compare March 25, 2026 10:40
@Borreg0 Borreg0 assigned bastianjoel and MSoeb and unassigned Borreg0 Mar 26, 2026
@Borreg0 Borreg0 requested a review from MSoeb March 26, 2026 15:05
@Borreg0 Borreg0 marked this pull request as ready for review March 26, 2026 15:11
@bastianjoel bastianjoel assigned Borreg0 and unassigned bastianjoel and MSoeb Mar 26, 2026
@Borreg0 Borreg0 requested a review from bastianjoel March 27, 2026 11:44
@Borreg0 Borreg0 assigned MSoeb and unassigned Borreg0 Mar 27, 2026
Comment on lines +357 to +401
const moderationText = {
text: entry
};
const text = this.translate.instant(`Moderation note`);
const style = [this.getStyle(`header3`), this.getStyle(`margin-body-text`)];
const margin: [
[number, number, number, number],
[number, number, number, number],
[number, number, number, number],
[number, number, number, number]
] = [
[20, 10, 0, 0],
[20, 10, 0, 0],
this.getStyle(`margin-header3`),
this.getStyle(`margin-moderation-note`)
];
// Indents the moderation note inside a subitem
if (agendaItem.level > 0) {
margin[0][0] = margin[0][0] + agendaItem.level * 10;
return [
{
text: text,
style: style[0],
margin: margin[0]
},
{
text: moderationText,
style: style[1],
margin: margin[0]
}
];
} else {
return [
{
text: text,
style: style[0],
margin: margin[2]
},
{
text: moderationText,
style: style[1],
margin: margin[3]
}
];
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is too messy.

case `agenda-title`:
return [0, 0, 0, 20];
case `margin-header1`:
return [0, 0, 0, 0];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not seem right. Why even create a style when everything is zero?

return [15, 10, 0, 5];
case `margin-item`:
return [0, 0, 0, 5];
return [0, 0, 0, 0];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All zero too

@bastianjoel bastianjoel assigned Borreg0 and unassigned bastianjoel and MSoeb Mar 27, 2026
@Borreg0 Borreg0 marked this pull request as draft March 27, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement General enhancement which is neither bug nor feature Schrödinger projectname

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agenda Export: some improvements needed

4 participants