From 6a8cf279a24fc2dea37aecb6f3c7900e619f6742 Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Thu, 23 Feb 2023 15:22:55 +0300 Subject: [PATCH] Clean up before initial release --- components/badges/actions/Action.tsx | 4 ++-- components/badges/actions/actions.ts | 10 +++++----- contracts/badgeHub/messages/execute.ts | 2 +- pages/badges/create.tsx | 4 ++-- pages/contracts/badgeHub/execute.tsx | 6 +++--- pages/contracts/badgeHub/instantiate.tsx | 2 +- pages/contracts/badgeHub/migrate.tsx | 2 +- pages/contracts/badgeHub/query.tsx | 4 +++- 8 files changed, 18 insertions(+), 16 deletions(-) diff --git a/components/badges/actions/Action.tsx b/components/badges/actions/Action.tsx index 46c22ec..0d8b69f 100644 --- a/components/badges/actions/Action.tsx +++ b/components/badges/actions/Action.tsx @@ -151,14 +151,14 @@ export const BadgeActions = ({ badgeHubContractAddress, badgeId, badgeHubMessage id: 'pubkey', name: 'pubkey', title: 'Pubkey', - subtitle: 'The public key for the badge', + subtitle: 'The public key to check whether it can be used to mint a badge', }) const privateKeyState = useInputState({ id: 'privateKey', name: 'privateKey', title: 'Private Key', - subtitle: 'The private key to claim the badge with', + subtitle: 'The private key that was generated during badge creation', }) const nftState = useInputState({ diff --git a/components/badges/actions/actions.ts b/components/badges/actions/actions.ts index 318a38d..21c7d03 100644 --- a/components/badges/actions/actions.ts +++ b/components/badges/actions/actions.ts @@ -26,7 +26,7 @@ export const BY_KEY_ACTION_LIST: ActionListItem[] = [ { id: 'edit_badge', name: 'Edit Badge', - description: `Edit the badge with the specified ID`, + description: `Edit badge metadata for the badge with the specified ID`, }, { id: 'purge_owners', @@ -41,7 +41,7 @@ export const BY_KEY_ACTION_LIST: ActionListItem[] = [ { id: 'airdrop_by_key', name: 'Airdrop by Key', - description: `Mint badges to a list of specified addresses`, + description: `Airdrop badges to a list of specified addresses`, }, ] @@ -49,7 +49,7 @@ export const BY_KEYS_ACTION_LIST: ActionListItem[] = [ { id: 'edit_badge', name: 'Edit Badge', - description: `Edit the badge with the specified ID`, + description: `Edit badge metadata for the badge with the specified ID`, }, { id: 'add_keys', @@ -69,7 +69,7 @@ export const BY_KEYS_ACTION_LIST: ActionListItem[] = [ { id: 'mint_by_keys', name: 'Mint by Keys', - description: `Mint a new badge with a whitelisted public key and corresponding signature`, + description: `Mint a new badge with a whitelisted private key`, }, ] @@ -77,7 +77,7 @@ export const BY_MINTER_ACTION_LIST: ActionListItem[] = [ { id: 'edit_badge', name: 'Edit Badge', - description: `Edit the badge with the specified ID`, + description: `Edit badge metadata for the badge with the specified ID`, }, { id: 'purge_owners', diff --git a/contracts/badgeHub/messages/execute.ts b/contracts/badgeHub/messages/execute.ts index 12c3440..9c9f595 100644 --- a/contracts/badgeHub/messages/execute.ts +++ b/contracts/badgeHub/messages/execute.ts @@ -30,7 +30,7 @@ export const EXECUTE_LIST: ExecuteListItem[] = [ { id: 'edit_badge', name: 'Edit Badge', - description: `Edit the badge with the specified ID`, + description: ` Edit badge metadata for the badge with the specified ID`, }, // { // id: 'add_keys', diff --git a/pages/badges/create.tsx b/pages/badges/create.tsx index 8fecbc4..87d10d2 100644 --- a/pages/badges/create.tsx +++ b/pages/badges/create.tsx @@ -63,7 +63,7 @@ const BadgeCreationPage: NextPage = () => { id: 'key', name: 'key', title: 'Public Key', - subtitle: 'The public key generated for the badge', + subtitle: 'One part of the key pair to be utilized for post-creation access control', }) const performBadgeCreationChecks = () => { @@ -184,7 +184,7 @@ const BadgeCreationPage: NextPage = () => { const checkBadgeDetails = () => { if (!badgeDetails) throw new Error('Please fill out the required fields') - if (keyState.value === '' || !createdBadgeKey) throw new Error('Please generate a key') + if (keyState.value === '' || !createdBadgeKey) throw new Error('Please generate a public key') if (badgeDetails.external_url) { try { const url = new URL(badgeDetails.external_url) diff --git a/pages/contracts/badgeHub/execute.tsx b/pages/contracts/badgeHub/execute.tsx index 4f06d56..17ad626 100644 --- a/pages/contracts/badgeHub/execute.tsx +++ b/pages/contracts/badgeHub/execute.tsx @@ -164,8 +164,8 @@ const BadgeHubExecutePage: NextPage = () => { const keyState = useInputState({ id: 'key', name: 'key', - title: 'Key', - subtitle: 'The key generated for the badge', + title: 'Public Key', + subtitle: 'One part of the key pair to be utilized for post-creation access control', }) const ownerState = useInputState({ @@ -535,7 +535,7 @@ const BadgeHubExecutePage: NextPage = () => {
diff --git a/pages/contracts/badgeHub/instantiate.tsx b/pages/contracts/badgeHub/instantiate.tsx index e78f354..0b18abb 100644 --- a/pages/contracts/badgeHub/instantiate.tsx +++ b/pages/contracts/badgeHub/instantiate.tsx @@ -86,7 +86,7 @@ const BadgeHubInstantiatePage: NextPage = () => {
diff --git a/pages/contracts/badgeHub/migrate.tsx b/pages/contracts/badgeHub/migrate.tsx index f618d57..971090a 100644 --- a/pages/contracts/badgeHub/migrate.tsx +++ b/pages/contracts/badgeHub/migrate.tsx @@ -92,7 +92,7 @@ const BadgeHubMigratePage: NextPage = () => {
diff --git a/pages/contracts/badgeHub/query.tsx b/pages/contracts/badgeHub/query.tsx index 30b9df7..df7b56a 100644 --- a/pages/contracts/badgeHub/query.tsx +++ b/pages/contracts/badgeHub/query.tsx @@ -40,6 +40,7 @@ const BadgeHubQueryPage: NextPage = () => { name: 'id', title: 'ID', subtitle: 'The ID of the badge', + defaultValue: 1, }) const pubkeyState = useInputState({ @@ -68,6 +69,7 @@ const BadgeHubQueryPage: NextPage = () => { name: 'pagination-limit', title: 'Pagination Limit (optional)', subtitle: 'The number of items to return (max: 30)', + defaultValue: 5, }) const [type, setType] = useState('config') @@ -125,7 +127,7 @@ const BadgeHubQueryPage: NextPage = () => {