Skip to content

Add expandable tasks view for friends to show all tasks instead of "+N more"#6

Merged
shobhit2603 merged 6 commits into
mainfrom
copilot/add-option-to-see-all-friends-tasks
May 22, 2026
Merged

Add expandable tasks view for friends to show all tasks instead of "+N more"#6
shobhit2603 merged 6 commits into
mainfrom
copilot/add-option-to-see-all-friends-tasks

Conversation

Copilot AI commented May 22, 2026

Copy link
Copy Markdown
Contributor

Addresses poor UX where users could only view the first 3 of their friends' tasks, with remaining tasks hidden behind "+N more" indicators. Users can now expand any friend's tasks section to view all items.

Changes

UI Improvements

  • Added expand/collapse toggles to friend tasks sections on home page and friends page
  • Displays first 3 tasks by default with "+N more" button; clicking expands to show all tasks
  • Visual indicator (rotating caret icon) shows expanded/collapsed state
  • "Show less" button collapses the list back

Code Quality

  • Extracted task rendering logic into shared utility (lib/taskRenderer.js) to eliminate duplication
  • Fixed styling inconsistencies (consistent truncate class usage)
  • Proper function declaration ordering to avoid hoisting issues

Example

Before: User sees "+2 more" and cannot access those tasks

Friend Activity:
- Task 1
- Task 2  
- Task 3
+2 more

After: User can expand to see all tasks

Friend Activity:
- Task 1
- Task 2
- Task 3
- Task 4
- Task 5
Show less ▲

All task status indicators (completed, in progress, not started) are preserved with consistent visual treatment across both pages.

@vercel

vercel Bot commented May 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
momentum Ready Ready Preview, Comment May 22, 2026 5:32pm

…sues

Co-authored-by: shobhit2603 <149822769+shobhit2603@users.noreply.github.com>
…x styling inconsistency

Co-authored-by: shobhit2603 <149822769+shobhit2603@users.noreply.github.com>
Co-authored-by: shobhit2603 <149822769+shobhit2603@users.noreply.github.com>
Co-authored-by: shobhit2603 <149822769+shobhit2603@users.noreply.github.com>
Copilot AI changed the title [WIP] Add option to see all tasks of friends Add expandable tasks view for friends to show all tasks instead of "+N more" May 22, 2026
Copilot AI requested a review from shobhit2603 May 22, 2026 17:33

@shobhit2603 shobhit2603 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I have reviewed the code and i think everything looks fine.

@shobhit2603 shobhit2603 marked this pull request as ready for review May 22, 2026 18:21
Copilot AI review requested due to automatic review settings May 22, 2026 18:21
@shobhit2603 shobhit2603 merged commit a00110c into main May 22, 2026
2 of 3 checks passed
@shobhit2603 shobhit2603 deleted the copilot/add-option-to-see-all-friends-tasks branch May 22, 2026 18:21
Copilot AI removed the request for review from Copilot May 22, 2026 18:47
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.

issue: show all tasks of friends

2 participants