# Skola Action Plan

- [x] Scaffold the Microsoft Word add-in, shared types package, and local API service.
- [x] Create the Office add-in XML manifest, task pane entry point, and command surface files.
- [x] Add Skola workspaces for `Dashboard`, `Referencing`, `Review`, `Edit`, and `Support Claim`.
- [x] Build a pane-first top-level Skola menu so workflows remain available even when the custom ribbon is not visible on a given Word client.
- [x] Add a `Referencing` navigation workspace with collapsible sections for `Referencing`, `Figures`, `Tables`, and `Abbreviations`.
- [x] Add `Referencing > Import Citation` with support for `.ris`, `.xml`, and `.enw` files.
- [x] Add `Referencing > Delete Selected` so the active citation can be reviewed and removed from the source library.
- [x] Add `Referencing > All Sources` with a source search bar, source list, and source detail panel.
- [x] Add `Referencing > New Group` with source-group creation and group counts.
- [x] Add `Referencing > Style` with citation style options including Harvard, APA 7, MLA 9, Chicago 17, IEEE, and Vancouver.
- [x] Add `Figures`, `Tables`, and `Abbreviations` submenu panels inside the referencing workspace.
- [x] Add `Review` submenu panels for proofread, formalize tone, and critique actions.
- [x] Add `Edit` submenu panels for rewrite, add section, and insert draft actions.
- [x] Add `Support Claim` submenu panels for support, foundational, recent, and conflicting evidence search.
- [x] Sync the support evidence selector with the active support submenu.
- [x] Fix the selected-citation delete flow so it reselects from the remaining sources correctly.
- [x] Replace the module-based add-in host with a webpack-based compatibility build so the pane renders on older Word webviews.
- [x] Add startup hardening, legacy polyfills, and visible runtime error states for the task pane.
- [x] Validate the manifest, typecheck the app, and build the workspace after the pane-menu implementation.
- [x] Update the README, PRD, technical architecture, and action plan to reflect the current pane-first prototype and compatibility approach.
- [x] Parse imported `.ris`, `.xml`, and `.enw` files into real citation metadata fields using pure-TS parsers in `citation-parsers.ts`.
- [x] Add unified citation import endpoint (`POST /v1/references/import`) accepting all three formats; file input in the pane detects format from extension.
- [x] Connect Crossref, OpenAlex, and Semantic Scholar to the support-claim endpoint with parallel search, deduplication, and intent-based ranking.
- [x] Connect Claude API (direct fetch, no SDK) to proofread and AI action endpoints; scaffold fallback used when no key is configured.
- [x] Add accept/reject diff panel so each proofread suggestion can be individually accepted (inserts into Word) or dismissed.
- [x] Add Word ContentControl-based citation insertion and bibliography anchor in `office.ts`.
- [x] Add bibliography generation for all six citation styles (APA7, Harvard, MLA9, Chicago17, IEEE, Vancouver) in `bibliography-generator.ts`.
- [x] Add `POST /v1/references/bibliography` endpoint and "Refresh Bibliography" button that inserts/updates a bibliography ContentControl in the document.
- [x] Add Settings workspace with citation style, API key, and academic search email fields; persisted to `~/Documents/Skola/settings.json`.
- [x] Add `GET /POST /v1/settings` endpoints backed by `settings-store.ts`.
- [x] Add unit tests (vitest) for citation parsers and bibliography generator — 8 tests passing.
- [x] Extend `CitationLibrarySource` shared type with `doi`, `abstract`, `isbn`, `publisher`, `issue`, and `pages` fields.
- [ ] Bind figure, table, and abbreviation actions to live Word document structures.
- [ ] Re-test custom ribbon visibility on a newer supported Word client and keep the pane and ribbon flows aligned.
