Repository navigation
feat(profile): profiles in Settings, /u?id= and dg profile (P1-7, 1/2) - #346
Merged
Merged
Conversation
Settings → Public profile and dg profile show/set/delete read and write the forge-community profile document (display name, bio, avatar, company, location, links). Both clients check edits with one shared rule (forge_core::rules::profile, lib/rules/profile.ts) held equal by the profile_input and avatar_config vectors. /u lays the profile out as GitHub does, takes ?id= (D-222) beside ?name=, and draws the avatar from avatarConfig: the initial, a local identicon, or an https image loaded only when the viewer asks. Internal profile links use ?id=. The profile page reads one more document (9 requests cold on sakura, pb-5). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (83)
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. Comment |
# Conflicts: # forge-web/lib/rules/conformance.test.ts
This was referenced Oct 2, 2026
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.
P1-7 (1/2): profiles
Reads and writes the existing forge-community
profiletype. The contracts are not changed: this PR uses only the type's existing properties.What ships
/settings/profile/). Edit the display name, bio, company, location, up to 4 https links and the avatar. A live preview shows beside the form. Each field is checked as you type, Save shows the cost, and the write goes through the usual confirm dialog. Delete profile refunds part of the fee. A notice above the form says the profile is public and never encrypted, private repos included./uprofile page, in GitHub's layout: a side column with the avatar, display name, DPNS pill, bio, Follow or Edit profile, counts, company, location and links. Repos sit beside it on desktop and below it at 390 px./u/?id=<identity id>(D-222)./u/?name=still takes a DPNS name, or an identity id as before. Internal links (Author pills, follow lists, header, jump box) now use?id=. Follower and following pages take?id=too.avatarConfig. Forge hosts no images. The options are:identicon/identicon:<seed>: a 5×5 SHA-256 pattern drawn locally;hooks/use-image-hosts.ts).dg profile show [IDENTITY],dg profile set …,dg profile delete.setkeeps any field you don't name, and an empty value clears a field.--linkis repeatable and replaces all links;--clear-linksremoves them;--bio-filereads the bio from a file. Invalid input fails with E201 before anything is signed.Shared rule
forge_core::rules::profileandforge-web/lib/rules/profile.tsshare one normalization rule:trimwould strip);avatarConfigmust follow one of the avatar conventions above.36 new conformance vectors (
profile_input__*,avatar_config__*) pass in both languages. The conventions are documented indocs/contracts/forge-v2.md(profile row).Budget
/ureads one more document, the profile, in parallel with the other reads. Measured cold on sakura: 9 DAPI requests. The newpb-5budget test is ≤ 12 and asserts the profile is read exactly once; it passes against sakura. a11y coverssettings-profileandprofile-by-idin both themes, plus a one-h1 check.Live verification on sakura (scratch identities
alice,bob)profilebase (24M). The dg quote overhead is 40M.dash-forge-qa/evidence/p1-7/(dg-*.txt,web/*.png,web/web-*.log).Review
The code-review skill ran at high effort and its valid findings were fixed:
--bio-file -now needs--yes;markdown-view;withSchemekeeps host:port;A simplify pass then reused
sameValueand dg'sidentity_arg.Gates:
cargo fmt,clippy -D warnings,cargo test --workspace,tsc,eslintandvitest(5,384 tests) all pass.PR 2 of 2 (signed-commit badges from
profile.pubkeys) follows.🤖 Generated with Claude Code