Surface package proof on public resources page
This commit is contained in:
parent
f2fbe3be15
commit
e7d895203e
2 changed files with 41 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ vi.mock('../site-config', () => ({
|
|||
},
|
||||
}))
|
||||
|
||||
import { DownloadPage, PricingPage, SupportPage } from '../pages/public-pages'
|
||||
import { DownloadPage, PricingPage, ResourcesPage, SupportPage } from '../pages/public-pages'
|
||||
|
||||
function renderWithProviders(element: React.ReactNode, initialEntries?: string[]) {
|
||||
const queryClient = new QueryClient({
|
||||
|
|
@ -206,4 +206,12 @@ describe('public marketing pages', () => {
|
|||
expect(screen.getByText('Launch readiness')).toBeTruthy()
|
||||
expect(screen.getByText(/turning the preview lane into a public launch/i)).toBeTruthy()
|
||||
})
|
||||
|
||||
it('surfaces current packaged desktop proof on the public resources page', () => {
|
||||
renderWithProviders(<ResourcesPage />, ['/resources'])
|
||||
|
||||
expect(screen.getByText('Current packaged desktop proof')).toBeTruthy()
|
||||
expect(screen.getByText('Windows Unreal packaged validation')).toBeTruthy()
|
||||
expect(screen.getAllByText(/MagicCube5D dedicated-family training map: passed/i).length).toBeGreaterThan(0)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -19,8 +19,10 @@ import {
|
|||
} from '../site-config'
|
||||
import {
|
||||
buildReleaseMetadataItems,
|
||||
formatReleasePublishedAt,
|
||||
resolveReleaseManifestView,
|
||||
} from '../release-manifest'
|
||||
import { getReleasePlatformValidationSummary } from '../shared/package-validation'
|
||||
import { buildProtectedDownloadPath, isExternalHref } from '../site-routes'
|
||||
import {
|
||||
capabilityPillars,
|
||||
|
|
@ -268,6 +270,7 @@ export function AboutPage() {
|
|||
export function ResourcesPage() {
|
||||
const [query, setQuery] = useState('')
|
||||
const deferredQuery = useDeferredValue(query)
|
||||
const windowsValidationSummary = getReleasePlatformValidationSummary('windows')
|
||||
|
||||
const filteredCollections = useMemo(() => {
|
||||
const normalized = deferredQuery.trim().toLowerCase()
|
||||
|
|
@ -334,6 +337,35 @@ export function ResourcesPage() {
|
|||
</Link>
|
||||
</div>
|
||||
</Section>
|
||||
|
||||
{windowsValidationSummary ? (
|
||||
<Section title="Current packaged desktop proof">
|
||||
<article className="card">
|
||||
<h3>{windowsValidationSummary.lane}</h3>
|
||||
<p>
|
||||
Latest public-safe package evidence was generated{' '}
|
||||
{formatReleasePublishedAt(windowsValidationSummary.generated_at) || windowsValidationSummary.generated_at}
|
||||
{' '}in {windowsValidationSummary.configuration} mode and passed across{' '}
|
||||
{windowsValidationSummary.smoke_map_count} dedicated-family higher-dimensional training map{windowsValidationSummary.smoke_map_count === 1 ? '' : 's'}.
|
||||
</p>
|
||||
<ul className="list top-gap">
|
||||
{windowsValidationSummary.smoke_maps.map((map) => (
|
||||
<li key={map.map_url}>
|
||||
{map.label}: {map.result}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<div className="button-row top-gap">
|
||||
<Link className="button button--ghost" to="/download">
|
||||
Open download center
|
||||
</Link>
|
||||
<Link className="button button--ghost" to="/app">
|
||||
Open operator dashboard
|
||||
</Link>
|
||||
</div>
|
||||
</article>
|
||||
</Section>
|
||||
) : null}
|
||||
</MarketingShell>
|
||||
</>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue