Skip to content

Commit

Permalink
another fix try - Human implement Claude.ai's coding
Browse files Browse the repository at this point in the history
  • Loading branch information
Claude authored and danimesq committed Aug 30, 2024
1 parent 1c0597b commit c8ec9dd
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 25 deletions.
16 changes: 8 additions & 8 deletions .gitmeta/.gitmeta
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
commit QmaB94Mbn6t1NsjEdpt86iG63kyXBTfqWMERg7wdAqYRzA
commit QmZuCJo9fB2r1xMJDktT2XeFzGmNZvSVrDqBCeaqDWhRtw
Branch: main
Signed-off by: danimesq.eth (0xDDfC2e10702d8A781727A34D83B3bb3CA94a3E91)
Signature: b14268229efb36fbbc07fe02a177b20f49449c42c9f5f97b9487aaf587b6513007e8cf43187b6ef302bca55eab5fc0b928b9fe7b31b969bfc9bd3e230ceae6aa01
Signature: c36e8c4b92182351269b5fc6a12108d49d77f3b22e143c75e1cb2abdcb151e580c515f0f1062a40d410e392a03669802d19e9dfd62f22c920a34fa9f29f7208800

------------------------------

Commit CID if including git's SHA1: QmdBNzNh7iuqtuYeKDMnv2BYobC25SKpi3qBFe6NcJCGkP
Commit CID if containing only file hashes: QmXjHT1NK3CMUzoQaTntrud8LqnuYjUcNeN6Eop88zCso2
Commit CID if including git's SHA1: QmZP3gAFbNSdBRWg7GmCqeV1HUgvxgjh6dcbibnZrjy6PQ
Commit CID if containing only file hashes: Qmarimfi4D8xCcX27WZdcBFLUVTLgixD22wno6Zm4jQUpR

------------------------------

Expand All @@ -17,7 +17,7 @@ Remote URL: https://github.com/PeepzHQ/heypeepz.git

------------------------------

chown -h 1000:1000 'AIConversation.md'
chmod 0664 'AIConversation.md'
/usr/bin/touch -hcmd "2024-08-29 21:09:19.1929276900 -0300" 'AIConversation.md'
/usr/bin/touch -hcad "2024-08-29 21:09:19.2519274760 -0300" 'AIConversation.md'
chown -h 1000:1000 'apps/web/src/components/Settings/Profile/Profile.tsx'
chmod 0664 'apps/web/src/components/Settings/Profile/Profile.tsx'
/usr/bin/touch -hcmd "2024-08-29 21:06:55.3576967290 -0300" 'apps/web/src/components/Settings/Profile/Profile.tsx'
/usr/bin/touch -hcad "2024-08-29 21:06:55.4006964190 -0300" 'apps/web/src/components/Settings/Profile/Profile.tsx'
4 changes: 2 additions & 2 deletions .gitmeta/cids.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
QmZ9pELRSwoxMZDmNQgDz9NZgkXPoUhShKJqvxqJhCtudv
QmZU2TuN1ka8oNikAifN4pXerWMbKk7vpZk6VgTYzoFimT
QmaB94Mbn6t1NsjEdpt86iG63kyXBTfqWMERg7wdAqYRzA
QmVauMnMJHocE9e7QfyQNQSbg1URZNbhQsKnRD7xQmfywd
2 changes: 1 addition & 1 deletion .gitmeta/cids_detailed/files-only.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
QmZU2TuN1ka8oNikAifN4pXerWMbKk7vpZk6VgTYzoFimT
QmVauMnMJHocE9e7QfyQNQSbg1URZNbhQsKnRD7xQmfywd
6 changes: 3 additions & 3 deletions .gitmeta/cids_detailed/with-sha1.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
QmZ9pELRSwoxMZDmNQgDz9NZgkXPoUhShKJqvxqJhCtudv
246a4cd4272d25a10a604592992e6a01ef3f8659
QmZU2TuN1ka8oNikAifN4pXerWMbKk7vpZk6VgTYzoFimT
QmaB94Mbn6t1NsjEdpt86iG63kyXBTfqWMERg7wdAqYRzA
1c0597bb6c110b20109506cc23649fe814ff081a
QmVauMnMJHocE9e7QfyQNQSbg1URZNbhQsKnRD7xQmfywd
17 changes: 6 additions & 11 deletions apps/web/src/components/Settings/Profile/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ import { useSignTypedData, useWriteContract } from 'wagmi';
import { object, string, union } from 'zod';

const editProfileSchema = object({
avatarIPFS: string().optional(),
bio: string().max(260, { message: 'Bio should not exceed 260 characters' }),
coverIPFS: string().optional(),
location: string().max(100, {
message: 'Location should not exceed 100 characters'
}),
Expand All @@ -74,9 +76,7 @@ const editProfileSchema = object({
string().regex(Regex.url, { message: 'Invalid website' }),
string().max(0)
]),
x: string().max(100, { message: 'X handle must not exceed 100 characters' }),
avatarIPFS: string().optional(),
coverIPFS: string().optional()
x: string().max(100, { message: 'X handle must not exceed 100 characters' })
});

type FormData = z.infer<typeof editProfileSchema>;
Expand All @@ -97,7 +97,6 @@ const ProfileSettingsForm: FC = () => {
useState(false);
const [croppedCoverPictureAreaPixels, setCoverPictureCroppedAreaPixels] =
useState<Area | null>(null);
const [uploadedCoverPictureUrl, setUploadedCoverPictureUrl] = useState('');
const [uploadingCoverPicture, setUploadingCoverPicture] = useState(false);

// Picture
Expand All @@ -111,8 +110,6 @@ const ProfileSettingsForm: FC = () => {
useState(false);
const [croppedProfilePictureAreaPixels, setCroppedProfilePictureAreaPixels] =
useState<Area | null>(null);
const [uploadedProfilePictureUrl, setUploadedProfilePictureUrl] =
useState('');
const [uploadingProfilePicture, setUploadingProfilePicture] = useState(false);

const handleWrongNetwork = useHandleWrongNetwork();
Expand Down Expand Up @@ -205,7 +202,9 @@ const ProfileSettingsForm: FC = () => {

const form = useZodForm({
defaultValues: {
avatarIPFS: '',
bio: currentProfile?.metadata?.bio || '',
coverIPFS: '',
location: getProfileAttribute(
'location',
currentProfile?.metadata?.attributes
Expand All @@ -218,9 +217,7 @@ const ProfileSettingsForm: FC = () => {
x: getProfileAttribute(
'x',
currentProfile?.metadata?.attributes
)?.replace(/(https:\/\/)?x\.com\//, ''),
avatarIPFS: '',
coverIPFS: ''
)?.replace(/(https:\/\/)?x\.com\//, '')
},
schema: editProfileSchema
});
Expand Down Expand Up @@ -333,10 +330,8 @@ const ProfileSettingsForm: FC = () => {
// Update Profile Picture
if (type === 'avatar') {
setProfilePictureIpfsUrl(ipfsUrl);
setUploadedProfilePictureUrl(dataUrl);
} else if (type === 'cover') {
setCoverPictureIpfsUrl(ipfsUrl);
setUploadedCoverPictureUrl(dataUrl);
}
} catch (error) {
onError(error);
Expand Down

0 comments on commit c8ec9dd

Please sign in to comment.