ソースを参照

refactor(web): 移除我的待办侧栏预览

sy 2 日 前
親
コミット
0cd5641546

+ 44 - 111
web-scaffold/src/pages/WorkOrderMinePage.tsx

@@ -15,8 +15,8 @@
  */
 import { useDetailLinkState, type DetailLinkState } from "../lib/detail-navigation";
 import { Link, Navigate, useLocation, useNavigate } from "react-router";
-import { useRef, useState } from "react";
-import { ArrowRight, Building2, CalendarClock, CalendarDays, ClipboardCheck, ClipboardList, Hourglass, LoaderCircle, PanelRight, TriangleAlert, Wrench } from "lucide-react";
+import { useState } from "react";
+import { ArrowRight, CalendarDays, ClipboardCheck, ClipboardList, Hourglass, LoaderCircle, TriangleAlert, Wrench } from "lucide-react";
 import { OpsTableColumns } from "../components/OperationsKit";
 import { TicketState } from "../components/ticketState";
 import { TicketStatusTag, TicketTypeTag } from "../components/work-order/TicketBadges";
@@ -62,8 +62,6 @@ export function WorkOrderMinePage() {
 function WorkOrderMineInner() {
   const linkState = useDetailLinkState();
   const location = useLocation();
-  const navigate = useNavigate();
-  const preview = useRef<HTMLElement>(null);
   const params = new URLSearchParams(location.search);
   const activeQueue = MINE_QUEUES.find(({ id }) => id === params.get("view")) ?? MINE_QUEUES[0];
 
@@ -75,10 +73,7 @@ function WorkOrderMineInner() {
   const today = businessToday();
   const groups = groupTodoRows(rows, today);
   const displayedGroups = activeQueue.id === "all" ? groups : groups.filter(({ id }) => id === activeQueue.id);
-  const displayedRows = displayedGroups.flatMap((group) => group.rows);
   const loaded = !list.loading && !fail;
-  const selection = params.get("selected");
-  const selected = loaded ? displayedRows.find((row) => row.ticket_id === selection) ?? displayedRows[0] : undefined;
 
   // 开通类计划执行日当天可以执行,是否超期以服务端字段为准。
   const overdue = rows.filter((row) => row.status !== "completed" && row.overdue_7d === true).length;
@@ -90,23 +85,11 @@ function WorkOrderMineInner() {
     { label: "待对方确认", value: counts.waiting },
   ];
 
-  function locationWith(next: URLSearchParams) {
-    return { pathname: location.pathname, search: next.toString(), hash: location.hash };
-  }
-
   function queueUrl(view: MineView) {
     const next = new URLSearchParams(params);
     if (view === "all") next.delete("view");
     else next.set("view", view);
-    if (view !== activeQueue.id) next.delete("selected");
-    return locationWith(next);
-  }
-
-  function selectTicket(id: string) {
-    const next = new URLSearchParams(params);
-    next.set("selected", id);
-    navigate(locationWith(next), { replace: true, state: location.state, preventScrollReset: true });
-    if (window.matchMedia?.("(max-width: 1170px)")?.matches) preview.current?.scrollIntoView?.({ block: "nearest" });
+    return { pathname: location.pathname, search: next.toString(), hash: location.hash };
   }
 
   return <section className="order-page work-order-mine-page page-fill page-fill-window">
@@ -142,47 +125,41 @@ function WorkOrderMineInner() {
       </div>
     </div>
 
-    <div className="work-order-mine-desk">
-      <section className="order-list-shell work-order-mine-queue list-shell-fill" aria-label={activeQueue.label}>
-        {list.loading ? <div className="order-empty work-order-mine-empty" role="status">
-          <LoaderCircle size={23} className="work-order-mine-loading" aria-hidden="true" />正在读取待办…
-        </div> : fail ? <TicketState fail={fail} onRetry={list.reload} />
-          : !displayedRows.length ? <div className="order-empty work-order-mine-empty">
-            <ClipboardCheck size={27} aria-hidden="true" />
-            <h3>{rows.length ? "这一组暂无工单" : "暂无待办工单"}</h3>
-            {!rows.length && <p>分派给你的工单会出现在这里。</p>}
-          </div> : <div className="ops-table-wrap work-order-mine-scroll" role="region" aria-label="待办工单清单" tabIndex={0}>
-            <table className="ops-table work-order-mine-table" aria-label="我的待办工单">
-              <OpsTableColumns widths={[345, 205, 180, 270]} />
-              <thead><tr>
-                <th scope="col">工单 / 客户</th>
-                <th scope="col">进度</th>
-                <th scope="col">期限</th>
-                <th scope="col">办理</th>
-              </tr></thead>
-              {displayedGroups.map((group) => <tbody key={group.id}>
-                {activeQueue.id === "all" && <tr className="work-order-mine-group" data-tone={group.tone}>
-                  <th colSpan={4} scope="rowgroup" title={group.hint}>
-                    <span className="work-order-mine-group-label">
-                      {MINE_QUEUES.find(({ id }) => id === group.id)?.label}
-                    </span>
-                    <span className="work-order-mine-group-count">{group.rows.length}</span>
-                  </th>
-                </tr>}
-                {group.rows.map((row) => <MineQueueRow key={row.ticket_id} row={row} today={today} linkState={linkState}
-                  selected={selected?.ticket_id === row.ticket_id} onSelect={() => selectTicket(row.ticket_id)} onUrged={list.reload} />)}
-              </tbody>)}
-            </table>
-          </div>}
-        {loaded && total > rows.length && <footer className="work-order-mine-footer">
-          <span>展示前 {rows.length} 张待办,共 {total.toLocaleString("zh-CN")} 张。各分组按当前展示的工单统计。</span>
-          <Link className="ops-table-action" to="/work-orders">去全部工单<ArrowRight size={14} aria-hidden="true" /></Link>
-        </footer>}
-      </section>
-      {selected && <aside className="work-order-mine-preview" id="mine-preview" aria-label="工单预览" ref={preview}>
-        <MineTicketPreview row={selected} today={today} linkState={linkState} />
-      </aside>}
-    </div>
+    <section className="order-list-shell list-shell-fill" aria-label={activeQueue.label}>
+      {list.loading ? <div className="order-empty work-order-mine-empty" role="status">
+        <LoaderCircle size={23} className="work-order-mine-loading" aria-hidden="true" />正在读取待办…
+      </div> : fail ? <TicketState fail={fail} onRetry={list.reload} />
+        : !displayedGroups.length ? <div className="order-empty work-order-mine-empty">
+          <ClipboardCheck size={27} aria-hidden="true" />
+          <h3>{rows.length ? "这一组暂无工单" : "暂无待办工单"}</h3>
+          {!rows.length && <p>分派给你的工单会出现在这里。</p>}
+        </div> : <div className="ops-table-wrap work-order-mine-scroll" role="region" aria-label="待办工单清单" tabIndex={0}>
+          <table className="ops-table work-order-mine-table" aria-label="我的待办工单">
+            <OpsTableColumns widths={[345, 205, 180, 270]} />
+            <thead><tr>
+              <th scope="col">工单 / 客户</th>
+              <th scope="col">进度</th>
+              <th scope="col">期限</th>
+              <th scope="col">办理</th>
+            </tr></thead>
+            {displayedGroups.map((group) => <tbody key={group.id}>
+              {activeQueue.id === "all" && <tr className="work-order-mine-group" data-tone={group.tone}>
+                <th colSpan={4} scope="rowgroup" title={group.hint}>
+                  <span className="work-order-mine-group-label">
+                    {MINE_QUEUES.find(({ id }) => id === group.id)?.label}
+                  </span>
+                  <span className="work-order-mine-group-count">{group.rows.length}</span>
+                </th>
+              </tr>}
+              {group.rows.map((row) => <MineQueueRow key={row.ticket_id} row={row} today={today} linkState={linkState} onUrged={list.reload} />)}
+            </tbody>)}
+          </table>
+        </div>}
+      {loaded && total > rows.length && <footer className="work-order-mine-footer">
+        <span>展示前 {rows.length} 张待办,共 {total.toLocaleString("zh-CN")} 张。各分组按当前展示的工单统计。</span>
+        <Link className="ops-table-action" to="/work-orders">去全部工单<ArrowRight size={14} aria-hidden="true" /></Link>
+      </footer>}
+    </section>
   </section>;
 }
 
@@ -197,21 +174,21 @@ function mineDeadline(row: TicketListItem, today: string) {
   return { date, label, shortLabel, relative, late: left !== null && left < (planned ? 0 : 1) };
 }
 
-function MineQueueRow({ row, today, selected, onSelect, linkState, onUrged }: {
-  row: TicketListItem; today: string; selected: boolean; onSelect: () => void; linkState: DetailLinkState; onUrged: () => void;
+function MineQueueRow({ row, today, linkState, onUrged }: {
+  row: TicketListItem; today: string; linkState: DetailLinkState; onUrged: () => void;
 }) {
+  const navigate = useNavigate();
   const summary = todoRowSummary(row);
   const step = nextStepOf(row);
   const deadline = mineDeadline(row, today);
   const ticketPath = `/work-orders/${encodeURIComponent(row.ticket_id)}`;
 
-  return <tr className="work-order-mine-row" data-selected={selected || undefined} onClick={(event) => {
+  return <tr className="work-order-mine-row" onClick={(event) => {
     if (event.target instanceof Element && event.target.closest("a, button")) return;
-    onSelect();
+    navigate(ticketPath, { state: linkState });
   }}>
     <td>
-      <button type="button" className="work-order-mine-ticket-button" onClick={onSelect} title={summary.title}
-        aria-controls="mine-preview" aria-pressed={selected}>{summary.title}</button>
+      <Link className="work-order-mine-ticket-link" to={ticketPath} state={linkState} title={summary.title}>{summary.title}</Link>
       {summary.meta && <small className="work-order-mine-meta" title={summary.meta}>{summary.meta}</small>}
     </td>
     <td><div className="work-order-mine-badges">
@@ -240,50 +217,6 @@ function MineQueueRow({ row, today, selected, onSelect, linkState, onUrged }: {
   </tr>;
 }
 
-function MineTicketPreview({ row, today, linkState }: { row: TicketListItem; today: string; linkState: DetailLinkState }) {
-  const { title } = todoRowSummary(row);
-  const deadline = mineDeadline(row, today);
-  const step = nextStepOf(row);
-  const ticketPath = `/work-orders/${encodeURIComponent(row.ticket_id)}`;
-  return <>
-    <div className="work-order-mine-preview-head">
-      <span><PanelRight size={16} aria-hidden="true" />工单预览</span>
-      <Link to={ticketPath} state={linkState}>查看详情<ArrowRight size={14} aria-hidden="true" /></Link>
-    </div>
-    <div className="work-order-mine-preview-body">
-      <div className="work-order-mine-preview-heading">
-        <div className="work-order-mine-preview-meta">
-          {row.ticket_no && <p className="work-order-mine-number">{row.ticket_no}</p>}
-          <TicketStatusTag status={row.status} type={row.ticket_type} />
-        </div>
-        <h2 aria-live="polite">{title}</h2>
-        <TicketTypeTag type={row.ticket_type} />
-      </div>
-      <dl className="work-order-mine-facts">
-        {row.customer_name && <div className="work-order-mine-customer">
-          <dt><Building2 size={15} aria-hidden="true" />客户</dt><dd>{row.customer_name}</dd>
-        </div>}
-        <div className="work-order-mine-deadline" data-late={deadline.late || undefined}>
-          <dt><CalendarClock size={16} aria-hidden="true" />{deadline.label}</dt>
-          <dd>
-            {deadline.date ? <time dateTime={deadline.date}>{fmtDate(deadline.date)}</time> : "按 SLA"}
-            {deadline.relative && <small>{deadline.relative}</small>}
-          </dd>
-        </div>
-      </dl>
-      <div className="work-order-mine-inspect-next">
-        <p>下一步</p>
-        {step.label
-          ? <Link to={step.action ? `${ticketPath}?act=${step.action}` : ticketPath} state={linkState} className="work-order-mine-preview-action">
-              {step.label}<ArrowRight size={15} aria-hidden="true" />
-            </Link>
-          : <div className="work-order-mine-passive">{passiveParts(step)}</div>}
-        {step.hint && <small>{step.hint}</small>}
-      </div>
-    </div>
-  </>;
-}
-
 /**
  * 只读态文案的渲染片段:把对家**人名**套一层 `<strong>`(业主 2026-11-18 裁定:人名要加粗)。
  *

+ 24 - 19
web-scaffold/src/pages/__tests__/work-order-mine.test.tsx

@@ -36,7 +36,11 @@ const results = (rows: TicketListItem[]) => ({ rows, total: rows.length, page: 1
 function DetailProbe() {
   const location = useLocation();
   const back = detailBack(location.state, "/work-orders", "返回工单列表");
-  return <><output aria-label="工单动作">{location.search}</output><Link to={back.to} state={back.state}>{back.label}</Link></>;
+  return <>
+    <output aria-label="工单路径">{location.pathname}</output>
+    <output aria-label="工单动作">{location.search}</output>
+    <Link to={back.to} state={back.state}>{back.label}</Link>
+  </>;
 }
 
 function renderMine() {
@@ -55,38 +59,39 @@ it("切换优先队列后可直接办理,返回时恢复队列筛选", async (
   vi.mocked(ticketList).mockResolvedValue(results([fault, planned, awaiting]));
   const queues = renderMine();
   const table = await screen.findByRole("table", { name: "我的待办工单" });
-  expect(within(table).getAllByRole("button", { name: /排查线路掉包|安排专线开通|核对接入配置/ }).map((button) => button.textContent))
+  expect(within(table).getAllByRole("link", { name: /排查线路掉包|安排专线开通|核对接入配置/ }).map((link) => link.textContent))
     .toEqual(["排查线路掉包", "安排专线开通", "核对接入配置"]);
   expect(ticketList).toHaveBeenCalledWith(expect.objectContaining({ assignee: "me", page: 1, page_size: 100 }));
 
   fireEvent.click(queues.getByRole("link", { name: /优先处理/ }));
-  expect(screen.queryByRole("button", { name: "安排专线开通" })).toBeNull();
+  expect(screen.queryByRole("link", { name: "安排专线开通" })).toBeNull();
   fireEvent.click(within(screen.getByRole("table", { name: "我的待办工单" })).getByRole("link", { name: "标记完成" }));
   expect(screen.getByLabelText("工单动作").textContent).toBe("?act=mark_done");
   const back = screen.getByRole("link", { name: "返回我的待办" });
   expect(back.getAttribute("href")).toBe("/work-orders/mine?view=due");
   fireEvent.click(back);
   expect((await screen.findByRole("link", { name: /优先处理/ })).getAttribute("aria-current")).toBe("page");
-  expect(await screen.findByRole("button", { name: "排查线路掉包" })).toBeTruthy();
-  expect(screen.queryByRole("button", { name: "核对接入配置" })).toBeNull();
+  expect(await screen.findByRole("link", { name: "排查线路掉包" })).toBeTruthy();
+  expect(screen.queryByRole("link", { name: "核对接入配置" })).toBeNull();
 });
 
-it("点击工单行的期限列可更新预览,从详情返回时保留选中项", async () => {
+it("点击工单行直接进入详情,返回时恢复待办分组", async () => {
   vi.mocked(ticketList).mockResolvedValue(results([fault, planned]));
-  renderMine();
-  const other = await screen.findByRole("button", { name: "安排专线开通" });
-  const preview = within(screen.getByRole("complementary", { name: "工单预览" }));
-  expect(preview.getByText("已超 1 天").closest("[data-late]")).toBeTruthy();
-  fireEvent.click(within(other.closest("tr")!).getByText("2026.12.02"));
-  expect(other.getAttribute("aria-pressed")).toBe("true");
-  expect(preview.getByRole("heading", { name: "安排专线开通" })).toBeTruthy();
-  expect(preview.getByText("未到执行日")).toBeTruthy();
-  expect(preview.getByText("计划执行").closest("[data-late]")).toBeNull();
-  fireEvent.click(preview.getByRole("link", { name: "查看详情" }));
+  const queues = renderMine();
+  await screen.findByRole("table", { name: "我的待办工单" });
+  expect(screen.queryByRole("complementary", { name: "工单预览" })).toBeNull();
+  fireEvent.click(queues.getByRole("link", { name: /在办/ }));
+  const title = screen.getByRole("link", { name: "安排专线开通" });
+  expect(title.getAttribute("href")).toBe("/work-orders/W-2");
+  fireEvent.click(within(title.closest("tr")!).getByText("2026.12.02"));
+  expect(screen.getByLabelText("工单路径").textContent).toBe("/work-orders/W-2");
+  expect(screen.getByLabelText("工单动作").textContent).toBe("");
   const back = screen.getByRole("link", { name: "返回我的待办" });
-  expect(back.getAttribute("href")).toBe("/work-orders/mine?selected=W-2");
+  expect(back.getAttribute("href")).toBe("/work-orders/mine?view=rest");
   fireEvent.click(back);
-  expect((await screen.findByRole("button", { name: "安排专线开通" })).getAttribute("aria-pressed")).toBe("true");
+  expect((await screen.findByRole("link", { name: /在办/ })).getAttribute("aria-current")).toBe("page");
+  fireEvent.click(await screen.findByRole("link", { name: "安排专线开通" }));
+  expect(screen.getByLabelText("工单路径").textContent).toBe("/work-orders/W-2");
 });
 
 it("待确认队列保留对家与催办,并在发送后刷新状态", async () => {
@@ -98,7 +103,7 @@ it("待确认队列保留对家与催办,并在发送后刷新状态", async (
   fireEvent.click(screen.getByRole("button", { name: "催办" }));
   expect(await screen.findByText("今日已催")).toBeTruthy();
   expect(ticketUrge).toHaveBeenCalledWith({ ticket_id: "W-3" });
-  expect(screen.getByRole("button", { name: "排查线路掉包" }).getAttribute("aria-pressed")).toBe("true");
+  expect(screen.getByRole("table", { name: "我的待办工单" })).toBeTruthy();
   fireEvent.click(queues.getByRole("link", { name: /待对方确认/ }));
   expect(within(screen.getByRole("table", { name: "我的待办工单" })).getByText("李经理")).toBeTruthy();
 });

+ 7 - 108
web-scaffold/src/styles/work-order-mine.css

@@ -96,12 +96,7 @@
 .work-order-mine-all:hover { color: var(--primary); }
 .work-order-mine-page :is(a, button, .work-order-mine-scroll):focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
 
-.work-order-mine-desk { display: grid; grid-template: minmax(250px, 1fr) / minmax(0, 1fr); align-items: start; gap: 16px; min-width: 0; }
-.work-order-mine-page.page-fill.page-fill-window > .work-order-mine-desk { flex: 1 1 0; min-height: 0; }
-.work-order-mine-desk:has(> .work-order-mine-preview) { grid-template-columns: minmax(0, 1fr) minmax(276px, 29%); }
-.work-order-mine-queue { align-self: stretch; min-width: 0; }
-.work-order-mine-queue.list-shell-fill > .work-order-mine-scroll { min-height: 0; }
-.work-order-mine-scroll { overflow: auto; overscroll-behavior-x: contain; }
+.work-order-mine-scroll { overscroll-behavior-x: contain; }
 .work-order-mine-scroll:focus-visible { outline-offset: -2px; }
 .ops-table.work-order-mine-table { min-width: 598px; table-layout: fixed; }
 .work-order-mine-table :is(th, td) { padding: 10px 12px; }
@@ -111,9 +106,10 @@
 .work-order-mine-group-label { color: var(--text-secondary); font-size: var(--type-support); font-weight: 650; vertical-align: middle; }
 .work-order-mine-group[data-tone="urgent"] .work-order-mine-group-label { color: var(--warning); }
 .work-order-mine-group-count { display: inline-block; margin-inline-start: 7px; background: var(--card); vertical-align: middle; }
-.work-order-mine-ticket-button, .work-order-mine-meta { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
-.work-order-mine-ticket-button { width: 100%; min-height: 22px; padding: 0; color: var(--foreground); font: inherit; font-weight: 560; text-align: start; cursor: pointer; }
-.work-order-mine-ticket-button:hover { color: var(--primary); text-decoration: underline; }
+.work-order-mine-ticket-link, .work-order-mine-meta { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+.work-order-mine-ticket-link { min-height: 22px; color: var(--foreground); font-weight: 560; }
+.work-order-mine-row:hover .work-order-mine-ticket-link, .work-order-mine-ticket-link:focus-visible { color: var(--primary); }
+.work-order-mine-ticket-link:hover { text-decoration: underline; }
 .work-order-mine-row td small { margin-top: 3px; color: var(--muted-foreground); font-size: var(--type-meta); line-height: 1.4; }
 .work-order-mine-badges, .work-order-mine-next { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
 .work-order-mine-badges :is(.work-order-status, .work-order-type) { padding: 2px 7px; font-size: var(--type-meta); font-weight: 500; line-height: 1.5; }
@@ -124,96 +120,7 @@
 .work-order-mine-next .work-order-next-step > svg { flex: none; }
 .work-order-mine-next .is-error { flex-basis: 100%; color: var(--destructive); white-space: normal; }
 .work-order-mine-row { cursor: pointer; }
-.work-order-mine-row[data-selected] td { background: var(--primary-soft); }
-.work-order-mine-row[data-selected] td:first-child { box-shadow: inset 3px 0 var(--primary); }
-.work-order-mine-row[data-selected] .work-order-mine-ticket-button { color: var(--primary-soft-foreground); }
-.work-order-mine-row:focus-within:not([data-selected]) td { background: var(--surface-subtle); }
-
-.work-order-mine-preview {
-  position: sticky;
-  top: calc(4rem + 16px);
-  min-width: 0;
-  max-height: 100%;
-  overflow: auto;
-  border: 1px solid var(--border);
-  border-radius: var(--radius-card);
-  background: var(--card);
-  box-shadow: var(--shadow-card);
-  scroll-margin-top: calc(4rem + 12px);
-}
-.work-order-mine-preview-head {
-  display: flex;
-  align-items: center;
-  justify-content: space-between;
-  flex-wrap: wrap;
-  gap: 8px;
-  padding: 13px 16px;
-  border-bottom: 1px solid var(--border-subtle);
-  background: var(--surface-subtle);
-  color: var(--text-secondary);
-  font-size: var(--type-support);
-}
-.work-order-mine-preview-head :is(span, a) { display: inline-flex; align-items: center; gap: 6px; }
-.work-order-mine-preview-head span { font-weight: 600; }
-.work-order-mine-preview-head a { color: var(--primary); font-size: var(--type-meta); font-weight: 550; }
-.work-order-mine-preview-head a:hover { text-decoration: underline; }
-.work-order-mine-preview-body { display: grid; gap: 16px; padding: 17px 16px 16px; min-width: 0; }
-.work-order-mine-preview-heading, .work-order-mine-facts { min-width: 0; }
-.work-order-mine-preview-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
-.work-order-mine-preview-meta .work-order-status { font-weight: 600; }
-.work-order-mine-number {
-  max-width: 100%;
-  margin: 0;
-  padding: 3px 7px;
-  border-radius: 5px;
-  background: var(--primary-soft);
-  color: var(--primary-soft-foreground);
-  font: 600 12px/1.45 var(--font-mono);
-  overflow-wrap: anywhere;
-}
-.work-order-mine-preview-heading h2 { margin: 8px 0 7px; font-size: 20px; font-weight: 680; letter-spacing: -.02em; line-height: 1.35; overflow-wrap: anywhere; }
-.work-order-mine-facts { display: grid; align-content: start; gap: 7px; margin: 0; }
-.work-order-mine-facts > div {
-  display: grid;
-  grid-template-columns: minmax(4.4em, auto) minmax(0, 1fr);
-  align-items: baseline;
-  gap: 8px;
-  padding: 8px 0;
-  font-size: var(--type-support);
-}
-.work-order-mine-facts dt { display: flex; align-items: center; gap: 5px; color: var(--text-secondary); }
-.work-order-mine-facts dt > svg { flex: none; color: var(--icon); }
-.work-order-mine-facts dd { margin: 0; color: var(--foreground); font-weight: 600; text-align: end; overflow-wrap: anywhere; }
-.work-order-mine-facts .work-order-mine-deadline { padding: 9px 10px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--surface-subtle); }
-.work-order-mine-deadline time { font: 620 15px/1.25 var(--font-mono); font-variant-numeric: tabular-nums; }
-.work-order-mine-deadline small { display: block; margin-top: 2px; color: var(--text-secondary); font-size: var(--type-meta); font-weight: 450; }
-.work-order-mine-facts .work-order-mine-deadline[data-late] { border-color: var(--warning-border); background: var(--warning-soft); }
-.work-order-mine-deadline[data-late] :is(dd, small, svg) { color: var(--warning); }
-.work-order-mine-inspect-next {
-  display: grid;
-  align-content: start;
-  gap: 6px;
-  padding: 11px 12px;
-  border: 1px solid var(--border-subtle);
-  border-radius: 9px;
-  background: var(--surface-subtle);
-}
-.work-order-mine-inspect-next > p { margin: 0; color: var(--foreground); font-size: var(--type-support); font-weight: 600; }
-.work-order-mine-inspect-next > small { color: var(--text-secondary); font-size: var(--type-meta); }
-.work-order-mine-preview-action {
-  display: flex;
-  justify-content: space-between;
-  align-items: center;
-  gap: 7px;
-  min-height: 34px;
-  padding: 4px 9px;
-  border-radius: 6px;
-  background: var(--primary);
-  color: var(--primary-foreground);
-  font-size: var(--type-support);
-  font-weight: 600;
-}
-.work-order-mine-preview-action:hover { background: var(--primary-hover); }
+.work-order-mine-row:focus-within td { background: var(--surface-subtle); }
 
 .work-order-mine-empty { gap: 8px; padding-block: 54px; }
 .work-order-mine-empty h3, .work-order-mine-empty p { margin: 0; }
@@ -224,23 +131,15 @@
   .work-order-mine-loading { animation: work-order-mine-spin 1s linear infinite; }
   @keyframes work-order-mine-spin { to { rotate: 360deg; } }
 }
-@media (max-width: 1170px) {
-  .work-order-mine-desk:has(> .work-order-mine-preview) { grid-template-columns: minmax(0, 1fr); grid-template-rows: min-content minmax(250px, 1fr); }
-  .work-order-mine-preview { position: static; grid-row: 1; max-height: none; }
-  .work-order-mine-preview-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
-}
 @media (max-width: 1100px) {
   .work-order-mine-toolbar-side { flex: 1 1 100%; }
 }
 @media (max-width: 720px) {
   .work-order-mine-hero { padding: 19px 17px; }
   .work-order-mine-hero-image { object-position: 30% center; }
-  .work-order-mine-preview-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
-  .work-order-mine-inspect-next { grid-column: 1 / -1; }
 }
 @media (max-width: 480px) {
-  .work-order-mine-page, .work-order-mine-desk { gap: 12px; }
-  .work-order-mine-preview-body { grid-template-columns: minmax(0, 1fr); gap: 11px; }
+  .work-order-mine-page { gap: 12px; }
   .work-order-mine-views > a { padding-inline: 7px; }
   .work-order-mine-views > a > svg { display: none; }
 }