diff options
| -rw-r--r-- | doc/DESIGN_HISTORY.md | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/DESIGN_HISTORY.md b/doc/DESIGN_HISTORY.md index 5eb664b..801652b 100644 --- a/doc/DESIGN_HISTORY.md +++ b/doc/DESIGN_HISTORY.md | |||
| @@ -198,3 +198,37 @@ so the log can always answer, for any entry, how much to trust it. | |||
| 198 | `app/models/node.rb`. That's the authoritative, current version; this | 198 | `app/models/node.rb`. That's the authoritative, current version; this |
| 199 | entry explains why it's shaped the way it is, not what it says field | 199 | entry explains why it's shaped the way it is, not what it says field |
| 200 | by field. | 200 | by field. |
| 201 | |||
| 202 | ### Retired code | ||
| 203 | |||
| 204 | The timestamp-driven surfaces this replaced — the dashboard widget | ||
| 205 | and the nodes#recent page — are gone; admin/log is the sole | ||
| 206 | recent-activity view. | ||
| 207 | |||
| 208 | ## Attachments: images and PDFs | ||
| 209 | |||
| 210 | Originally attachments were images only; PDFs are now first-class, | ||
| 211 | and the subsystems below treat both through one mechanism. | ||
| 212 | |||
| 213 | Every attachment is an Asset joined to pages via RelatedAsset. The | ||
| 214 | starred attachment ("headline") becomes the page's face on the | ||
| 215 | public site; if none is starred, visitors get a link to browse all | ||
| 216 | attached images instead. PDFs are headline-eligible because the | ||
| 217 | standard raster variant set is generated for them from the | ||
| 218 | document's first page (ImageMagick with Ghostscript), so aggregators | ||
| 219 | and teasers need no special case. | ||
| 220 | |||
| 221 | Presentation differs by type at the last step only: an image | ||
| 222 | headline opens in the lightbox, a PDF headline renders as a document | ||
| 223 | card whose click delivers the document itself — a lightbox showing a | ||
| 224 | raster of page one would misrepresent what the asset is. Pages list | ||
| 225 | attached documents separately from the image gallery. | ||
| 226 | |||
| 227 | Credit display (photographer, license, attribution) applies to | ||
| 228 | images only; the vocabulary describes photographs and is deliberately | ||
| 229 | not rendered for PDFs. Admin asset search matches filenames as well | ||
| 230 | as names, since document filenames carry meaning in a way image | ||
| 231 | filenames rarely do. | ||
| 232 | |||
| 233 | The test suite runs against isolated storage and never touches the | ||
| 234 | real upload tree; keep it that way when adding asset code. | ||
