Skip to content

Feature/promoted content paragraph#560

Merged
martinyde merged 10 commits intofeature/early_inclusion_dialoguefrom
feature/promoted_content_paragraph
Nov 17, 2025
Merged

Feature/promoted content paragraph#560
martinyde merged 10 commits intofeature/early_inclusion_dialoguefrom
feature/promoted_content_paragraph

Conversation

@martinyde
Copy link
Copy Markdown
Contributor

@martinyde martinyde commented Nov 14, 2025

Link to ticket

https://leantime.itkdev.dk/#/tickets/showTicket/5801

Description

  • Add Dialogue from project page
  • Add support for modals in modules (hoeringsportal_data, hoeringsportal_dialogue)
  • Update Drupal core 10.5.2 => 10.5.6
  • Modify composer audit github action
  • Add dialogue helper methods for fetching specific dialogue data.
  • Increase default bootstrap container xxl: 1400px

Screenshots

Skærmbillede 2025-11-14 kl  12 56 53 Skærmbillede 2025-11-14 kl  12 57 01 Skærmbillede 2025-11-14 kl  12 57 20

@martinyde martinyde requested review from rimi-itk and yepzdk November 14, 2025 12:03
@martinyde martinyde marked this pull request as ready for review November 14, 2025 12:05
Copy link
Copy Markdown
Contributor

@yepzdk yepzdk left a comment

Choose a reason for hiding this comment

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

Looks good. Consider a small tweak for mobile, and also we might want to use this feature on project "sub" pages also.

<h4 class="px-3">{{ left.leftLabel }}:</h4>
<div class="container">
<div class="row">
<div class="col-6">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Might want to use col-md-6 to wrap on mobile, and avoid very narrow column for the content.

{% endif %}
</div>
{% if right %}
<div class="col-6">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Also use ´col-md-6` here.

Copy link
Copy Markdown
Contributor

@rimi-itk rimi-itk left a comment

Choose a reason for hiding this comment

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

Approved with a single suggestion.

{{ 'Proposals received'|t }}
</div>
<div class="mb-4">
<a data-dialog-options="{&quot;width&quot;:800, &quot;dialogueId&quot;:{{ elements['#node'].id }}, &quot;originalPath&quot;:&quot;{{ path('<current>') }}&quot;}" data-dialog-type="modal" href="{{ path('node.add', {node_type: 'dialogue_proposal', dialogue: elements['#node'].id}) }}" class="use-ajax btn btn-primary text-white rounded">{{ 'Participate with your proposal'|t }}</a>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The value of the data-dialog-options attribute is hard to read (and write). Consider using an object and let Twig do the JSON encoding:

Suggested change
<a data-dialog-options="{&quot;width&quot;:800, &quot;dialogueId&quot;:{{ elements['#node'].id }}, &quot;originalPath&quot;:&quot;{{ path('<current>') }}&quot;}" data-dialog-type="modal" href="{{ path('node.add', {node_type: 'dialogue_proposal', dialogue: elements['#node'].id}) }}" class="use-ajax btn btn-primary text-white rounded">{{ 'Participate with your proposal'|t }}</a>
{% set = dialog_option = {
width: 800,
dialogueId: elements['#node'].id,
originalPath: path('<current>'),
} %}
<a data-dialog-options="{{ dialog_option|json_encode }}" data-dialog-type="modal" href="{{ path('node.add', {node_type: 'dialogue_proposal', dialogue: elements['#node'].id}) }}" class="use-ajax btn btn-primary text-white rounded">{{ 'Participate with your proposal'|t }}</a>

@martinyde martinyde merged commit 540dece into feature/early_inclusion_dialogue Nov 17, 2025
18 of 20 checks passed
@martinyde martinyde deleted the feature/promoted_content_paragraph branch November 17, 2025 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants