---
# System prepended metadata

title: 'Home blocks TODO [Redesign 7/21/2023]'

---

**Updated Home Blocks TODO:**
* [x] **Announcements Block**
  * [x] Should pull from the latest announcements. No need to specify announcements.
  * [x] Add **who** can see announcements (Authed/Unauthed/All)
  * [x] Add isDismissible (Boolean)
  * [x] Each announcement row should have at most 2 announcements filling the screen. Default size is 6.

* [x] **Tabs (Home/models/etc)**
  * [x] Add icons to all tab & ensure proper redirection
  
* [x] **Collection Blocks**
  * [x] Add icons support under a strict icon list.
  * [x] Add isStacked boolean to metadata (Check designs article vs Models)
  * [x] Add description always visible or not (Hidden for authed or always visible)

* [x] **Model Cards**:
  * [x] indicator for can generate
  * [x] height of new model card
  * [x] Feature flag for card version (togglable)
  * [x] Model card empty state
  * [x] Civitai link action button
 
[Figma designs](https://www.figma.com/file/VkYL46B7YYP02i0TDnVEKh/Civitai-Handoff?type=design&node-id=480%3A18440&mode=design&t=t9GqbY4gwzEnZ9eh-1)

![](https://hackmd.io/_uploads/H1s-cPh9h.png)


* [x] **Images**
  * [x] Monitor image ingestion completion
  * [x] Adjust images card to not use overlay when waiting for ingestion
  * [x] Adjust design of Add from library modal

* [ ] **Collections**
  * [x] Add user collections on Profile
  * [x] Update header to support / fill properly 
  * [x] Fix Images collection not respecting review status
  * [x] NSFW toggle
  * [x] Attached Cover Image using Image entity (`coverImageId` on collection)
  * [x] Report collections
  * [x] Delete collections
  * [x] Edit Collection @hackstreetboy 
  * [x] Automated Cover Image based on content of collection @7Y6mZBc2ShquEMRejBCzNw 

#### Questions
 - [x] What should happen when a user marks a collection as nsfw? Changes in the UI?
     - [x] A: prevent the collection from showing up in the feed based on user browsing mode
 - [x] Sorting and filtering in the new user profile collection feed?
     - [ ] A: basic filter for collection types

#### Known issues
- [x] When editing, after you upload a cover image it stays loading
- [x] For the nsfw badge, make sure we are displaying the right badge type based on the highest nsfw level
- [x] Display a feedback message if there are no items to show in the collection detail page

**Notes:**
* Articles will be displayed as a standard collection item, ignore the bleed / scrollable factor.


---

# Personalized Homepage

- [x] Better loading times for Home blocks
- [x] "Add to Home" from Collection context menu
- [x] Display user home blocks if configured with fallback to Civitai blocks
- [x] Home Settings Modal
  - [x] Allow user to rearrange blocks
  - [x] Editing interface
  - [x] Civitai Blocks (user -1 blocks)

![](https://hackmd.io/_uploads/Bk-fsvaq2.png)


---

**On Server**
1. Get 4x{limit} of data for request block (without filters through cache, 1h)
2. Apply user filters to data from that
3. Shuffle results
4. Take limit


```
homeblock:{type}:{id}

homeblock:collection:1
```