Skip to content

London | Elhadj Abdoul Diallo | Module-Legacy-Code | WEEK1 - Feature/unfollow #17

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

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

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