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

Graph Legend: Fix variables named legend #495

Closed
hoorayimhelping opened this issue Mar 10, 2021 · 6 comments
Closed

Graph Legend: Fix variables named legend #495

hoorayimhelping opened this issue Mar 10, 2021 · 6 comments

Comments

@hoorayimhelping
Copy link
Contributor

hoorayimhelping commented Mar 10, 2021

Background

Until this epic, legend was used interchangeably with tooltip. We currently have a bunch of concepts and variables in giraffe, the UI and even the backend storage of the UI that are tightly coupled to the concept of a legend. Keeping this nomenclature around will cause confusion, bugs, and will require constant explanation.

Acceptance Criteria

  • Create a new concept called StaticLegend
  • Rename Legend to Tooltip
  • Mark the Legend concept as deprecated
  • Come up with a plan to remove Legend
@TCL735
Copy link
Contributor

TCL735 commented Mar 19, 2021

Some thoughts on this...

The interface for static legend has basically the same properties (with width and height added) as the current legend properties seen here:
Screen Shot 2021-03-18 at 5 16 44 PM

One way to handle the renaming would be to keep the existing properties, and make them apply to both the Tooltip and the Static Legend. And then introduce a new property (object) for each of them that overrides the specific properties when included. The new configuration would look something like below. Properties are omitted in tooltip and staticLegend when not overridden.

legendFont: string,
legendFontColor: string,
legendFontBrightColor: string,
legendBackgroundColor: string,
legendColorizeRows: boolean,
legendBorder: string,
legendCursor: string,
legendOpacity: number,
legendOrientationThreshold: number,
tooltip: {
  font: string
  fontColor: string
  fontBrightColor: string
  backgroundColor: string
  colorizeRows: boolean
  border: string
  cursor: string
  opacity: number
  orientationThreshold: number
},
staticLegend: {
  width: number
  height: number
  font: string
  fontColor: string
  fontBrightColor: string
  backgroundColor: string
  colorizeRows: boolean
  border: string
  cursor: string
  opacity: number
  orientationThreshold: number
}

The goal would be to allow the user to use the same styling without repeating the configuration, and differentiating the styling only as desired.

@kristinarobinson kristinarobinson added this to the Sprint 21-Q1-5 milestone Mar 23, 2021
@TCL735
Copy link
Contributor

TCL735 commented Mar 25, 2021

There is a lot of code to track down in multiple repositories. The timing of the code changes must be carefully orchestrated. Marking this as a 5-pointer.

@TCL735 TCL735 self-assigned this Apr 20, 2021
@TCL735
Copy link
Contributor

TCL735 commented Apr 22, 2021

Much of the work to get consistency with naming in Giraffe will be done here: #547

@TCL735
Copy link
Contributor

TCL735 commented Apr 22, 2021

Still to come: ensure the ui repository has consistent naming for the tooltip and static legend

@TCL735
Copy link
Contributor

TCL735 commented May 7, 2021

@TCL735
Copy link
Contributor

TCL735 commented May 7, 2021

This issue is a side effect and will resolve itself as the Static Legend work is completed which is tracked by other issues.

Closing this.

@TCL735 TCL735 closed this as completed May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants