influxdata / influxdata/ui

UI formatting masks/trims leading whitespace

Open
#6,684 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug team/ui
Dominant language
TypeScript
Stars
117
Forks
51
Avg merge
2d 15h
Merged PRs (30d)
4

Description

About the bug

Steps to reproduce:

Write in three points:

foo,location=NA21 value=1
foo,location=NA2\ 1 value=2
foo,location=\ NA21 value=3

Then go to Query builder or the script editor and navigate so that tag values for location are listed

Expected behavior:
Each of the tag values should be listed with it clear which tag is which

Actual behavior:
Three tag values are listed but two are seemingly identical.

If you tick both and look at the generated query you can see the leading space.

Visual Proof:

Screenshot_2023-05-02_14-17-45

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the Query builder and script editor flows that list tag values, reproducing the issue with the three location values shown. Trace how those values are formatted for display and verify that the two values with leading whitespace remain visibly distinct while generated queries preserve the whitespace.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.