Repository navigation
Add color to user projects - #1528
Merged
Merged
Conversation
- 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)
…complete suggestions
shengquan-ni
reviewed
Jun 2, 2022
shengquan-ni
reviewed
Jun 2, 2022
shengquan-ni
requested changes
Jun 2, 2022
shengquan-ni
left a comment
Contributor
There was a problem hiding this comment.
LGTM, but I suggest we resolve the 2 TODOs before we merge this PR.
shengquan-ni
self-requested a review
June 2, 2022 20:35
1 of 6 tasks
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Solution
The following features were added to support more intuitive, organized visualization of a user's projects, workflows, and files in their user dashboard:
A typical use case of the project colors feature is as follows:
UserProjectListcomponentUserProjectSectioncomponentUserProjectSectionpageDemo
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
SavedWorkflowSectioncomponent 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
UserFileServiceto modify / reuseUserFileSectioncomponent withinUserProjectSectionUserProjectSectionandUserFileSectionafter PR Remove User File Service Local Cache #1486 is approvedSavedWorkflowSectioncomponent search results / autocomplete not updating after modifying workflows