Skip to content

NW | 26-SDC-Mar | TzeMing Ho | Sprint 1 | feature rebloom#237

Open
TzeMingHo wants to merge 13 commits into
CodeYourFuture:mainfrom
TzeMingHo:coursework/feature-rebloom
Open

NW | 26-SDC-Mar | TzeMing Ho | Sprint 1 | feature rebloom#237
TzeMingHo wants to merge 13 commits into
CodeYourFuture:mainfrom
TzeMingHo:coursework/feature-rebloom

Conversation

@TzeMingHo

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Backend Changes
Created a separate RebloomView dataclass in data/blooms.py to handle shared posts cleanly, keeping the original Bloom class lightweight.
Refactored feed sorting in endpoints.py to use a new activity_timestamp. This ensures home_timeline, user_timeline, and other_profile sort sequentially by interaction time (creation vs. rebloom time).
Integrated a SQL subquery to dynamically calculate the live rebloom_count for each post.

Frontend Changes
Updated createBloom in bloom.mjs to conditionally display the "Rebloomed by [User]" header and toggle the interactive counter badge. Expanded the HTML template and styles (index.html/index.css) with a dedicated data-is-rebloom="true"` theme to give shared posts a distinctive look.

@TzeMingHo TzeMingHo added 📅 Sprint 1 Assigned during Sprint 1 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant