Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/hub/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
<meta property="og:title" content="EdgeTools — Public Edge Wallet tools" />
<meta property="og:description" content="Look up orders, resolve FIO Handles, check Edge service health, and find token metadata." />
<meta property="og:url" content="https://edgetools.app/" />
<meta property="og:image" content="https://edgetools.app/assets/edge-tools-social.png" />
<meta property="og:image:secure_url" content="https://edgetools.app/assets/edge-tools-social.png" />
<meta property="og:image" content="https://edgetools.app/assets/edge-tools-social-91ccf865.png" />
<meta property="og:image:secure_url" content="https://edgetools.app/assets/edge-tools-social-91ccf865.png" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="EdgeTools — public Edge Wallet lookups and service checks" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="EdgeTools — Public Edge Wallet tools" />
<meta name="twitter:description" content="Look up orders, resolve FIO Handles, check Edge service health, and find token metadata." />
<meta name="twitter:image" content="https://edgetools.app/assets/edge-tools-social.png" />
<meta name="twitter:image" content="https://edgetools.app/assets/edge-tools-social-91ccf865.png" />
<meta name="twitter:image:alt" content="EdgeTools — public Edge Wallet lookups and service checks" />
<meta name="theme-color" content="#141715" />
<title>EdgeTools</title>
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async function computeAssetVersion() {
resolve(repositoryRoot, 'shared', 'tool.css'),
resolve(repositoryRoot, 'shared', 'site.js'),
resolve(repositoryRoot, 'shared', 'intercom.js'),
resolve(repositoryRoot, 'shared', 'assets', 'edge-tools-social.png'),
resolve(repositoryRoot, 'shared', 'assets', 'edge-tools-social-91ccf865.png'),
resolve(repositoryRoot, 'shared', 'assets', 'tool-icons.svg'),
resolve(repositoryRoot, 'apps', 'datecalc', 'datecalc.js'),
resolve(repositoryRoot, 'apps', 'fio', 'fio.js'),
Expand Down
6 changes: 3 additions & 3 deletions test/site-contract.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test('Main is the one public catalog and uses local tool routes', async () => {

test('Main provides a complete large-image social preview', async () => {
const html = await read('apps/hub/index.html')
const imageUrl = 'https://edgetools.app/assets/edge-tools-social.png'
const imageUrl = 'https://edgetools.app/assets/edge-tools-social-91ccf865.png'
assert.match(html, /property="og:type" content="website"/)
assert.match(html, /property="og:title" content="EdgeTools — Public Edge Wallet tools"/)
assert.match(html, new RegExp(`property="og:image" content="${imageUrl.replaceAll('.', '\\.')}`))
Expand All @@ -30,7 +30,7 @@ test('Main provides a complete large-image social preview', async () => {
assert.match(html, /name="twitter:card" content="summary_large_image"/)
assert.match(html, new RegExp(`name="twitter:image" content="${imageUrl.replaceAll('.', '\\.')}`))

const previewImagePath = resolve(repositoryRoot, 'shared/assets/edge-tools-social.png')
const previewImagePath = resolve(repositoryRoot, 'shared/assets/edge-tools-social-91ccf865.png')
const previewImage = await stat(previewImagePath)
assert.ok(previewImage.size > 10_000, 'social preview image must be a real rendered asset')
const previewImageBytes = await readFile(previewImagePath)
Expand All @@ -40,7 +40,7 @@ test('Main provides a complete large-image social preview', async () => {

const { mainOutput } = await build()
const builtHtml = await readFile(resolve(mainOutput, 'index.html'), 'utf8')
await stat(resolve(mainOutput, 'assets/edge-tools-social.png'))
await stat(resolve(mainOutput, 'assets/edge-tools-social-91ccf865.png'))
assert.match(builtHtml, new RegExp(`property="og:image" content="${imageUrl.replaceAll('.', '\\.')}`))
})

Expand Down
Loading