Skip to content

feat: show dev/null commit links as the author and short hash - #349

Merged
xHeaven merged 3 commits into
dev-null-sh:productionfrom
xHeaven:feat/commit-link-hash
Oct 17, 2026
Merged

xHeaven merged 3 commits into
dev-null-sh:productionfrom
xHeaven:feat/commit-link-hash

Conversation

@xHeaven

@xHeaven xHeaven commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Links to dev/null commits, like https://dev-null.sh/@Hacksore/commits/01a14a9d-7971-73ea-8f35-135fe5149ca8, were shown as a shortened URL. They now show as the dev/null mark followed by the author and the commit's short hash: // Hacksore/5149ca8. The link card is unchanged and still shows when it is enabled.

Behavior

  • Only a commit permalink matches: http(s)://(www.)dev-null.sh/@{username}/commits/{uuid}, with nothing after the id. Photo URLs, query strings, profiles and other hosts keep rendering as normal shortened links.
  • The hash comes from the existing shortHash(), so it matches the hash shown on commit cards, toasts and the commit header.
  • Clicking the link opens the commit in the app with an Inertia visit instead of a new tab.
  • As with shortened URLs, the full URL stays in the text, so copying the commit body copies the real link. Screen readers announce "@Hacksore’s commit 5149ca8", and the full URL is in title.
  • The mark never wraps onto a line by itself. Long usernames can wrap inside the label, so they can't overflow on mobile.

Opening a commit link

Hovering and clicking a commit link opens the linked commit

MP4

Desktop light Desktop dark
Commit links light Commit links dark
Mobile light Mobile dark
Commit links mobile light Commit links mobile dark

Validation

  • bun test tests/Unit/LinkifiedText.test.tsx: 12 pass. New tests cover the label, the in-app href, the title, the accessible name, copy fidelity, and links that must stay URLs.
  • bun run test:lint and bun run test:types pass.
  • Checked manually against a local Postgres seed, in light and dark at 1440×900 and 390×844, with no horizontal overflow and no console errors. Copying the body was checked to return both full URLs.

Limitations

  • Matching is hard-coded to dev-null.sh. Links to other hosts, including local APP_URLs, render as normal URLs.
  • Server-side text (app/Services/Urls.php, used outside the web UI) still shortens these as URLs.

@xHeaven
xHeaven merged commit efa271d into dev-null-sh:production Oct 17, 2026
4 checks passed
@xHeaven
xHeaven deleted the feat/commit-link-hash branch October 17, 2026 18:34
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