Repository navigation
feature: React item details (recursive collapsible comments, polls) + user profile - #920
Merged
devin-ai-integration[bot] merged 1 commit intoOct 21, 2026
Conversation
…d user profile to React Co-Authored-By: Ishita Gupta <ishita.gupta@cognition.ai>
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Author
devin-ai-integration
Bot
merged commit Oct 21, 2026
0d868a8
into
devin/1792603540-react-foundation
4 checks passed
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.
Summary
Workstream 3 of the Angular→React port: replaces the placeholders in
react-app/src/features/item-details/**andreact-app/src/features/user/**(exportsItemDetails,Comment,UserProfileunchanged for the frozen lazy route table). Only those two folders are touched.ItemDetails(/item/:id):useScrollToTop(id)first, thenuseItem(id). Loader →ErrorMessagewith Angular's exactCould not load item comments.(unknown/invalid ids like/item/abcand server errors all surfaceisError, never an endless loader). Title link honours SettingsopenLinkInNewTab; internalitem?id=stories route in-app; domain, points/user/time,commentLabel(comments_count); jobs drop points/comments like Angular.content+ poll option text go throughsanitizeHtml(no extraitem?id=rewriting). Polls: points per option +.pollBarwidthpoints / poll_votes_count, guarded to0%whenpoll_votes_count === 0.Comment: recursive, each node ownscollapsestate.span.collapsetoggles[-]/[+], adds.meta-collapse, hides the subtree;role="button",tabIndex={0}, Enter/Space,aria-expanded. Deleted →.deleted-meta[deleted] | Comment Deleted. Header whitespace matches Angular (measured 0px gaps[-]→user→.timeon :4300 vs :4200).UserProfile(/user/:id):useScrollToTop(id)first,useUser(id);'Could not load user ' + id + '.'for HNPWAnull/plain-text/404; id,karma ★,Created …, sanitizedabout(block omitted when empty), mobileProfile: idheader with keyboard-operable.back-button.:where(.main-content.item-details),:where(.app-comment),:where(.user-profile)so_themes.scssstill wins. Pinned (normal specificity) inside scope against leaks from other features: browser-defaultpmargins and normal-weight underlined links in sanitized story/poll/comment HTML (Angular's:host >>> a { bold; none }never reached comment HTML — measured on :4300), item title stays 16px (no feedtitleFontSize), profile.nameinline.buttonKeys.ts: tiny feature-localonButtonKeyDown(action)helper for Enter/Space on Angular-markuprole="button"elements.Tests (no network;
mockFetch+renderWithProviders): loading, exact error strings, invalid id /null/ plain-text / 404 user, sanitization incl. HN-relative links, Settings new-tab effect, polls incl. zero-vote guard, jobs, recursive collapse independence, keyboard a11y (Enter/Space), back navigation.npm ci && npm run lint && npm run format:check && npm run typecheck && npm test && npm run buildall pass locally.Shared changes needed: none.
Devin-Org: engineering
Link to Devin session: https://devin-gtm.devinenterprise.com/sessions/8cd0fe143ae548cd8651488878934a00
Open in Devin Desktop: https://devin-gtm.devinenterprise.com/desktop/session/8cd0fe143ae548cd8651488878934a00?variant=devin
Requested by: @ishita-cog
Note
Devin errored when opening this Pull Request as ishita-cog.
As a fallback, Devin opened this PR as itself.
Devin Review