# Connect Section – Phased Tasks

Phases for the Connect section. Status: **Not started** | **In progress** | **Done**.

---

## Phase 1 – Foundation & quick fixes  
**Status: Done**

| # | Task | Status |
|---|------|--------|
| 1.1 | Disable image upload in composer UI (hide Photo button, file input, image preview) | Done |
| 1.2 | Backend: reject/ignore image in ConnectController `store()`; remove image handling | Done |
| 1.3 | Fix profile documents: `user/profile/view` – use `original_filename`, `file_url`/`file_path` | Done |
| 1.4 | Fix documents in employer nurse profile view (same UserDocument fields) | Done |
| 1.5 | Migration: add to `nurse_posts` – `background_color`, `text_color`, `style_preset` (nullable) | Done |
| 1.6 | NursePost model: add new styling fields to fillable | Done |

---

## Phase 2 – Post styling (text + custom background)

**Status: Done**

| # | Task | Status |
|---|------|--------|
| 2.1 | Composer: add background color picker or preset palette | Done |
| 2.2 | Composer: optional text color for post body | Done |
| 2.3 | Composer: optional style presets (e.g. quote, tip, milestone) with predefined colors | Done |
| 2.4 | ConnectController: accept and save `background_color`, `text_color`, `style_preset` | Done |
| 2.5 | Post card partial: render post body with chosen background/styling (inline or class) | Done |
| 2.6 | Validation: allow only safe colors / preset keys | Done |

---

## Phase 3 – Profile completeness (other users’ profiles)

**Status: Not started**

| # | Task | Status |
|---|------|--------|
| 3.1 | Profile view: Connection CTA – Connect / Pending / Message (use connection API) | Pending |
| 3.2 | Profile view: “View posts” / Timeline link to `nurse.connect.timeline.user` | Pending |
| 3.3 | Profile view: hide email/phone from non-owner (or non-connected) | Pending |
| 3.4 | Timeline (other user): profile summary card; Connect / Message / Pending consistent with profile | Pending |
| 3.5 | Employer nurse profile: Application CTA if applicable | Pending |

---

## Phase 4 – Structure & empty states

**Status: Not started**

| # | Task | Status |
|---|------|--------|
| 4.1 | Feed empty states: All, Network, My Posts, etc. – message + CTA | Pending |
| 4.2 | Timeline empty states: Posts, Replies, Network tabs | Pending |
| 4.3 | Single post card partial for index + timeline (already shared; verify consistency) | Pending |
| 4.4 | Document or consolidate nurse/connect vs user/connect views (reduce duplication) | Pending |

---

## Phase 5 – Polish & extra features

**Status: Not started**

| # | Task | Status |
|---|------|--------|
| 5.1 | Block/unblock: expose in UI (profile or post menu); use existing API routes | Pending |
| 5.2 | Quote post: verify end-to-end (repost → Quote → form → submit → display) | Pending |
| 5.3 | Search/filter persistence (query string) across tab/pagination | Pending |
| 5.4 | Connection requests: accept/decline list and feedback in Connect UI | Pending |
| 5.5 | Accessibility: focus states, keyboard nav, ARIA where needed | Pending |
| 5.6 | Mobile: composer and feed; sidebar collapse/expand or bottom sheet | Pending |

---

## Reference – Posting model (current scope)

- **No image posting.** Text only with optional custom background color/styling or user-chosen style before posting.
- Styling stored in `nurse_posts`: `background_color`, `text_color`, `style_preset` (Phase 1 adds columns; Phase 2 implements UI).

---

---

## Changelog

- **2026-02-15**: Phase 2 completed: composer style row (Default, Quote, Tip, Milestone, Custom) with optional custom hex colors; ConnectController validates and saves styling; post card renders body with background/text color.
- **2026-02-15**: Phases created. Phase 1 completed: image upload disabled (UI + backend), profile documents fixed (user + employer), `nurse_posts` styling columns and model fillable added.

*Last updated: 2026-02-15. Update phase status and task status as work completes.*
