PR 3/6: React Migration — Shared & Layout Components#44
Open
devanshi-gpta wants to merge 1 commit into
Open
Conversation
- Header component with NavLink for active route highlighting - Footer component with year and attribution - ListErrors component for form error display - ArticleMeta component with author avatar, name, and date - ArticlePreview component with favorite toggle - ArticleList component with pagination and loading state - ArticleComment component with delete option for comment authors - FavoriteButton component with auth-gated favoriting - FollowButton component with auth-gated following Co-Authored-By: Devanshi Gupta <devanshi.gupta@cognition.ai>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
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
Third PR in the 6-part Angular→React migration. Ports all shared/layout components used across pages.
Layout:
Header— nav with<NavLink>for active tab styling, renders different nav items based onauthState(loading/unauthenticated/authenticated/unavailable)Footer— static footer with year and attributionShared components:
ListErrors— rendersErrors.errorsobject as<ul class="error-messages">ArticleMeta— author avatar + username link + formatted date, accepts children for action buttonsArticlePreview— article card withArticleMeta,FavoriteButton, tag list, and<Link>to articleArticleList— fetches paginated articles viaqueryArticles, rendersArticlePreviewlist with pagination buttons and empty-feed messagingArticleComment— comment card with author info, body, date, and conditional delete iconFavoriteButton— auth-gated toggle callingfavoriteArticle/unfavoriteArticleFollowButton— auth-gated toggle callingfollowUser/unfollowUserLink to Devin session: https://app.devin.ai/sessions/6215127f80d4463cad3055cf81b87f0c
Requested by: @devanshi-gpta
Devin Review