# Final generated PDF is poorly designed and laid out

| | |
|--|--|
| **ID** | `bug_014` |
| **Priority rank** | 3 |
| **Severity** | high |
| **Category** | bug |
| **Time range** | 308.0s – 317.0s |
| **Key moment** | 311.0s |
| **Affected element** | PDF preview in composer |

> ⚠️ **About the red box in `screenshot.png`:** It is an AI-generated guess at the affected
> UI element. **It is correct most of the time but not always** — sometimes the actual
> element is near the box rather than exactly inside it, and occasionally the box lands
> on an unrelated element.
>
> When acting on this bug:
> 1. Read the **narration quote** and **detailed visual walkthrough** below first — they
>    describe what is actually wrong.
> 2. Look at the **full screenshot**, not just inside the red box.
> 3. If you need precise pixel coordinates, consult `omniparser_elements.json` in this
>    folder — it lists every UI element the detector found on this screen, with bounding
>    boxes and confidence. You can search by label or look at elements adjacent to the
>    red box.

## Description

The final PDF compiled from the generated visual elements is described as 'terrible' and 'poorly designed'. The layout appears to be a simple concatenation of the raw charts without any professional formatting, branding, or structure.

## What the narrator said

> "This is terrible. This is absolutely terrible. Like, the information's there, but it's it's poorly designed and poorly put together."

## Detailed visual walkthrough

The screen displays the "Athena v3" chat interface, focused on a conversation with "John's Athena". Initially, a placeholder box with "WHAT HAPPENS NEXT?" and "KEY FACTS" is visible, while a progress bar fills below a long `[ai_search]` command. The narrator begins, "This is terrible. This is absolutely terrible."

As the progress bar completes, the placeholder box vanishes and is replaced by a series of four distinct visual elements that appear one after another, scrolling up the chat log. First, a "2024 Iran-Houthi Timeline" chart appears, followed by a pie chart titled "Casualties by Country (Houthi)", and then two different mind-map-style diagrams. The narrator comments on this output: "Like, the information's there, but it's it's poorly designed and poorly put together."

The final generated content is simply the raw charts stacked vertically in the chat window without any surrounding layout, branding, or professional presentation. A green success message then appears at the bottom of the list: `SUCCESS: [deck_generate] 2024 Iran-Houthi Current Status Infographic deck generate started as a background work run and will post its result back to this thread.` The narrator confirms the process is over, saying, "Is she done? Does she think she's done? Okay, she's finished." The clip ends with the four unformatted charts sitting in the chat history, illustrating the poor final composition of the generated elements.

## Suggested fix

Create a professional PDF template for the report. The template should include a title page, headers, footers, page numbers, and a structured layout that arranges the charts and text in a clean, readable manner. The design should align with the application's overall branding.

## Bounding boxes drawn on `screenshot.png`

- **PDF preview** at `[ymin=402, xmin=383, ymax=838, xmax=931]` (normalized 0-1000)

## Files in this folder

- `clip.mp4` — Video clip (308.0s – 317.0s, plus 2s padding on each side)
- `screenshot.png` — Key frame at 311.0s with red bounding box (see note above on accuracy)
- `screenshot_raw.png` — Same frame, no annotations
- `clip_description.md` — The detailed walkthrough above as a standalone file
- `bug.json` — Structured data
- `omniparser_elements.json` — every UI element detected on this screen by the OmniParser YOLOv8 model, with pixel-space bounding boxes and confidence scores. Useful if the red box in `screenshot.png` is on the wrong element — you can pick a different one from this list.
- `motion/` — Additional keyframes showing motion/state-change (if any):
  _(none — this is a static issue)_
