Skip to content

FRONTEND - Implement Friends Page UI #221

@A6dulmalik

Description

@A6dulmalik

Description

Build the Friends Page UI based on the provided Figma design.
This issue is UI-only and must not consume backend endpoints.
All data should be mocked or passed as props.

Figma Access

This page represents the Following / Followers view and must be accessible via navigation from the Profile page.

The focus is on:

  • Component structure
  • Layout fidelity
  • Reusability
  • Responsiveness
  • Design accuracy

Design Reference

Friends UI
Link


Scope of Work

1. Friends Page Rendering

Create a Friends page component that renders inside the existing layout.

Note

  • Side Navigation and Top Navigation already exist
  • This issue only concerns the Friends page content

Page title:

  • Friends

2. Friends Tabs (UI-only)

Implement a tab switcher with:

  • Following
  • Followers

Requirements:

  • Active tab must be visually distinct
  • Switching tabs updates the displayed list (mocked data)
  • No backend logic

3. Friend List Item Component

Create a reusable FriendListItem component.

Each item displays:

  • Avatar (mocked or placeholder)
  • Username (e.g. Aaron)
  • Right arrow / chevron icon

Props:

  • avatar
  • username
  • onClick

Behavior:

  • Entire row is clickable
  • Divider between list items
  • Used for both Following and Followers lists

4. Add Friends Action

At the bottom of the page:

  • Text: Add Friends +
  • Styled as an action button or link

Navigation:

  • Routes to a placeholder page (e.g. /friends/add)
  • Uses Next.js navigation (useRouter)

5. Access Point (Required)

This page must be accessible by clicking:

  • Following
  • Followers

on the Profile page UI.

Navigation may optionally pass a query param to set the active tab:

  • /friends?tab=following
  • /friends?tab=followers

Requirements

  • No API calls
  • Use mocked props or temporary constants
  • Components must be reusable and composable
  • Responsive layout (desktop-first, mobile-friendly)
  • Match Figma spacing, colors, and hierarchy closely

Acceptance Criteria

  • Friends page renders correctly within the existing layout
  • Following / Followers tabs switch correctly (UI-only)
  • Friend list items are reusable components
  • Add Friends action navigates correctly
  • Fully responsive across screen sizes
  • No API or backend logic
  • Clean, readable component structure

Contribution Notes

  • Read the CONTRIBUTING.md file before starting
  • Run all required commands listed there
  • Ensure all tests pass before opening a PR
  • PRs with failing tests will not be merged

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions