Skip to content

Add live shareable Network Expansion Brief - #6

Open
Occumed79 wants to merge 3 commits into
mainfrom
network-expansion-brief
Open

Occumed79 wants to merge 3 commits into
mainfrom
network-expansion-brief

Conversation

@Occumed79

Copy link
Copy Markdown
Owner

Adds a presentation-ready expansion view built directly from activated procurement records.

  • live activation, market, pipeline, and linked-provider metrics
  • recent activation timeline
  • activated service footprint
  • geographic footprint summary
  • 30-day / 90-day / 12-month / all-time views
  • copyable executive summary
  • print / Save PDF workflow with print-specific layout
  • sidebar navigation entry

No fake metrics or sample expansion data are introduced.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@coderabbitai

coderabbitai Bot commented Sep 14, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 826aa189-1eef-4ca2-85b2-d7395461c44f


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying provider-intelligence-hub with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7a5fedc
Status: ✅  Deploy successful!
Preview URL: https://ebca2ca3.provider-intelligence-hub.pages.dev
Branch Preview URL: https://network-expansion-brief.provider-intelligence-hub.pages.dev

View logs

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7a5fedc05a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +86 to +89
const { data: procurementData = [], isLoading: procurementLoading } = useQuery<ProcurementRecord[]>({
queryKey: ["/api/procurement"],
queryFn: () => api<ProcurementRecord[]>("/api/procurement"),
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Prevent failed fetches from becoming zero-valued briefs

When /api/procurement returns a non-2xx response, React Query leaves procurementData at the [] default, but the query error is never inspected. The page therefore presents a legitimate-looking brief with zero activations, zero markets, and zero pipeline records while Copy Summary and Print / Save PDF remain enabled, allowing a transient API failure to produce and share an incorrect report; render an error state and disable exporting until the procurement query succeeds.

Useful? React with 👍 / 👎.


return (
<div className="space-y-6 pb-12 print:space-y-4">
<style>{`@media print { aside, .print-hide { display:none !important; } main { overflow:visible !important; } body { background:#080a0c !important; -webkit-print-color-adjust:exact; print-color-adjust:exact; } .print-card { break-inside:avoid; } }`}</style>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Let the print layout escape the viewport shell

When the brief is taller than one viewport, this print rule only changes main, while Layout still wraps it in h-screen overflow-hidden and places the content inside an overflow-auto container. Those fixed-height overflow ancestors clip or constrain the printable content, so Print / Save PDF can omit cards after the first page; the print CSS needs to reset the height and overflow on the layout shell and scrolling content wrapper as well.

Useful? React with 👍 / 👎.

Comment on lines +107 to +109
activated.forEach((record) => {
const key = locationLabel(record);
counts.set(key, (counts.get(key) || 0) + 1);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Exclude unknown locations from the market total

For activated records with no city, state, or country—fields that the procurement API permits to be null—locationLabel returns "Location not set", and this loop counts that fallback as a real market. Consequently one or many unlocated activations make the headline and copied summary claim that a market was added; track those records separately or omit the fallback key from the market count.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant