Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: insert images to notes #1964

Closed

Conversation

AdityaPimpalkar
Copy link
Contributor

@AdityaPimpalkar AdityaPimpalkar commented Oct 10, 2023

closes: #1878

The image picker is overflowing (not sure if we change it's css)

Feedback is appreciated! :)

Screen.Recording.2023-10-11.at.2.09.35.PM.mov

Copy link
Contributor Author

@AdityaPimpalkar AdityaPimpalkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need some help with this :)

Comment on lines +50 to +55
// uploadAttachmentMutation({
// variables: {
// file: file,
// activityId: activity.id,
// },
// })
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am little confused as to which personId and companyId are to be passed, is it the person and their assigned company? or the relations assigned to the note? Thanks!

@@ -56,7 +56,7 @@ export const RightDrawer = () => {
useListenClickOutside({
refs: [rightDrawerRef],
callback: () => closeRightDrawer(),
mode: ClickOutsideMode.absolute,
mode: ClickOutsideMode.dom,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing this to dom because the drawer was closing when I clicked on upload image

Comment on lines +157 to +162
const bodyContent = JSON.parse(body);
const parsedTitle = Array.isArray(bodyContent)
? bodyContent[0].type !== 'image'
? bodyContent[0].content[0]?.text
: ''
: '';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Temporarily handling the case if image was added as a first activity (block note does not have a contents property for upload image)

Should the image be displayed on TimelineActivity?

@charlesBochet
Copy link
Member

@AdityaPimpalkar sorry for the slow review, it has been super busy these days, I'm taking a look tomorrow morning :)

@lucasbordeau
Copy link
Contributor

Waiting for activities refactor with custom objects

@charlesBochet
Copy link
Member

@bosiraphael :)

@bosiraphael
Copy link
Contributor

Hello @AdityaPimpalkar, thank you very much for your contribution. This issue will be closed by #2872. Unfortunately, we changed many things in the app since your PR has been opened so we will have to close it.
But we encourage you to take a look at other good first issues if you're interested in contributing again to the project 😊

@bosiraphael bosiraphael closed this Dec 8, 2023
@charlesBochet
Copy link
Member

@AdityaPimpalkar Really sorry about not merging your PR! We have changed a lot of things over the last months and were forced to hold on many PRs. Thanks a lot for the help, deeply appreciated :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to insert images within notes
4 participants