about summary refs log tree commit diff
path: root/index.js
diff options
context:
space:
mode:
authorLW <git@llllvvuu.dev>2023-05-16 11:13:05 -0700
committerGitHub <noreply@github.com>2023-05-16 13:13:05 -0500
commit50c1841a06d0502428f70bb0bb225cca70f82c20 (patch)
tree47b12090bb18e04e599a45cae7648135c772ab28 /index.js
parenta5838694bd7debecc1d66ce8f8e4492350ea289f (diff)
downloadvoidsky-50c1841a06d0502428f70bb0bb225cca70f82c20.tar.zst
feat: Update HTML `title` on web #626 #599 (#655)
For any `Screen` that shows on desktop, `title` is "(1) ... - Bluesky"
where "(1)" is the unread notification count.

The titles are unlocalized and the string "Bluesky" is hardcoded,
following the pattern of the rest of the app.

Display names and post content are loaded into the title as effects.

Tested:
* all screens
* screen changes / component mounts/unmounts
* long posts with links and images
* display name set/unset
* spamming myself with notifications, clearing notifications
* /profile/did:... links
* lint (only my changed files), jest, e2e.

New utilities: `useUnreadCountLabel`, `bskyTitle`,
`combinedDisplayName`, `useSetTitle`.

resolves: #626 #599
Diffstat (limited to 'index.js')
0 files changed, 0 insertions, 0 deletions