···212212/// This must be called after changing labeler subscriptions so that all subsequent API calls
213213/// carry the correct header.
214214pub async fn apply_labeler_headers(session: &LazuriteOAuthSession, prefs: &StoredModerationPrefs) {
215215- let dids: Vec<CowStr<'static>> = accepted_labeler_dids(prefs)
216216- .into_iter()
217217- .map(|did| CowStr::from(did))
218218- .collect();
215215+ let dids: Vec<CowStr<'static>> = accepted_labeler_dids(prefs).into_iter().map(CowStr::from).collect();
219216 let opts = CallOptions { atproto_accept_labelers: Some(dids), ..Default::default() };
220217 session.set_options(opts).await;
221218 log::debug!(
-2
src/components/deck/DeckWorkspace.tsx
···134134 const session = useAppSession();
135135 const threadOverlay = useThreadOverlayNavigation();
136136 let feedColumnRequest = 0;
137137- // Module-level variable: WebKit dataTransfer.getData() returns empty string on drop,
138138- // so we track the dragging column ID here instead.
139137 let draggingColumnId: string | null = null;
140138141139 const [state, setState] = createStore<DeckState>({
···7575 it("does not show draft count badge when draftCount is zero", () => {
7676 render(() => <FeedComposer {...BASE_PROPS} draftCount={0} onOpenDrafts={() => {}} />);
77777878- // The drafts button should exist but no badge (the badge span is conditionally rendered)
7978 const draftsButton = screen.getByTitle("Drafts (Ctrl+D)");
8079 expect(draftsButton).toBeInTheDocument();
8181- // Badge is only rendered when count > 0; with count=0 the badge span should be absent
8280 expect(draftsButton.textContent?.trim()).toBe("");
8381 });
8482});