Repository navigation
fix(copy): remove proof and case-studies pages, point CTE upload copy to /ingest, label EPCIS as preview #3586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
5bc7490
fix(copy): remove proof and case-studies pages, point CTE upload copy…
PetrefiedThunder 2e7564c
fix(copy): refresh copy-lint baseline and drop walkthrough dashes
PetrefiedThunder c20519c
Merge origin/main into claude/copy-fix-epcis-preview-v2
PetrefiedThunder bb40c31
Merge branch 'main' into claude/copy-fix-epcis-preview-v2
PetrefiedThunder 0184cb0
fix: restore main's placeholder block in why-regengine
PetrefiedThunder 1e202b1
fix(#3586): audit bundle output path + fresh zip, unskip verify tests…
PetrefiedThunder 972a3f0
Merge remote-tracking branch 'origin/main' into HEAD
PetrefiedThunder 0dea298
Merge branch 'main' into claude/copy-fix-epcis-preview-v2
PetrefiedThunder 08b21b2
chore: merge origin/main into claude/copy-fix-epcis-preview-v2
PetrefiedThunder 001a7a9
chore: merge origin/main
PetrefiedThunder 975bef0
chore: merge main into claude/copy-fix-epcis-preview-v2
PetrefiedThunder fb5ed4f
test(proof): expect empty state instead of removed route
PetrefiedThunder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| import { existsSync, readFileSync } from 'node:fs'; | ||
| import { resolve } from 'node:path'; | ||
| import { describe, expect, it } from 'vitest'; | ||
| import { CAPABILITY_REGISTRY, STATUS_LABELS } from '@/lib/customer-readiness'; | ||
|
|
||
| const read = (p: string) => readFileSync(resolve(process.cwd(), p), 'utf8'); | ||
|
|
||
| describe('#3554 empty states and hidden sample artifacts', () => { | ||
| it('export-jobs and integrations show No data yet with CSV upload and JSON events API next steps', () => { | ||
| for (const page of ['src/app/dashboard/export-jobs/page.tsx', 'src/app/integrations/page.tsx']) { | ||
| const src = read(page); | ||
| expect(src).toContain('title={NO_DATA_YET}'); | ||
| expect(src).toMatch(/href="\/ingest"/); | ||
| expect(src).toMatch(/href="\/docs\/api"/); | ||
| } | ||
| }); | ||
|
|
||
| it('support pages render Not set for empty channel fields', () => { | ||
| for (const page of ['src/app/settings/support/page.tsx', 'src/app/trust/support/page.tsx']) { | ||
| const src = read(page); | ||
| expect(src).toContain('channel.responseWindow || NOT_SET'); | ||
| expect(src).toContain('channel.notes || NOT_SET'); | ||
| } | ||
| }); | ||
|
|
||
| it('labels the EPCIS capability as Preview', () => { | ||
| const epcis = CAPABILITY_REGISTRY.find((item) => item.id === 'epcis'); | ||
| expect(epcis?.name).toBe('GS1 EPCIS 2.0 (Preview)'); | ||
| expect(epcis && STATUS_LABELS[epcis.status]).toBe('Preview'); | ||
| }); | ||
|
|
||
| it('no longer publishes the made-up proof samples', () => { | ||
| expect(existsSync(resolve(process.cwd(), 'public/proof/fsma-204-sample.csv'))).toBe(false); | ||
| expect(existsSync(resolve(process.cwd(), 'public/proof/epcis-sample.jsonld'))).toBe(false); | ||
| }); | ||
|
|
||
| it('hides /proof/transformation and drops every link to it', () => { | ||
| expect(read('src/app/proof/transformation/page.tsx')).toContain('notFound()'); | ||
| expect(existsSync(resolve(process.cwd(), 'src/app/proof/transformation/opengraph-image.tsx'))).toBe(false); | ||
| expect(read('src/app/sitemap.ts')).not.toContain('/proof/transformation'); | ||
| expect(read('src/app/walkthrough/page.tsx')).not.toContain('/proof/transformation'); | ||
| }); | ||
|
|
||
| it('removes the public proof zips', () => { | ||
| for (const f of ['public/proof/audit-bundle.zip', 'public/proof/audit-bundle-tampered.zip']) { | ||
| expect(existsSync(resolve(process.cwd(), f))).toBe(false); | ||
| } | ||
| }); | ||
|
|
||
| it('security page shows No data yet instead of illustrative verifier output', () => { | ||
| const src = read('src/app/security/page.tsx'); | ||
| expect(src).not.toContain('Sample · illustrative'); | ||
| expect(src).toContain('title={NO_DATA_YET}'); | ||
| }); | ||
|
|
||
| it('CTE pages ask for the user\'s own file, not a sample', () => { | ||
| const src = read('src/app/fsma-204/[cte]/page.tsx'); | ||
| expect(src).not.toContain('Upload a sample'); | ||
| // After merging main (#3557 retired /sandbox), the closing CTA copy comes from | ||
| // sandboxCta().blurb, which asks for the user's own records and links /ingest. | ||
| expect(src).toContain('{cta.blurb}'); | ||
| expect(src).not.toContain('sandbox and get an instant'); | ||
| expect(src).not.toContain('data to the sandbox'); | ||
| expect(src).toMatch(/data to\{" "\}\s*<Link href="\/ingest\?tab=file"[^>]*>RegEngine<\/Link>/); | ||
| }); | ||
| }); |
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,58 +1,6 @@ | ||
| import type { Metadata } from 'next'; | ||
| import Link from 'next/link'; | ||
| import { ArrowRight } from 'lucide-react'; | ||
| import { Button } from '@/components/ui/button'; | ||
| import { Card } from '@/components/ui/card'; | ||
| import { Container } from '@/components/layout/container'; | ||
| import { PageHeader } from '@/components/layout/page-header'; | ||
|
|
||
| export const metadata: Metadata = { | ||
| title: 'Product Validation | RegEngine', | ||
| description: | ||
| 'RegEngine product validation. No published validation study yet; run the workflow on your own data.', | ||
| keywords: | ||
| 'FSMA 204, traceability validation, food safety, CTE validation, FDA compliance, RegEngine', | ||
| openGraph: { | ||
| title: 'Product Validation | RegEngine', | ||
| description: 'No published validation study yet; run the RegEngine workflow on your own data.', | ||
| url: 'https://regengine.co/case-studies', | ||
| type: 'article', | ||
| }, | ||
| }; | ||
| import { notFound } from 'next/navigation'; | ||
|
|
||
| // Hidden until a real, named-customer case study exists. | ||
| export default function CaseStudy() { | ||
| return ( | ||
| <div className="bg-re-surface-base text-re-text-primary"> | ||
| <Container as="section" width="marketing" className="py-12 sm:py-16"> | ||
| <PageHeader | ||
| size="hero" | ||
| title="Product validation" | ||
| description="RegEngine is pre-revenue. There is no published validation study with customer or production data yet." | ||
| className="mb-0 border-b-0 pb-0" | ||
| /> | ||
| <Card padding="spacious" className="mt-10 max-w-[68ch]"> | ||
| <p className="font-mono text-label uppercase text-re-text-muted">Validation data</p> | ||
| <h2 className="mt-2 text-heading text-re-text-primary">No data yet</h2> | ||
| <p className="mt-3 text-ui text-re-text-secondary"> | ||
| RegEngine is pre-revenue; self-serve access is in staged rollout. We do not | ||
| publish invented metrics. When a validation study runs against real | ||
| workloads, the results will appear here. Until then, the honest way to evaluate | ||
| RegEngine is to run it on your own supply chain data. | ||
| </p> | ||
| <div className="mt-6 flex flex-col gap-3 sm:flex-row"> | ||
| <Button asChild size="lg"> | ||
| <Link href="/signup" className="no-underline"> | ||
| Run Your Own Validation <ArrowRight className="h-4 w-4" strokeWidth={1.75} aria-hidden="true" /> | ||
| </Link> | ||
| </Button> | ||
| <Button asChild variant="secondary" size="lg"> | ||
| <Link href="/tools/ftl-checker" className="no-underline"> | ||
| Test with Your Data | ||
| </Link> | ||
| </Button> | ||
| </div> | ||
| </Card> | ||
| </Container> | ||
| </div> | ||
| ); | ||
| notFound(); | ||
| } |
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.