Repository navigation
fix: highlight links in profile bios - #712
Closed
Matildevoldsen wants to merge 1 commit into
Closed
Matildevoldsen wants to merge 1 commit into
Matildevoldsen wants to merge 1 commit into
Conversation
Contributor
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Profile bios render URLs as plain text, so readers cannot follow links in a developer's description. Render the bio with the existing
LinkifiedTextcomponent so URLs get the same highlighting, shortening, and safe link attributes as commits.A small
ProfileBiocomponent preserves the existing spacing and line breaks and omits empty bios. Regression tests cover bare domains,www., HTTP/HTTPS, paths, queries, fragments, punctuation, HTML escaping, and text that should stay unlinked. The knowledge base documents the behavior.Before and after
Same seeded profile, bio, viewport (1440 × 900), and light theme. The bio includes
example.com,www.example.com,http://example.com,https://example.com, a URL with a query and fragment, and an email address.Validation
bun run buildcomposer test:types(PHPStan and both TypeScript projects)composer test:type-coverage— 100%bun run test:unit— 85 passedbun x vp test --config tests/draft-images.config.ts— 156 passed, including 31 profile bio testscomposer test:lint— passed (three existing no-floating-promises warnings inIssueCommands.test.ts)--parallel --ci --coverage --exactly=100.0— 3,281 tests passed, 100% coverage