Skip to content

Introduces Objects Grid content block and block repetition mechanism migration - #362

Closed
bertyhell wants to merge 12 commits into
release/v6.0.0from
feature/ARC-3792-objects-grid-block
Closed

Introduces Objects Grid content block and block repetition mechanism migration#362
bertyhell wants to merge 12 commits into
release/v6.0.0from
feature/ARC-3792-objects-grid-block

Conversation

@bertyhell

@bertyhell bertyhell commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

jira ticket:
https://meemoo.atlassian.net/browse/ARC-3792

example page:
http://localhost:3200/admin/content-paginas/af27aac8-40e9-4503-bf91-34892f49fc12

Adds the new ObjectsGrid content block, allowing users to display a dynamic grid of media objects:
2026-07-20_11-56-08
2026-07-20_11-55-58

  • Configurable with an optional title, a HetArchief.be search URL, and up to three fixed (pinned) media objects.
  • Displays a responsive grid that adjusts column count, tile height, and intelligently packs fixed objects with dynamic random results from the search query.
  • Integrates with the search API by converting client-side search URLs into API request bodies via a new clientSearchUrlToApiSearchUrl configuration service.
  • Includes comprehensive styling to handle different media types (video, audio, newspaper, image) and provide a polished user experience.

This pull request also initiates the migration of content blocks to a new, more robust repetition mechanism (from A to B):

  • The BlockButtons component is refactored to use a fieldGroup for its repeatable elements, improving the content editor's configuration flexibility.
  • Implements a lazy data migration strategy that automatically upgrades legacy array-based content block data to the new object-with-elements format on load, ensuring backward compatibility.
  • Updates the content page editor's paste functionality to rehydrate and automatically migrate pasted blocks to the current configuration standard.

@bertyhell
bertyhell requested a review from reunefe July 20, 2026 10:08
Base automatically changed from feature/ARC-3779-validate-element-repeat-fields to release/v6.0.0 July 28, 2026 08:51
Comment thread ui/src/react-admin/modules/content-page/components/blocks/README.md
.c-block-objects-grid__tile-image {
width: 100%;
height: 100%;
object-fit: cover;

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.

Dit is correct? Ik vraag het vooral omdat sommige video's zoals die van het Vlaams parlement wat vreemd ogen 🙈

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

het staat niet gespecificeerd
mss kan ik wel de bovenkant van de afbeelding tonen
of contain, met grijze zijkanten, maar dat zal in de meeste gevallen niet zo mooi ogen

@bertyhell

Copy link
Copy Markdown
Contributor Author

replaced by #380

@bertyhell bertyhell closed this Aug 11, 2026
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.

2 participants