avo
avo copied to clipboard
feature: header dsl
Description
WIP
This PR introduces the following changes:
-
headerDSL- Can now be used anywhere within the
def fieldsmethod. - Renders the resource’s title, description, discreet information, and controls.
- If a
headeris not explicitly defined, one is automatically generated and placed at the top of the page.
- Can now be used anywhere within the
-
main_panelDSL is obsolete-
main_panelis now obsolete and should be replaced withpanel. - Previously, fields defined within
main_panelwere automatically rendered on the index page. Since the concept of a “main panel” has been removed, a temporary option—show_fields_on_index—has been introduced to preserve and extend this behavior. - This option provides more flexibility and customization for index views. Since users can now choose which panels’ fields are visible on the index, it becomes possible to have (for example) three panels on the show view while displaying their fields on the index as well—without needing to duplicate any definitions.
-
TODO
- [ ] Refactor or rename the temporary
show_fields_on_indexoption. - [ ] Document new DSL and breaking changes