From 91480ab3354404c281837277975a0f75e675658b Mon Sep 17 00:00:00 2001 From: Daniella Mesquita Date: Thu, 18 Jul 2024 01:10:44 -0300 Subject: [PATCH 1/3] Prepare for the next commit (AI Coding) --- .gitmeta/.gitmeta | 23 ++++++ .gitmeta/cids.txt | 2 + .gitmeta/cids_detailed/files-only.txt | 1 + .gitmeta/cids_detailed/with-sha1.txt | 3 + .../_components/AIConversation.txt | 75 +++++++++++++++++++ 5 files changed, 104 insertions(+) create mode 100644 .gitmeta/.gitmeta create mode 100644 .gitmeta/cids.txt create mode 100644 .gitmeta/cids_detailed/files-only.txt create mode 100644 .gitmeta/cids_detailed/with-sha1.txt create mode 100644 template/web/app/buy-me-coffee/_components/AIConversation.txt diff --git a/.gitmeta/.gitmeta b/.gitmeta/.gitmeta new file mode 100644 index 00000000..05604a07 --- /dev/null +++ b/.gitmeta/.gitmeta @@ -0,0 +1,23 @@ +commit QmVT34KFHuhexU4K1uZPQb7mtfpDKb9fMJb56WQ1nFyAmh +Branch: pr-clickablesocial +Signed-off by: danimesq.eth (0xDDfC2e10702d8A781727A34D83B3bb3CA94a3E91) +Signature: 1184b0c7dd3e998fc1198477d2ceaa83b52254b83445399eb68bbb91d86fceab7c0e7bcd71c0648dba76698dbf26b890a97260cf09849dde05f27feda64ddf9b01 + +------------------------------ + +Commit CID if including git's SHA1: QmQGAFPDa8mAeoyL19JHNcMmzy8Zm59LbkVecTG4Fxd81w +Commit CID if containing only file hashes: Qma1uUZiYv3a7JZXLDbxbg4hDBEDR5YM67Xx1rpX9k18N4 + +------------------------------ + +.gitmeta version: r8 +Local folder: /home/daniella/Desktop/Untitled Folder 2/build-onchain-apps +Remote Name: origin +Remote URL: https://github.com/FrameworkJavascript/build-onchain-apps.git + +------------------------------ + +chown -h 1000:1000 'template/web/app/buy-me-coffee/_components/AIConversation.txt' +chmod 0664 'template/web/app/buy-me-coffee/_components/AIConversation.txt' +/usr/bin/touch -hcmd "2024-07-18 01:10:20.8513324100 -0300" 'template/web/app/buy-me-coffee/_components/AIConversation.txt' +/usr/bin/touch -hcad "2024-07-18 01:10:44.4357566460 -0300" 'template/web/app/buy-me-coffee/_components/AIConversation.txt' diff --git a/.gitmeta/cids.txt b/.gitmeta/cids.txt new file mode 100644 index 00000000..4f16eccb --- /dev/null +++ b/.gitmeta/cids.txt @@ -0,0 +1,2 @@ +QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH +QmakfhqUBoFCvWvjYUn2J6tVv3oAarvUY8WBa468t4kxfb diff --git a/.gitmeta/cids_detailed/files-only.txt b/.gitmeta/cids_detailed/files-only.txt new file mode 100644 index 00000000..97f9a1ed --- /dev/null +++ b/.gitmeta/cids_detailed/files-only.txt @@ -0,0 +1 @@ +QmakfhqUBoFCvWvjYUn2J6tVv3oAarvUY8WBa468t4kxfb diff --git a/.gitmeta/cids_detailed/with-sha1.txt b/.gitmeta/cids_detailed/with-sha1.txt new file mode 100644 index 00000000..ff9238ad --- /dev/null +++ b/.gitmeta/cids_detailed/with-sha1.txt @@ -0,0 +1,3 @@ +QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH +054029514def72e503d84d4cfda7c3e5295a05ce +QmakfhqUBoFCvWvjYUn2J6tVv3oAarvUY8WBa468t4kxfb diff --git a/template/web/app/buy-me-coffee/_components/AIConversation.txt b/template/web/app/buy-me-coffee/_components/AIConversation.txt new file mode 100644 index 00000000..ebda2be8 --- /dev/null +++ b/template/web/app/buy-me-coffee/_components/AIConversation.txt @@ -0,0 +1,75 @@ +About @MemoCard.tsx : +Please make the twitterHandle, lensHandle and farcasterHandle texts that are inside parenthesys, please make them clickable. +The URL will be: https://{socialnetwork-url}/{socialnetwork-username-value}. + +For Twitter: twitter.com/ +For Lens: hey.xyz/u/ +For Farcaster: warpcast.com/ + +Also, please move lensHandle above the twitterHandle. + + + + + +To make the `twitterHandle`, `lensHandle`, and `farcasterHandle` clickable and rearrange the order of `lensHandle` and `twitterHandle`, you can update the `MemoCard` component as follows: + +### Updated `MemoCard.tsx` +```typescript:_components/MemoCard.tsx +import { Avatar, Name } from '@coinbase/onchainkit/identity'; +import { clsx } from 'clsx'; +import { convertBigIntTimestampToDate } from '@/utils/timestamp'; +import type { CoffeeMemo } from './types'; + +function MemoCard({ numCoffees, twitterHandle, lensHandle, farcasterHandle, message, userAddress, time }: CoffeeMemo) { + const convertedTimestamp = convertBigIntTimestampToDate(time); + const numCoffeesInt = Number(numCoffees); + + return ( +
  • +
    +
    + +
    + + + + + {lensHandle ? (@{lensHandle}) : ''} + {twitterHandle ? (@{twitterHandle}) : ''} + {farcasterHandle ? (@{farcasterHandle}) : ''} + + + bought {numCoffeesInt} coffee{numCoffeesInt > 1 ? 's' : ''} + +
    +
    +
    + {convertedTimestamp.toDateString()} +
    +
    +
    +

    + + {message} + +

    +
    +
  • + ); +} + +export default MemoCard; +``` + +This update makes the social network handles clickable, directing users to the respective URLs, and rearranges the order of `lensHandle` and `twitterHandle` as requested. From d1fe59c6e4d91ef4ca4cd59560e81c2ed2076284 Mon Sep 17 00:00:00 2001 From: "Cursor.so" Date: Thu, 18 Jul 2024 01:11:38 -0300 Subject: [PATCH 2/3] buy-me-coffee: make twitter @s clickable! - Human implement CursorGPT's coding --- .gitmeta/.gitmeta | 23 ------------------- .gitmeta/cids.txt | 2 -- .gitmeta/cids_detailed/files-only.txt | 1 - .gitmeta/cids_detailed/with-sha1.txt | 3 --- .../buy-me-coffee/_components/MemoCard.tsx | 2 +- 5 files changed, 1 insertion(+), 30 deletions(-) delete mode 100644 .gitmeta/.gitmeta delete mode 100644 .gitmeta/cids.txt delete mode 100644 .gitmeta/cids_detailed/files-only.txt delete mode 100644 .gitmeta/cids_detailed/with-sha1.txt diff --git a/.gitmeta/.gitmeta b/.gitmeta/.gitmeta deleted file mode 100644 index 05604a07..00000000 --- a/.gitmeta/.gitmeta +++ /dev/null @@ -1,23 +0,0 @@ -commit QmVT34KFHuhexU4K1uZPQb7mtfpDKb9fMJb56WQ1nFyAmh -Branch: pr-clickablesocial -Signed-off by: danimesq.eth (0xDDfC2e10702d8A781727A34D83B3bb3CA94a3E91) -Signature: 1184b0c7dd3e998fc1198477d2ceaa83b52254b83445399eb68bbb91d86fceab7c0e7bcd71c0648dba76698dbf26b890a97260cf09849dde05f27feda64ddf9b01 - ------------------------------- - -Commit CID if including git's SHA1: QmQGAFPDa8mAeoyL19JHNcMmzy8Zm59LbkVecTG4Fxd81w -Commit CID if containing only file hashes: Qma1uUZiYv3a7JZXLDbxbg4hDBEDR5YM67Xx1rpX9k18N4 - ------------------------------- - -.gitmeta version: r8 -Local folder: /home/daniella/Desktop/Untitled Folder 2/build-onchain-apps -Remote Name: origin -Remote URL: https://github.com/FrameworkJavascript/build-onchain-apps.git - ------------------------------- - -chown -h 1000:1000 'template/web/app/buy-me-coffee/_components/AIConversation.txt' -chmod 0664 'template/web/app/buy-me-coffee/_components/AIConversation.txt' -/usr/bin/touch -hcmd "2024-07-18 01:10:20.8513324100 -0300" 'template/web/app/buy-me-coffee/_components/AIConversation.txt' -/usr/bin/touch -hcad "2024-07-18 01:10:44.4357566460 -0300" 'template/web/app/buy-me-coffee/_components/AIConversation.txt' diff --git a/.gitmeta/cids.txt b/.gitmeta/cids.txt deleted file mode 100644 index 4f16eccb..00000000 --- a/.gitmeta/cids.txt +++ /dev/null @@ -1,2 +0,0 @@ -QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH -QmakfhqUBoFCvWvjYUn2J6tVv3oAarvUY8WBa468t4kxfb diff --git a/.gitmeta/cids_detailed/files-only.txt b/.gitmeta/cids_detailed/files-only.txt deleted file mode 100644 index 97f9a1ed..00000000 --- a/.gitmeta/cids_detailed/files-only.txt +++ /dev/null @@ -1 +0,0 @@ -QmakfhqUBoFCvWvjYUn2J6tVv3oAarvUY8WBa468t4kxfb diff --git a/.gitmeta/cids_detailed/with-sha1.txt b/.gitmeta/cids_detailed/with-sha1.txt deleted file mode 100644 index ff9238ad..00000000 --- a/.gitmeta/cids_detailed/with-sha1.txt +++ /dev/null @@ -1,3 +0,0 @@ -QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH -054029514def72e503d84d4cfda7c3e5295a05ce -QmakfhqUBoFCvWvjYUn2J6tVv3oAarvUY8WBa468t4kxfb diff --git a/template/web/app/buy-me-coffee/_components/MemoCard.tsx b/template/web/app/buy-me-coffee/_components/MemoCard.tsx index 4e4c634d..f71ccc11 100644 --- a/template/web/app/buy-me-coffee/_components/MemoCard.tsx +++ b/template/web/app/buy-me-coffee/_components/MemoCard.tsx @@ -24,7 +24,7 @@ function MemoCard({ numCoffees, twitterHandle, message, userAddress, time }: Cof - {twitterHandle ? ` (@${twitterHandle})` : null} + {twitterHandle ? (@{twitterHandle}) : ''} bought {numCoffeesInt} coffee{numCoffeesInt > 1 ? 's' : null} From 2052c78e3027fcf1561d9f15931ddfb5c588fcb0 Mon Sep 17 00:00:00 2001 From: Daniella Mesquita Date: Thu, 18 Jul 2024 01:41:47 -0300 Subject: [PATCH 3/3] complement previous commit --- .../_components/AIConversation.txt | 75 ------------------- 1 file changed, 75 deletions(-) delete mode 100644 template/web/app/buy-me-coffee/_components/AIConversation.txt diff --git a/template/web/app/buy-me-coffee/_components/AIConversation.txt b/template/web/app/buy-me-coffee/_components/AIConversation.txt deleted file mode 100644 index ebda2be8..00000000 --- a/template/web/app/buy-me-coffee/_components/AIConversation.txt +++ /dev/null @@ -1,75 +0,0 @@ -About @MemoCard.tsx : -Please make the twitterHandle, lensHandle and farcasterHandle texts that are inside parenthesys, please make them clickable. -The URL will be: https://{socialnetwork-url}/{socialnetwork-username-value}. - -For Twitter: twitter.com/ -For Lens: hey.xyz/u/ -For Farcaster: warpcast.com/ - -Also, please move lensHandle above the twitterHandle. - - - - - -To make the `twitterHandle`, `lensHandle`, and `farcasterHandle` clickable and rearrange the order of `lensHandle` and `twitterHandle`, you can update the `MemoCard` component as follows: - -### Updated `MemoCard.tsx` -```typescript:_components/MemoCard.tsx -import { Avatar, Name } from '@coinbase/onchainkit/identity'; -import { clsx } from 'clsx'; -import { convertBigIntTimestampToDate } from '@/utils/timestamp'; -import type { CoffeeMemo } from './types'; - -function MemoCard({ numCoffees, twitterHandle, lensHandle, farcasterHandle, message, userAddress, time }: CoffeeMemo) { - const convertedTimestamp = convertBigIntTimestampToDate(time); - const numCoffeesInt = Number(numCoffees); - - return ( -
  • -
    -
    - -
    - - - - - {lensHandle ? (@{lensHandle}) : ''} - {twitterHandle ? (@{twitterHandle}) : ''} - {farcasterHandle ? (@{farcasterHandle}) : ''} - - - bought {numCoffeesInt} coffee{numCoffeesInt > 1 ? 's' : ''} - -
    -
    -
    - {convertedTimestamp.toDateString()} -
    -
    -
    -

    - - {message} - -

    -
    -
  • - ); -} - -export default MemoCard; -``` - -This update makes the social network handles clickable, directing users to the respective URLs, and rearranges the order of `lensHandle` and `twitterHandle` as requested.