* @brief Returns project.snapshot's caller hint, with a bulk-edit nudge above 10 datasets. */
| 3818 | * @brief Returns project.snapshot's caller hint, with a bulk-edit nudge above 10 datasets. |
| 3819 | */ |
| 3820 | static QString buildSnapshotHint(int totalDatasets) |
| 3821 | { |
| 3822 | QString hint = |
| 3823 | QStringLiteral("Pass verbose=true to include frame parser source and source-level frame " |
| 3824 | "settings. For per-table register details, call project.dataTable.get with " |
| 3825 | "the table name."); |
| 3826 | if (totalDatasets >= 10) |
| 3827 | hint += QStringLiteral(" %1 datasets present -- bulk edits should go through project.batch " |
| 3828 | "(ops: [{command, params}, ...]) instead of looping individual updates; " |
| 3829 | "project.dataset.addMany handles 'create N similar' patterns.") |
| 3830 | .arg(totalDatasets); |
| 3831 | |
| 3832 | return hint; |
| 3833 | } |
| 3834 | |
| 3835 | /** |
| 3836 | * @brief Builds the top-level _explanations object summarizing the project's operating shape. |