Conversation
* feat: update my feeds tab on profile page * feat: update tabs to be routes * fix: double scrollbar * comment unused files in overview tab * fix: revert rsbuild * fmt * fix: add routegen to prettier ignore * clean up, server side --------- Co-authored-by: Elliot Braem <elliot@ejlbraem.com>
* feat: add name and tag validation to create * feat: add no activity data in activity tab * add coming soon sections for profile page * feat: clicking on leaderboard feed hashtag will redirect to that feed * fix: keeps name on start when disable feed names collapse * fix: rsbuild * fix: add routegen to prettier ignore * fix: add ability to navigate to collapsed feeds in leaderboard * add ability to expand or collapse all * fix: rsbuild * adjustments * nitpicks --------- Co-authored-by: Elliot Braem <elliot@ejlbraem.com>
* feat: update the feed editor * feat: improve performance, and fix bugs * feat: revert local development change * add routegen to pretttier ignore * fix: resolve code rabbit comments * fix some nitpick comments * fix prettier and build config * formats * merge --------- Co-authored-by: Elliot Braem <elliot@ejlbraem.com>
* Feat: add recent feeds * feat: add recent content to the main feed page * fmt * Update apps/app/src/hooks/use-rss-feed.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * nitpicks --------- Co-authored-by: Elliot Braem <elliot@everything.dev> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Elliot Braem <elliot@ejlbraem.com>
|
Caution Review failedThe pull request is closed. WalkthroughThis update adjusts error handling and URL construction in both backend and frontend code. Error logging in the feeds API is now limited to unexpected errors. The frontend modifies how RSS feed URLs are built and simplifies error handling in feed creation validation. The RSS distributor configuration also updates its service URL format. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Frontend
participant Backend
User->>Frontend: Initiate feed creation/validation
Frontend->>Backend: GET /api/feeds/:feedId
Backend-->>Frontend: 404 NotFound or Feed data
alt NotFoundError
Frontend->>Frontend: Clear "id" errors
else Other error
Backend->>Backend: Log error
Frontend->>Frontend: Clear "id" errors
end
Frontend->>Frontend: Construct serviceUrl (with/without /rss.xml)
Frontend->>Backend: Fetch RSS feed using serviceUrl
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
apps/app/src/routes/_layout/create/feed/_tabs/index.tsx (1)
85-86: Simplified error handling may hide network issues from users.The simplified error handling is cleaner but treats all errors (including network errors) the same way. While this allows users to proceed when there are connectivity issues, consider providing user feedback for network errors to improve the user experience.
Consider this enhancement to differentiate between network errors and other errors:
- } catch { - form.clearErrors("id"); + } catch (error) { + form.clearErrors("id"); + // Optionally show a toast or indicator for network errors + if (error instanceof Error && error.message.includes('fetch')) { + console.warn('Network error while validating feed ID:', error); + }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
apps/api/src/routes/api/feeds.ts(1 hunks)apps/app/src/hooks/use-rss-feed.ts(1 hunks)apps/app/src/routes/_layout/create/feed/_tabs/index.tsx(1 hunks)apps/app/src/store/feed-creation-store.ts(1 hunks)
🔇 Additional comments (2)
apps/app/src/store/feed-creation-store.ts (1)
138-138: Good separation of concerns in URL construction.The change to store the base URL without
/rss.xmlsuffix is well-designed. This allows the configuration to remain endpoint-agnostic while the consumption layer (inuse-rss-feed.ts) adds the specific endpoint as needed.apps/api/src/routes/api/feeds.ts (1)
145-145: Improved error logging by excluding expected errors.Moving the error logging after the NotFoundError check is a good practice. NotFoundError is an expected error type that shouldn't be logged, reducing noise and focusing on actual unexpected errors.
Summary by CodeRabbit
Bug Fixes
Refactor