Skip to content

Commit

Permalink
Merge pull request #8 from rarimo/feature/thumbnails
Browse files Browse the repository at this point in the history
Added thumbnails
  • Loading branch information
ihordiachenko authored Jan 10, 2024
2 parents 2434ac8 + a03f888 commit 175cea8
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 8 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog], and this project adheres to [Semantic Versioning].

## [1.0.3] - 2024-01-10
### Added
- Thumbnail images

### Changed
- Action metadata thumbnails

## [1.0.2] - 2024-01-09
### Fixed
- Action metadata icon url
Expand Down Expand Up @@ -31,7 +38,8 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic

- Initiated project

[Unreleased]: https://github.com/rarimo/collabland-rarimo-poh-action/compare/1.0.2...HEAD
[Unreleased]: https://github.com/rarimo/collabland-rarimo-poh-action/compare/1.0.3...HEAD
[1.0.3]: https://github.com/rarimo/collabland-rarimo-poh-action/compare/1.0.2...1.0.3
[1.0.2]: https://github.com/rarimo/collabland-rarimo-poh-action/compare/1.0.1...1.0.2
[1.0.1]: https://github.com/rarimo/collabland-rarimo-poh-action/compare/1.0.0...1.0.1
[1.0.0]: https://github.com/rarimo/collabland-rarimo-poh-action/compare/0.1.0...1.0.0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "collabland-rarimo-poh-action",
"description": "Implementation of the Collab.Land action /verify command for the Discord server which allows members to verify their humanity using the Rarimo Proof of Humanity case.",
"version": "1.0.2",
"version": "1.0.3",
"private": true,
"license": "MIT",
"author": "Zero Block Global Foundation",
Expand Down
Binary file added public/thumbnail-discord-verify-msg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/thumbnail-robotornot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 21 additions & 6 deletions src/const/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ import { config } from '@/config'

const keywords = ['verification', 'rarimo', 'proof-of-humanity']

const appIcon = {
label: 'Rarimo Proof of Humanity Action',
src: new URL('/logo.png', config.appUrl).toString(),
sizes: '186x186',
const craftPublicImgUrl = (imgName: string): string => {
return new URL(`/${imgName}`, config.appUrl).toString()
}

const manifest = new MiniAppManifest({
Expand All @@ -28,8 +26,25 @@ const manifest = new MiniAppManifest({
website: config.pohAppUrl,
keywords,
tags: keywords,
thumbnails: [appIcon],
icons: [appIcon],
thumbnails: [
{
label: 'Rarimo Proof of Humanity App',
src: craftPublicImgUrl('thumbnail-robotornot.png'),
sizes: '3576x1946',
},
{
label: 'Verify Discord Action message',
src: craftPublicImgUrl('thumbnail-discord-verify-msg.png'),
sizes: '1338x1368',
},
],
icons: [
{
label: 'Rarimo Proof of Humanity Action',
src: craftPublicImgUrl('logo.png'),
sizes: '186x186',
},
],
})

export const METADATA: DiscordActionMetadata = {
Expand Down

0 comments on commit 175cea8

Please sign in to comment.