Skip to content

Add color to user projects - #1528

Merged
ethanwong16 merged 14 commits into
masterfrom
ethan-add-color-to-project
Jun 2, 2022
Merged

ethanwong16 merged 14 commits into
masterfrom
ethan-add-color-to-project

Conversation

@ethanwong16

Copy link
Copy Markdown
Contributor

Introduction

This PR introduces colors to the user project feature, which previously acted as a named label for workflows and files. As workflows and files may be associated with many different projects, project colors are meant to help with staying organized and identifying which workflows / files are associated with which projects. This PR takes in to account user sensitivity to colors and visual indicators, and has the main goals of:

  • Indicating workflow / file --> project membership
  • Tagging related projects / workflows / files with customizable colors
  • Navigating workflows / files by user-specified colors

Solution

The following features were added to support more intuitive, organized visualization of a user's projects, workflows, and files in their user dashboard:

  • using a color wheel to enable selection / setting of a project's color
  • color tags indicating the name / color of a project for each workflow / file
  • a new search bar to filter workflows / files by their project(s)

A typical use case of the project colors feature is as follows:

  • create a new project in the user dashboard UserProjectList component
  • click on the project avatar to select and assign a color to the project
  • click to the project's UserProjectSection component
  • view the workflows / files inside that project, now displaying colors tags indicating which other project(s) they belong to
  • click on the 'x' of a color tag to remove a workflow or file from a project
  • toggle to the filter by project(s) feature to search workflow / file by project
  • click on a color tag to navigate to a new UserProjectSection page

Demo

project-color-short-demo.mov

Current Issues

Currently the searching for workflow / file and filtering by projects are separated by toggling between them, but in the future the search feature needs expansion and refinement. There are also some bugs carrying over from the SavedWorkflowSection component with the refreshing of the search bar after modifying workflows, which should be addressed in addition to its affects on the filter by color / project labels in the future.

Future TODOs

  • Use newly refactored UserFileService to modify / reuse UserFileSection component within UserProjectSection
  • Update implementation of project colors inside UserProjectSection and UserFileSection after PR Remove User File Service Local Cache #1486 is approved
  • Fix bugs with SavedWorkflowSection component search results / autocomplete not updating after modifying workflows
  • Improve search feature of workflows / files and possibly merge with filtering by project colors

- allows setting / removing project color
- displays project tag on user file and user workflow sections
- new search bar to filter files / workflows by project
…kflow search with colors

- Added new dependency for ngx-color-picker , used for setting project color
- Changed API endpoint for retrieving project ID color tag info for workflows / files rendered inside a UserProjectSection
- Updated SavedWorkflowSection component to re-render when project color info changes
- Updated SavedWorkflowSection searching to update when adding / removing workflows to project
- Updated SavedWorkflowSection component filter by project to refresh more accurately when changes occur
- Updated UserProjectSection to not display redundant color tag information
- Updated UserProjectSection to enable refreshing when routing to new project section
- Updated color tab tooltip label to be more informative (remove color tag --> remove from project)
@ethanwong16
ethanwong16 requested a review from shengquan-ni May 23, 2022 03:38
@ethanwong16 ethanwong16 self-assigned this May 23, 2022
@ethanwong16
ethanwong16 requested a review from zuozhiw May 24, 2022 00:14
@Yicong-Huang Yicong-Huang changed the title Add Color To User Projects Add color to user projects Jun 2, 2022

@shengquan-ni shengquan-ni 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, but I suggest we resolve the 2 TODOs before we merge this PR.

@shengquan-ni
shengquan-ni self-requested a review June 2, 2022 20:35

@shengquan-ni shengquan-ni 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

@ethanwong16
ethanwong16 merged commit a9849f1 into master Jun 2, 2022
@ethanwong16
ethanwong16 deleted the ethan-add-color-to-project branch June 2, 2022 22:25
@zuozhiw zuozhiw added the ddl-change Changes to the TexeraDB DDL label Jul 21, 2022
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
* Implemented basic project color feature
- allows setting / removing project color
- displays project tag on user file and user workflow sections
- new search bar to filter files / workflows by project

* Integrated workflow section refactor into project colors & update workflow search with colors
- Added new dependency for ngx-color-picker , used for setting project color
- Changed API endpoint for retrieving project ID color tag info for workflows / files rendered inside a UserProjectSection
- Updated SavedWorkflowSection component to re-render when project color info changes
- Updated SavedWorkflowSection searching to update when adding / removing workflows to project
- Updated SavedWorkflowSection component filter by project to refresh more accurately when changes occur
- Updated UserProjectSection to not display redundant color tag information
- Updated UserProjectSection to enable refreshing when routing to new project section
- Updated color tab tooltip label to be more informative (remove color tag --> remove from project)

* Reformatted files

* Updated workflow component refresh function to prevent duplicate autocomplete suggestions

* Include update to app.module.ts for ngx-color-picker

* Code cleanup and added comments

* Reformat file with sbt scalafmtAll

* Refresh search results after removing workflow's project tag

* Updated spec.ts files to include updated Dashboard object types

* Update user-project-section to reflect changes to user file service
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.

3 participants