Skip to content

fix(records): the editor's DOCiD reads whole, and copying it says so - #941

Merged
sickerine merged 1 commit into
mainfrom
fix/docid-editor-copy
Nov 25, 2026
Merged

sickerine merged 1 commit into
mainfrom
fix/docid-editor-copy

Conversation

@sickerine

Copy link
Copy Markdown
Collaborator

Found by the daily QA of 25 November, checking #940.

Problem

In the record editor's Identifiers, the DOCiD a record came with:

  • Its copy button copied the Handle's address and showed nothing. Every other copy button in the admin says "… copied" in a toast.
  • Its Handle was cut with an ellipsis and had no tooltip. A real Handle (20.500.14351/0afbd51b8b210b965a5d) lost its end even at 1440px and normal text (219px in 215px), and showed 52 of 219px at 390px with 200% text. The DOI in the same section wraps.

Change

DocidFact.tsx:

  • Copying toasts "DOCiD copied", or "Could not copy the DOCiD", as the other copy buttons do.
  • The Handle wraps (break-all, as the DOI does). The copy button sits in a box one line high (h-[1lh]), so it stays on the Handle's first line at any text size.

Checks

  • npm run quality:fallow -- --base origin/main (pass), npm run check:ui-rules, eslint on the file, tsc --noEmit.
  • The same classes applied to Sources QA's live editor (Chromium 1440 at 100%, 390 at 100% and 200%; WebKit 390 at 200%): the Handle wraps onto 2, 1, 5 and 6 lines with nothing cut, and the button's centre matches the first line's centre each time.
  • Reviewed by GPT-6.1 Sol: no findings.
  • The live check on Sources QA follows the release.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 37df58c2-8451-4458-89d5-ce2241a2ea4f
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T07:42:34.303662Z 2dfe982 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sickerine
sickerine merged commit 1bdc2c0 into main Nov 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant