Skip to content

Conversation

eediallo
Copy link

@eediallo eediallo commented Jun 2, 2025

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

This PR implements the unfollow feature. The following steps were taken:

Frontend

  1. Defined the feature requirements.
  2. Wrote a failing test to drive the implementation.
  3. Built the UI by:
    a. Adding an "Unfollow" button in the index.html file
    b. Populating the button using the createProfile function in components/profile.mjs file
    c. Creating the handleUnfollow event handler
  4. Updated the unfollowUser function in api.mjs to align with the structure and conventions of the _apiRequest function.

Backend

  1. Added the do_unfollow function in endpoints.py
  2. Created the unfollow function to handle the request logic
  3. Added the /unfollow route in main.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

1 participant