docs(examples): classify full htmx pattern catalog
Extend the html_examples gallery README to cover every htmx UI example slug exactly, marking each as implemented, deferred, integration-owned, or refused. Add a test that guards the full slug matrix while keeping the implemented gallery focused on the first CRUD/form/search/load slice. req: htmx_equivalents/001 req: htmx_equivalents/002 req: examples/001
This commit is contained in:
@@ -482,6 +482,46 @@ mod tests {
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn readme_maps_every_htmx_example_slug() {
|
||||
let readme = include_str!("../README.md");
|
||||
for slug in [
|
||||
"click-to-edit",
|
||||
"bulk-update",
|
||||
"click-to-load",
|
||||
"delete-row",
|
||||
"edit-row",
|
||||
"lazy-load",
|
||||
"inline-validation",
|
||||
"infinite-scroll",
|
||||
"active-search",
|
||||
"progress-bar",
|
||||
"value-select",
|
||||
"animations",
|
||||
"file-upload",
|
||||
"file-upload-input",
|
||||
"reset-user-input",
|
||||
"dialogs",
|
||||
"modal-uikit",
|
||||
"modal-bootstrap",
|
||||
"modal-custom",
|
||||
"tabs-hateoas",
|
||||
"tabs-javascript",
|
||||
"keyboard-shortcuts",
|
||||
"sortable",
|
||||
"update-other-content",
|
||||
"confirm",
|
||||
"async-auth",
|
||||
"web-components",
|
||||
"move-before",
|
||||
] {
|
||||
assert!(
|
||||
readme.contains(&format!("`{slug}`")),
|
||||
"missing htmx example slug {slug}"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn gallery_covers_core_html_patterns_with_generated_resources() {
|
||||
let state = Arc::new(GalleryState::seeded());
|
||||
|
||||
Reference in New Issue
Block a user