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: add editor to update project description #95

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

RA9
Copy link
Contributor

@RA9 RA9 commented Jun 4, 2024

What does this PR do?

This feature integrates a customizable rich-text editor built with Tiptap and Tailwind CSS into the project section when accessed from repository settings.
Fixes #76

image

RA9 and others added 3 commits May 25, 2024 07:52
The code changes include updating the repository description page and editor components. The `fetchRepoDetails` function is added to fetch repository details, and the `repoDetail` variable is used to store the fetched data. The `content` prop is passed to the `UpdateProjectDescription` component to display the current project description. The `UpdateProjectDescription` component now receives the `content` prop instead of hardcoding the description. The `tiptap-editor` component is updated to call `editor.getHTML()` instead of `editor.getText()` in the `onUpdate` callback. The `useState` hook dependency in the `UpdateProjectDescription` component is changed to `[description]` instead of `[repositoryId]`.

Co-authored-by: Johannes <johannes@formbricks.com>
Copy link

vercel bot commented Jun 4, 2024

@RA9 is attempting to deploy a commit to the formbricks Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

github-actions bot commented Jun 4, 2024

Thank you for following the naming conventions for pull request titles! 🙏

@jobenjada
Copy link
Member

jobenjada commented Jun 28, 2024

hey @RA9

thanks for your contribution and sorry for the delay!

Unfortunately, the editor is not respecting line breaks:

image

Did that work for you?

And aren't we missing a Save button? 🤓 We cannot update the text in the db right away because it would stream the editing process to the people looking at the project descriptions.

Thanks!

@jobenjada
Copy link
Member

/award 1

@jobenjada
Copy link
Member

/award 3

@jobenjada
Copy link
Member

/award 4

Copy link

oss-gg bot commented Sep 28, 2024

Awarding RA9: 4 points 🕹️ Well done! Check out your new contribution on oss.gg/RA9

@jobenjada
Copy link
Member

/award 5

Copy link

oss-gg bot commented Sep 28, 2024

Awarding RA9: 5 points 🕹️ Well done! Check out your new contribution on oss.gg/RA9

@jobenjada
Copy link
Member

/award 6

Copy link

oss-gg bot commented Sep 28, 2024

Awarding RA9: 6 points 🕹️ Well done! Check out your new contribution on oss.gg/RA9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add editor to allow updating of Project Description
2 participants