feat(metrics): highlight Meeting Scheduled + Shortlisted in summary#232
Merged
feat(metrics): highlight Meeting Scheduled + Shortlisted in summary#232
Conversation
The MD summary block above the full funnel only surfaced Partnered — which
tells the oracle the current win count but nothing about stages about to
convert. Add a configurable HIGHLIGHT_STATUSES list (Partnered + Meeting
Scheduled + Shortlisted) that renders in the summary with bolded counts, so
advice calls get a fast "1 meeting on the calendar, 3 shortlisted candidates
one email away" read without having to parse the full 15-stage breakdown.
- Add HIGHLIGHT_STATUSES constant; rename internal PARTNERED_STATUSES to
NORTH_STAR_STATUSES for clarity (win-tracking vs. summary-highlighting are
now distinct concepts).
- Funnel reader builds an ordered highlights[] array keyed to the constant;
missing stages are silently dropped so sheet relabels don't produce phantom
zero rows.
- JSON schema: totals.highlights[] added ({status, stores, north_star}); keep
totals.all_stores + totals.partnered for stable consumers.
- MD header gains one bullet per highlighted stage; full funnel block still
renders Partnered inline-bold.
Pushed live via clasp to the deployed project.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Expand the summary block at the top of
metrics/weekly.md(and thetotalssection ofmetrics/weekly.json) to surface not just Partnered but also Meeting Scheduled and Shortlisted — the stages where a single email this week is likely to advance a store into Partnered.Previously the oracle had to parse the full 15-stage funnel to find near-conversion signal. Now the fast read is at the top.
MD preview (sample)
JSON schema change
totalsgains one key:Additive only —
all_storesandpartneredstill exist, order preserved. No breaking change for any consumer.Implementation notes
HIGHLIGHT_STATUSESconstant at the top of the GAS — reorder / add / remove stages there without touching any logic.PARTNERED_STATUSEStoNORTH_STAR_STATUSESto separate the two concerns (what counts as a win vs. what gets surfaced in the summary).Deployment
Already pushed live via
clasp pushto https://script.google.com/home/projects/11fA8NXSOwKyddXDZmmx3BRCDU1Y38GVidENCj0mujH0pT-AqIoOyaetj/edit. NextsyncPipelineMetrics()run (manual or tomorrow 06:00 trigger) will produce the new format. No Script Property or trigger changes needed.Test plan
.gsfile passes_buildArtifacts_with sample funnel data produces expected MD + JSONclasp push --forcesuccessful — 3 files pushed to deployed projectsyncPipelineMetrics()once in the editormetrics/weekly.mdon ecosystem_change_logs main shows 3 highlighted bullets (Partnered, Meeting Scheduled, Shortlisted)metrics/weekly.jsonshowstotals.highlights[]populatedadvisory-snapshot-refreshand confirmADVISORY_SNAPSHOT.mdpicks up the new format cleanly🤖 Generated with Claude Code