refactor(view): unify cell handling for records and pivot modes

Unifies cell text retrieval and formatting across pivot and records modes.
Introduces `GridLayout::display_text` to centralize how cell content is
resolved, reducing duplication in `GridWidget` and `export_csv`.
Moves formatting logic from `src/ui/grid.rs` to a new dedicated `src/format.rs`
module to improve reusability.

Co-Authored-By: fiddlerwoaroof/git-smart-commit (unsloth/gemma-4-31B-it-GGUF:UD-Q5_K_XL)
This commit is contained in:
Edward Langley
2026-04-06 21:56:47 -07:00
parent 870952a2e3
commit b7e5115a8e
5 changed files with 109 additions and 134 deletions

View File

@ -1,5 +1,6 @@
mod command;
mod draw;
mod format;
mod formula;
mod import;
mod model;