Ignore:
Timestamp:
08/24/26 20:57:09 (13 days ago)
Author:
kikisrbinoska <srbinoskakristina07@…>
Branches:
main
Parents:
a6e33d1
Message:

Added corrected entitef from the ER diagram and changes for the logic to be coresponding to the ddl

Location:
chapterx-frontend/src/components
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • chapterx-frontend/src/components/admin/ContentModerationTable.tsx

    ra6e33d1 re882b92  
    2020    deleteStory(story.story_id)
    2121    addNotification({
    22       user_id: story.user_id,
    23       type: 'system',
    24       title: 'Story Removed',
    25       message: `Your story "${story.title}" has been removed by an administrator.`,
     22      userId: story.user_id,
     23      contentType: 'system',
     24      content: `Your story "${story.title}" has been removed by an administrator.`,
    2625    })
    2726    addToast(`"${story.title}" removed from platform`, 'info')
  • chapterx-frontend/src/components/story/CommentSection.tsx

    ra6e33d1 re882b92  
    8080      if (currentUser.user_id !== authorUserId) {
    8181        await addNotification({
    82           recipientUserId: authorUserId,
    83           type: 'comment',
     82          userId: authorUserId,
     83          contentType: 'comment',
    8484          content: `${currentUser.username} commented: "${text.trim().slice(0, 60)}${text.length > 60 ? '...' : ''}"`,
     85          storyId,
    8586          link: `/story/${storyId}`,
    8687        })
  • chapterx-frontend/src/components/story/LikeButton.tsx

    ra6e33d1 re882b92  
    5959        if (currentUser.user_id !== authorUserId) {
    6060          await addNotification({
    61             recipientUserId: authorUserId,
    62             type: 'like',
     61            userId: authorUserId,
     62            contentType: 'like',
    6363            content: `${currentUser.username} liked your story.`,
     64            storyId,
    6465            link: `/story/${storyId}`,
    6566          })
  • chapterx-frontend/src/components/writer/CollaboratorManager.tsx

    ra6e33d1 re882b92  
    6262    addCollaboration(newCollab)
    6363    addNotification({
    64       recipientUserId: user.user_id,
    65       type: 'collaboration',
     64      userId: user.user_id,
     65      contentType: 'collaboration',
    6666      content: `You've been invited to collaborate on "${storyTitle}" as ${selectedRole}.`,
     67      storyId,
    6768      link: `/story/${storyId}`,
    6869    })
Note: See TracChangeset for help on using the changeset viewer.