Skip to content

Add Descriptions to Projects - #1767

Merged
ethanwong16 merged 17 commits into
masterfrom
ethan-add-description-to-projects
Dec 21, 2022
Merged

ethanwong16 merged 17 commits into
masterfrom
ethan-add-description-to-projects

Conversation

@ethanwong16

@ethanwong16 ethanwong16 commented Dec 10, 2022 •

Copy link
Copy Markdown
Contributor

Introduction

This PR takes steps to improve the project feature by adding an editable description. The intent is that project descriptions will be more complex and comprehensive than descriptions of workflows or files.

Solution

The existing description feature on workflows and files was the inspiration behind this feature.
The following changes were made to implement this description feature

  • SQL DDL change to add description column to user_project table
  • backend web application change to ProjectResource.scala to add endpoint for updating descriptions
  • frontend changes to render editable project description, modeled off of Ng Zorro Typography component

Demo

Screen.Recording.2022-12-09.at.21.49.37.mov

Current Issues

This is an issue with the existing workflow / file description feature as well, but text does not wrap when it gets too long and the description component currently does not automatically focus (users have to click into the text box to start typing, the cursor is not automatically moved there for them). These are all edge cases but fixing them could improve the user experience.

Future TODOs

  • Add capabilities to edit project description from within a single UserProjectSection component as well
  • Make lengthy user descriptions wrap instead of overflowing
  • Potentially improve on description rendering by adding support for markup
  • Add some interval to potentially save descriptions at different checkpoints as Yicong suggested

@ethanwong16 ethanwong16 added feature ddl-change Changes to the TexeraDB DDL labels Dec 10, 2022
@ethanwong16 ethanwong16 self-assigned this Dec 10, 2022
@ethanwong16
ethanwong16 marked this pull request as ready for review December 10, 2022 08:06

@Yicong-Huang Yicong-Huang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, left some comments, mostly regarding backend code. Please take care of them.

@Yicong-Huang

Yicong-Huang commented Dec 13, 2022 •

Copy link
Copy Markdown
Contributor

I have a minor concern regarding this feature now. Similar to editing a PR description on GitHub, editing a project description could also take some time. What if the page was refreshed during the editing, will we lose all contents edited? For GitHub when I edit a PR and refresh, I still get the edit history back. maybe better to do automatic save, such as save it for every keystroke within 10 seconds, or save it to sessionStorage temporarily etc? No need to include it in this PR, just an idea to see if it is useful.

@ethanwong16

Copy link
Copy Markdown
Contributor Author

I have a minor concern regarding this feature now. Similar to editing a PR description on GitHub, editing a project description could also take some time. What if the page was refreshed during the editing, will we lose all contents edited? For GitHub when I edit a PR and refresh, I still get the edit history back. maybe better to do automatic save, such as save it for every keystroke within 10 seconds, or save it to sessionStorage temporarily etc? No need to include it in this PR, just an idea to see if it is useful.

I think this would be a nice feature to add, I updated the future TODOs in the PR description to explore this as well, thank you

@Yicong-Huang

Copy link
Copy Markdown
Contributor

Please merge the current master and resolve the conflicts. Please note that we now require each endpoint to manage role access as well.

@Yicong-Huang Yicong-Huang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Left a minor comment.

@ethanwong16
ethanwong16 merged commit 6632890 into master Dec 21, 2022
@ethanwong16
ethanwong16 deleted the ethan-add-description-to-projects branch December 21, 2022 02:25
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
Introduction 
---
This PR takes steps to improve the project feature by adding an editable
description. The intent is that project descriptions will be more
complex and comprehensive than descriptions of workflows or files.

Solution
---
The existing description feature on workflows and files was the
inspiration behind this feature.
The following changes were made to implement this description feature

- SQL DDL change to add `description` column to `user_project` table
- backend web application change to `ProjectResource.scala` to add
endpoint for updating descriptions
- frontend changes to render editable project description, modeled off
of Ng Zorro Typography component

Demo
---

https://user-images.githubusercontent.com/57075492/206831905-76e1b8e5-d404-49a6-bae3-b4f491f44fc6.mov


Current Issues
---
This is an issue with the existing workflow / file description feature
as well, but text does not wrap when it gets too long and the
description component currently does not automatically focus (users have
to click into the text box to start typing, the cursor is not
automatically moved there for them). These are all edge cases but fixing
them could improve the user experience.

Future TODOs
---
- Add capabilities to edit project description from within a single
`UserProjectSection` component as well
- Make lengthy user descriptions wrap instead of overflowing
- Potentially improve on description rendering by adding support for
markup
- Add some interval to potentially save descriptions at different
checkpoints as Yicong suggested
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ddl-change Changes to the TexeraDB DDL feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants