-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added shortlinking option #543
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Caution Review failedThe pull request is closed. WalkthroughThe pull request introduces a comprehensive short-linking feature across the application's backend and frontend. The implementation includes a new Changes
Sequence DiagramsequenceDiagram
participant User
participant Frontend
participant Backend
participant ShortLinkService
participant DubAPI
User->>Frontend: Create Post
Frontend->>Backend: Check if short-linking needed
Backend->>ShortLinkService: askShortLinkedin()
ShortLinkService-->>Backend: Return shortlink recommendation
Backend-->>Frontend: Recommend short-linking
User->>Frontend: Confirm short-linking
Frontend->>Backend: Create Post with shortlink
Backend->>ShortLinkService: convertTextToShortLinks()
ShortLinkService->>DubAPI: Create short links
DubAPI-->>ShortLinkService: Return short links
ShortLinkService-->>Backend: Updated post content
Backend->>Backend: Save Post
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (12)
Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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 (
|
// title: `Adding posts for ${getDate.format('DD/MM/YYYY HH:mm')}`, | ||
}); | ||
}, | ||
[] |
Check warning
Code scanning / ESLint
verifies the list of dependencies for Hooks like useEffect and similar Warning
|
||
const loadStatistics = useCallback(async () => { | ||
return (await fetch(`/posts/${postId}/statistics`)).json(); | ||
}, [postId]); |
Check warning
Code scanning / ESLint
verifies the list of dependencies for Hooks like useEffect and similar Warning
|
||
const closeAll = useCallback(() => { | ||
modals.closeAll(); | ||
}, []); |
Check warning
Code scanning / ESLint
verifies the list of dependencies for Hooks like useEffect and similar Warning
Summary by CodeRabbit
Release Notes
New Features
Improvements
User Experience