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

Support "dot" character in SegmentDisplay #183

Closed
slok opened this issue Apr 8, 2019 · 8 comments
Closed

Support "dot" character in SegmentDisplay #183

slok opened this issue Apr 8, 2019 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@slok
Copy link
Contributor

slok commented Apr 8, 2019

Hi again @mum4k!

Displaying floats on the segment display in metrics is a common use case, the problem is that the segment display doesn't have support for point (.) character, would be nice to have support for this character.

Example of how it renders the floats at this moment (0.267 without dot):

Thank you!

@mum4k
Copy link
Owner

mum4k commented Apr 9, 2019

Thanks again @slok, indeed the dot character isn't supported which bothered me while I worked on the segment display.

I can't pick this up right away as I would like to land few infrastructure improvements first, but I think it is a good idea to document my original plan here. In case someone else gets to this before me.

The SegmentDisplay widget translates characters into segments. There could be multiple implementations of a segment, but currently only one exists, the 16-segment display:

A1 A2
------- -------
| \ | / |
| \ | / |
F | H J K | B
| \ | / |
| \ | / |
-G1---- ----G2-
| / | \ |
| / | \ |
E | N M L | C
| / | \ |
| / | \ |
------- -------
D1 D2

My original plan was to implement another segment type which would only contain dots. It could look like this:

     -------
    |       |
    |       |
    |   O D1|
    |       |
    |       |
    |       |
    |       |
    |       |
    |   O D2|
    |       |
    |       |
     ---O-D3

The scale should probably be adjusted, the idea is that it will be roughly half the width of a typical 16-segment and contain three dots. The lines aren't part of the segment, they just illustrate its boundaries. It will be capable of displaying the dot (.) and the colon (:) characters.

The SegmentDisplay widget can then be adjusted so that when it encounters dots or colons it would use this new DotSegment(?) instead of the 16-Segment.

Feel free to let me know if I missed anything or if you have suggestions.

@mum4k mum4k added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Apr 9, 2019
@slok
Copy link
Contributor Author

slok commented Apr 9, 2019

Understood! makes a lot of sense what you say

Thanks for taking the time to explain.

@mum4k
Copy link
Owner

mum4k commented Apr 27, 2019

Hey @slok,

with the text input field done recently I have some spare cycles and can look at this or something else.

Would you say that this is the most important missing feature for you or would you like to see something else done first?

@slok
Copy link
Contributor Author

slok commented Apr 27, 2019

Hey @mum4k, first of all, thanks for asking my opinion, that means a lot :)

Regarding the issue I think is important, almost at the same level as these:

But if I have to choose one to prioritize, I would select this issue (#183). With this issue and #188 closed, I could release the 0.1.0 version of grafterm(and publish the source 🎉 ).

@mum4k
Copy link
Owner

mum4k commented Apr 27, 2019

Thank you @slok, this list is very helpful. The choice of what to work on is best made in the context of what users need.

I think we can close this issue and #85 fairly quickly so I will work on these two next.

We could target #105 for the next release, I would love to hear your and Keith's thoughts on how important it is compared to #104 and #5. I will open an issue for us to discuss features for the next release soon.

#164 was more about scrolling within widgets. I would be interested to hear more about your idea of scrolling the full dashboard, can you share some thoughts in #164 when you get some time?

@mum4k mum4k removed good first issue Good for newcomers help wanted Extra attention is needed labels Apr 27, 2019
@mum4k mum4k self-assigned this Apr 27, 2019
@mum4k mum4k added this to the Release 0.9.0 milestone Apr 27, 2019
@keithknott26
Copy link

@mum4k ,

It's hard to say, I know you've put significant work into #5 already, I can comment that #105 would be a very nice feature to have as I have a couple projects going on right now that could use the dropdown/select menu. I've worked around this by having the user specify arguments at startup - certainly a great addition for the user to be able to select things during runtime though. I suppose I could just use the button in the meantime so in my mind that lowers the priority slightly.

Nice work on the text input box by the way!! That went together much faster than I thought, great job!

@mum4k
Copy link
Owner

mum4k commented Apr 28, 2019

Thank you @keithknott26 for chiming in and helping us decide. It is true that we have made some investment into #5 already, but we can finish that at any time. To be fair it will most likely take another month to finish it so it probably is the right choice to keep it shelved until we need it.

Looks like #105 would be useful for both your projects so let's target it for 0.10.0. I also believe that we could benefit from adding more interactive widgets.

Thanks for the feedback on the text input, as always your help in testing it and finding issues I missed is much appreciated.

@mum4k
Copy link
Owner

mum4k commented May 1, 2019

Pushed to the devel branch.

Please let me know in case of any issues with the new code.

@mum4k mum4k closed this as completed May 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants