Skip to content

Feat/39 bookmarks - #49

Merged
xandreiAThome merged 28 commits into
devfrom
feat/39-bookmarks
May 25, 2026
Merged

xandreiAThome merged 28 commits into
devfrom
feat/39-bookmarks

Conversation

@420Rain

@420Rain 420Rain commented May 24, 2026

Copy link
Copy Markdown

Summary

  • Created bookmark button component and its functionality
    • Able to bookmark an article on the homepage, related sidebar, and article page
    • Included optimistic updates when bookmarking
    • Only authenticated users can bookmark
  • Created bookmark/page.tsx to display a user's bookmarked articles
    • Includes skeleton loading states and a message for empty states
    • Added redirection to /login if the user is not authenticated
  • Added toasts for error messages

Linked Issues

closes #39

Type of Change

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation update
  • chore/refactor: Maintenance or code restructure

Notes for Reviewers

Hardcoded articleIds in SavedArticlesSection.tsx and RecentlyViewedSection.tsx in the related sidebar (might deal with this in #40 ) and in ArticleHeader.tsx since there's no route like /article/[id] or /article/[slug]

@420Rain
420Rain requested a review from xandreiAThome May 24, 2026 04:40
@420Rain
420Rain changed the base branch from main to dev May 24, 2026 05:04

@xandreiAThome xandreiAThome left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Connect the bookmark button sa sidenav to redirect to bookmark route. Gawin mo na din pala for the home button.
  • show the login modal instead of showing toast kung mag bookmark yung di naka login. gaya sa comments and reactions.

Comment thread src/components/atoms/SmallArticleItem.tsx Outdated
Comment thread src/components/molecules/SavedArticlesSection.tsx Outdated
@420Rain
420Rain requested a review from xandreiAThome May 24, 2026 12:56

@xandreiAThome xandreiAThome left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few things pa

Comment thread src/components/molecules/SavedArticlesSection.tsx Outdated
Comment thread src/features/article/components/organisms/ArticleHeader.tsx Outdated
@xandreiAThome
xandreiAThome merged commit e41e8df into dev May 25, 2026
@xandreiAThome
xandreiAThome deleted the feat/39-bookmarks branch May 25, 2026 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Frontend] Bookmark Feature

2 participants