refactor(kanban): shorten generated resource paths
Import scoped generated board modules at the kanban boundary so tests and page helpers read as local board resources without fully qualified generated-resource ceremony. req: component/003 req: dx/006
This commit is contained in:
@@ -6,7 +6,7 @@ use futures_util::{stream, StreamExt};
|
||||
use hemplate::Hemplate;
|
||||
use slhx::{IntoEffect, RenderSlotExt, SafeHtml};
|
||||
use slhx_axum::{runtime_js, sse, DispatchRejection, EffectResponse, HandlerRegistry, InteractionForm, PageRequest};
|
||||
use slhx_kanban_example::ui;
|
||||
use slhx_kanban_example::ui::{self, board as board_ui};
|
||||
use slhx_kanban_example::ui::board::{forms, handles, slots};
|
||||
use slhx_kanban_example::ui::board_card::handles as card_handles;
|
||||
use std::collections::BTreeMap;
|
||||
@@ -226,7 +226,7 @@ fn parse_column(value: Option<&str>) -> usize {
|
||||
fn page_html(board: &BoardState) -> String {
|
||||
// Explicit full-page composition boundary for already-rendered hemplate fragments.
|
||||
// req: html_safety/002 req: view/001
|
||||
ui::board::render_html(&Board {
|
||||
board_ui::render_html(&Board {
|
||||
options: render_options(),
|
||||
board: render_board(board),
|
||||
})
|
||||
@@ -354,7 +354,7 @@ mod tests {
|
||||
// req: html_safety/002 req: view/001 req: test/005
|
||||
#[test]
|
||||
fn presence_payload_is_rendered_by_a_hemplate_view() {
|
||||
let html = slhx::render_html(&Presence { count: 7 });
|
||||
let html = ui::render_html(&Presence { count: 7 });
|
||||
let document = Html::parse_fragment(html.as_str());
|
||||
assert_eq!(document.select(&selector("span.presence")).count(), 2);
|
||||
assert_eq!(
|
||||
|
||||
Reference in New Issue
Block a user