fix(app): erase large view tuple types with into_any() at page and section boundaries

This commit is contained in:
dahyeon committed 2026-11-04 21:13:45 +09:00
1 parent 37b323c9ac
commit b43b060c8a
3 files changed
+15 -10

No files matched your search

+2
View File
@@ -27,6 +27,7 @@ pub(crate) fn PlacePage() -> impl IntoView {
let id = params.read().get("id").unwrap_or_default(); let id = params.read().get("id").unwrap_or_default();
view! { <PlaceDetail place_id=id/> } view! { <PlaceDetail place_id=id/> }
}} } }} }
.into_any()
} }
#[component] #[component]
@@ -195,6 +196,7 @@ fn PlaceDetail(place_id: String) -> impl IntoView {
</Transition> </Transition>
</div> </div>
} }
.into_any()
} }
fn progress_phase(events: &[JobEvent]) -> usize { fn progress_phase(events: &[JobEvent]) -> usize {
+6 -4
View File
@@ -233,7 +233,7 @@ pub(crate) fn HomePage() -> impl IntoView {
view! { view! {
<div class="home-wrap discovery-home" data-has-results=move || (!submitted.get().is_empty()).to_string()> <div class="home-wrap discovery-home" data-has-results=move || (!submitted.get().is_empty()).to_string()>
<div class="search-column"> {view! { <div class="search-column">
<Show when=move || submitted.get().is_empty()> <Show when=move || submitted.get().is_empty()>
<div class="page-heading discovery-intro"> <div class="page-heading discovery-intro">
<h1>"장소 검색"</h1> <h1>"장소 검색"</h1>
@@ -286,9 +286,9 @@ pub(crate) fn HomePage() -> impl IntoView {
</div> </div>
</Show> </Show>
</section> </section>
</div> </div> }.into_any()}
<div class="results-column"> {view! { <div class="results-column">
<Show when=move || selection_error.get()> <Show when=move || selection_error.get()>
<div class="alert-error retry-row" role="alert"> <div class="alert-error retry-row" role="alert">
<p>"장소를 열지 못했습니다. 잠시 후 다시 시도해 주세요."</p> <p>"장소를 열지 못했습니다. 잠시 후 다시 시도해 주세요."</p>
@@ -372,9 +372,10 @@ pub(crate) fn HomePage() -> impl IntoView {
</ol> </ol>
<p>"사진과 리뷰로 추정한 결과로, 실제 배치와 다를 수 있습니다."</p> <p>"사진과 리뷰로 추정한 결과로, 실제 배치와 다를 수 있습니다."</p>
</details> </details>
</div> </div> }.into_any()}
</div> </div>
} }
.into_any()
} }
#[component] #[component]
@@ -496,6 +497,7 @@ pub(crate) fn RecentPlacesPage() -> impl IntoView {
</section> </section>
</div> </div>
} }
.into_any()
} }
/// Display the supplied ISO calendar date without guessing the user's timezone. /// Display the supplied ISO calendar date without guessing the user's timezone.
+7 -6
View File
@@ -479,7 +479,7 @@ pub(crate) fn WorkspaceView(layout: Layout, photos: Vec<PhotoSummary>) -> impl I
</div> </div>
<p class="workspace-warning"><Icon name="info"/>{warning}</p> <p class="workspace-warning"><Icon name="info"/>{warning}</p>
<div class="workspace-grid" data-mobile-panel=move || mobile_panel.get()> <div class="workspace-grid" data-mobile-panel=move || mobile_panel.get()>
<section class="viewport-col" id="layout-panel" aria-label="공간 배치"> {view! { <section class="viewport-col" id="layout-panel" aria-label="공간 배치">
<div class="viewport-toolbar"> <div class="viewport-toolbar">
{if many_floors { {if many_floors {
view! { view! {
@@ -634,9 +634,9 @@ pub(crate) fn WorkspaceView(layout: Layout, photos: Vec<PhotoSummary>) -> impl I
} }
}).collect_view()} }).collect_view()}
</div> </div>
</section> </section> }.into_any()}
<aside class="summary-col" id="info-panel" aria-label="공간 정보"> {view! { <aside class="summary-col" id="info-panel" aria-label="공간 정보">
{move || selection.get().map(|s| { {move || selection.get().map(|s| {
let total = s.photos.len(); let total = s.photos.len();
let selected_photos = StoredValue::new(s.photos.clone()); let selected_photos = StoredValue::new(s.photos.clone());
@@ -735,10 +735,10 @@ pub(crate) fn WorkspaceView(layout: Layout, photos: Vec<PhotoSummary>) -> impl I
})} })}
</section> </section>
})} })}
</aside> </aside> }.into_any()}
</div> </div>
<dialog id="space-photo-dialog" class="photo-dialog" aria-labelledby="space-photo-title" {view! { <dialog id="space-photo-dialog" class="photo-dialog" aria-labelledby="space-photo-title"
on:keydown=move |ev| { on:keydown=move |ev| {
if ev.key() == "ArrowLeft" { if ev.key() == "ArrowLeft" {
ev.prevent_default(); ev.prevent_default();
@@ -784,8 +784,9 @@ pub(crate) fn WorkspaceView(layout: Layout, photos: Vec<PhotoSummary>) -> impl I
} }
})} })}
</div> </div>
</dialog> </dialog> }.into_any()}
} }
.into_any()
} }
#[cfg(test)] #[cfg(test)]