# Code maintenance DREAM-821 - Refresh stale frontend documentation

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-821

## OPEN POINTS

_No work packages_

## Subtasks

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Designer |  |
| Developers | Alexander Coles |
| Requires doc change | Yes |
| Date |  |
| Priority | Medium |
| Target versions | 18.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Module | Frontend components and Primer design system, Plugin development |
| Accessibility | No |
| List |  |
| Labels |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| Work |  |
| Remaining work |  |

## Description

## Context

`frontend/doc/` has drifted from the code it describes. Verified against the current tree:

*   `README.md` says tests run with **karma-jasmine**; neither package is a dependency any more and `npm test` runs `ng test` (Vitest under the hood).
    
*   `README.md` and `PLUGINS.md` link to **My Project Page**, a plugin repository that no longer exists.
    
*   `README.md` documents the **Living Style Guide** at `/styleguide`. That system is gone entirely — no route, no `app/assets/styleguide.html`, and zero `.lsg` files remain.
    
*   `README.md` build instructions are wrong, not merely stale: `npm build --prod` is not a valid command, and `ng build --prod` has not been the flag for years (the script uses `--configuration production`).
    
*   `README.md` lists `API.md` and `LEGACY.md` under Topics; neither file exists.
    
*   `PLUGINS.md` documents the symlink target as `frontend/src/app/modules/plugins/linked/`, but plugins link into `features/plugins/linked/`, and the generated module is `linked-plugins.module.ts`.
    
*   `PLUGINS.md` code sample uses inconsistent indentation, `any` parameter types, and lodash (`_.findIndex`), which the frontend no longer uses.
    
*   `TESTING.md` frames Angular as the current approach and cites `app/components/projects/current-project.service.spec.ts`, a path that no longer exists.
    
*   `frontend/AGENTS.md` also still says &quot;Jasmine/Karma&quot;. Note `CLAUDE.md` is a symlink to `AGENTS.md`, so one edit covers both.
    

## Goal

Bring these documents back in line with the code so a new contributor is not misled, and reframe the testing guide around the current architecture: Rails with Stimulus and Turbo is the current approach, Angular is legacy.

## Scope

*   `frontend/doc/PLUGINS.md` — correct paths, indentation, types; drop lodash and the dead plugin link.
    
*   `frontend/doc/README.md` — correct build and test commands; drop the styleguide section and the dead Topics entries; point styling and component documentation at Lookbook.
    
*   `frontend/doc/TESTING.md` — rewrite as a practical guide. All parts of the frontend are testable through `npm run test`; Angular and esbuild still bootstrap the tests even for non-Angular specs; tests run in real browsers, defaulting to Chromium with Firefox and WebKit added in CI. Cover the two Stimulus helpers (`setupStimulusTest` and `createControllerInstance`) and link out to Vitest, Playwright and the Angular testing guide rather than restating them.
    
*   `frontend/doc/STYLING.md` — delete. It documents a system that no longer exists; Lookbook replaces it.
    
*   `frontend/AGENTS.md` — correct the testing reference and keep it to the command an agent needs, linking to `frontend/doc/TESTING.md` for the explanation. No prose duplicated between the two.
    

## Notes

`frontend/doc/**` is consumed by TypeDoc as `projectDocuments`, so these files are rendered into the generated API reference. Deleting `STYLING.md` removes a page from that site.

### Hints for QA

Purely developer-facing docs, so this can be closed after merge.
