Repository navigation
fix: swap the copy icons without @vite-hub/ui/icon-swap.css - #235
Conversation
…with the open fixes as patches ViteHub's main renamed the backend keys, so the D1 database and the Cloudflare and memory Realtime use `driver: "cloudflare"` / `"memory"`, and Vercel Blob is `driver: "vercel"`. The fixes still open upstream ride along as patches built from their heads on the pinned main: vite-hub/vitehub#4785 and #4788 in @vite-hub/ui, #4794 in @vite-hub/comments, onmax/comark-ui#453 in comark-time and comark-properties. ViteHub Content now renders with the same comark-ui as Drop, so one copy carries the patches.
…, a crisp +, and each person once in the toolbar The new-comment bubble is the box's frame, so the box passes `frame="none"` and the bubble shows the focus: the bordered one takes the accented border, the shadow-ring one a 22% ring (Drop comment #14). The dock's box and thread pass `size="sm"`, which brings the reply field, the 14px rows and the image shape from ViteHub, so the copies of those styles go (Drop comments #2, #7). The + of the pill is an inline SVG snapped to whole pixels while closed (Drop comment #13). The comments toolbar on Drop's own pages leaves out its faces and cursors, since the review dock already shows who's here (Drop comment #11). The frame's pop-out timing comes from ViteHub's `commentLeaveMs`.
… row reads relative `TimeAgo` goes for ViteHub's `RelativeTime`: relative under 3 weeks, then the date, with the full date in a tooltip, short words in the lists. app.vue gives it Drop's one clock, so the words and Drop's countdowns move together (Drop comment #10). The copy buttons are ViteHub's `CopyButton`, whose icons cross-fade both ways, on Drop's 1.4 s (`DropCopyButton`); Drop's `icon-in` animation goes (Drop comments #6, #12). The Updated row writes the version's full instant in comark-time's markup, and a box that had no date of its own now gets the relative-dates script too. The CSP allows comark-properties' `scripts` as they are, and the markdown cache integrity moves to drop.24.
…s render stable, and follow ViteHub's renamed drivers in tests The parts' stylesheet loads only with the viewer, so DropCopyButton brings @vite-hub/ui/icon-swap.css itself. The Updated row's tooltip id comes from the version's time instead of a random one, so a warm render matches a cold one. The blob and rate limit tests use the `cloudflare` and `memory` drivers, and the area test checks ViteHub's grey saved areas (Drop comment #1).
…ed, and comark-ui main a410d81 vite-hub/vitehub#4788 (the 130 ms pop-out and commentLeaveMs) and #4794 (overlay presence: false, one face per person) merged, so their patches go and @vite-hub/comments runs unpatched. The @vite-hub/ui patch now carries #4785 alone, built on 20ab822. comark-properties' patch follows #453's latest head. comark-ui's pin is #456's head, the same tree as its main.
# Conflicts: # package.json # pnpm-lock.yaml # server/utils/markdown-cache.ts
…gs have, since it starts two Vite servers and a browser
…ded, and drop the comark-time and comark-properties patches 5ed5886 is #458's head, the newest commit pkg.pr.new published; its packages match main 1ef8c09, since pkg.pr.new skips pushes to main.
… Escape a popover takes stays in the page comark-ui#457 opens the zoom with showModal(), which made Drop's comment layer inert: no pin could land on a zoomed screenshot. The layer moves into the dialog while it's open, hides the page's own marks there, and returns on close.
…son and their agent, and the folder opens a list of its drops The header's Copy is built once and toggles data-copied and data-pending with ViteHub's icon swap, so a press is never lost to a rebuild. Its Markdown loads once per version when the pointer or focus reaches it (doc-intent), and the click writes it in the frame; it says Markdown copied, or Couldn't copy in the frame, and reports a refusal to the client-error log. The shortcut and menus copy the same text, and show on the button too. Dropped by reads [avatar] Max · [logo] Claude Code, with what it came through, the model and the reasoning level on hover (dropDetail now carries owner). Signed-in readers get the folder's newest drops in a popover (GET /api/drops?folder=&limit=). The save menu and the folder list are native popovers placed with anchor positioning.
…etail says whose it is
…hub#4785 at 4aab7d9c style would be the native attribute in a template, so style="short" never reached the prop. The patch takes the rename (prop, RelativeTimeFormat) and Drop's lists pass format="short".
…toresize patch goes
…s the section being read and reaches the bottom (Drop comment #5)
… daylight-saving change
…op the @vite-hub/ui patch
… drawn on a zoom stays visible while the comment is written
# Conflicts: # package.json # pnpm-lock.yaml # pnpm-workspace.yaml
…keyed by the zoomed element
vite-hub/vitehub#4917 removes icon-swap.css. DropCopyButton keeps vite-hub/ui's CopyButton, which swaps its icon with SwapIcon, and the doc header frame draws its own cross-fade. Pins every @vite-hub package to that branch's preview.
Latest result Pull request merged. Final answersSession Pull request merged. Session Drop’s #228 has merged. This head replaces both stylesheet imports, and hosted CI and local lint passed. The focused browser suite could not run locally because Playwright browsers were missing. No repair was needed; the PR remains parked on its upstream merge prerequisite. Session Drop’s #228 has merged. This head replaces both stylesheet imports, and hosted CI and local lint passed. The focused browser suite could not run locally because Playwright browsers were missing. No repair was needed; the PR remains parked on its upstream merge prerequisite. Session Drop’s #228 has merged. This head replaces both stylesheet imports, and hosted CI and local lint passed. The focused browser suite could not run locally because Playwright browsers were missing. No repair was needed; the PR remains parked on its upstream merge prerequisite. Session Drop’s #228 has merged. This head replaces both stylesheet imports, and hosted CI and local lint passed. The focused browser suite could not run locally because Playwright browsers were missing. No repair was needed; the PR remains parked on its upstream merge prerequisite. Session Pushed fe1dce9 to fix the browser-test timeout: Vitest was stripping the stylesheet the test expected. The focused regression, Markdown tests, formatting, and lint passed locally. Chromium was unavailable locally, so hosted CI still needs to verify the browser test. The PR remains draft until the upstream motion stack lands and Drop’s pins move to ViteHub main. Session Pushed fe1dce9 to fix the browser-test timeout: Vitest was stripping the stylesheet the test expected. The focused regression, Markdown tests, formatting, and lint passed locally. Chromium was unavailable locally, so hosted CI still needs to verify the browser test. The PR remains draft until the upstream motion stack lands and Drop’s pins move to ViteHub main. Session Pushed fe1dce9 to fix the browser-test timeout: Vitest was stripping the stylesheet the test expected. The focused regression, Markdown tests, formatting, and lint passed locally. Chromium was unavailable locally, so hosted CI still needs to verify the browser test. The PR remains draft until the upstream motion stack lands and Drop’s pins move to ViteHub main. Session Pushed fe1dce9 to fix the browser-test timeout: Vitest was stripping the stylesheet the test expected. The focused regression, Markdown tests, formatting, and lint passed locally. Chromium was unavailable locally, so hosted CI still needs to verify the browser test. The PR remains draft until the upstream motion stack lands and Drop’s pins move to ViteHub main. |
Keeps this PR's version over base changes: - app/components/DropCopyButton.vue: This PR deliberately replaces the removed upstream stylesheet import with local styling for the currently pinned CopyButton's two-icon markup. - shared/doc-header.ts: This PR deliberately replaces the removed upstream raw stylesheet import with a local cross-fade for the standalone document frame.
There was a problem hiding this comment.
✅ No new issues found.
Approach: Sharing a local stylesheet preserves the icon swap for the currently pinned ViteHub button and the standalone Markdown frame without depending on the upstream CSS export.
Reviewed changes — No P0 or P1 findings.
- Copy icon styles: Both copy buttons use the local stylesheet, which keeps the icons in one grid cell and swaps them instantly when reduced motion is enabled. The selectors do not match the newer upstream
SwapIconmarkup. - Browser coverage: The test setup loads the real stylesheet, and all eight document-header browser tests passed locally in Chromium and Firefox. I also checked that Copy server URL on
/agentsswaps to the check and back without changing width, with and without reduced motion.
gpt-6.2-sol(high) | 𝕏

Stacked on #228. vite-hub/vitehub#4917 removes
@vite-hub/ui/icon-swap.css, which this branch imports twice, so Drop stops building once it takes that version.DropCopyButton.vuedrops the import. vite-hub/ui'sCopyButtonalready swaps its icon withSwapIcon, so the button needs no stylesheet.shared/doc-header.tsruns in the document frame as a plain script string, so it cannot callswapIcon. Its Copy button keeps the same markup (data-slot="copy-button-icon",data-icon,data-copied) and gets a cross-fade of its own: opacity and a 3px blur in 150ms, without the old 30% scale.@vite-hub/*andvite-hubpin moves fromccf6574(main) to85bb969, the pkg.pr.new preview of vitehub#4917, and the lockfile follows (pnpm install --lockfile-only).That preview is the motion stack and is 33 commits behind
ccf6574on main, so this stays a draft until the stack merges; then the pins move to main.I haven't run Drop's build or tests on this branch, only the lockfile update.
Prepared with Claude Opus 5.5 in T3 Code.