Skip to content

Conversation

@ebrehault
Copy link
Member

@ebrehault ebrehault commented Nov 8, 2025

Naive implementation.

Comments:

  • The call to collect the items is done directly in apps/seven/app/root.tsx, not sure if that's accurate
  • I have changed the BlocksFormData type as followed:
export type BlocksFormData = ListingBlockFormData | DummyBlockFormData;

That way we can have a specific typing for each type of blocks instead of having one generic interface with a very unhelpful [x: string]: unknown;.
DummyBlockFormData is there for now as the other specific block types are not existing yet, but it is meant to be removed once everything is properly typed.


📚 Documentation preview 📚: https://plone-registry--7603.org.readthedocs.build/


📚 Documentation preview 📚: https://volto--7603.org.readthedocs.build/

@davisagli davisagli changed the base branch from main to seven November 11, 2025 05:03
@davisagli
Copy link
Member

I changed the base branch to seven instead of main.

@ebrehault
Copy link
Member Author

I changed the base branch to seven instead of main.

oops, sorry

Copy link
Member

@sneridagh sneridagh left a comment

Choose a reason for hiding this comment

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

@ebrehault sorry for taking so long to take a look!
It does look good for me so far!

Regarding the typings, I agree the current types are as baseline, we never have been exhaustive on defining them, and we are completing them "on the fly". I am not a TS expert at all, I would leave that to others that know more than me in that regard :)

cli.getSite(),
]);

const listingBlocks: { id: string; block: ListingBlockFormData }[] =
Copy link
Member

Choose a reason for hiding this comment

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

yes, this was the idea, however in the future we should have a generic "visitor" that executes specific extra calls if needed. Using an utilitity for that then call them all and execute them like the rootLoaderDataUtilities.

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.

4 participants