-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add logic to report status message to FreeDV Reporter. #620
Conversation
Message is appearing in the app reporter, but not on the web version. Message column is showing after a js refresh. |
Does holding down Shift while pressing F5 on the Web version improve this at all? |
Not using Firefox 120.0.1, shift-refresh doesn't, shift-F5 opens a browser recording console window of some sort. I also tried Chromium, that doesn't display the message text either, although it displays the Message column. |
I saw your message when I looked at the page without reloading it, but nothing from me showed up. Refreshing it again cleared your message, so clearly there is something that needs fixing. Editing my message showed it until I refreshed the page, so it's repeatable. |
I think I found out what was causing this. Restarted the server with the required changes, hopefully that works a bit better. |
Server fix looks good. Am I right in thinking that the message needs to be edited to be active? It seems that way. A previous message is not shown until I edit it, either in the app or on the web. |
Do you mean when you restart FreeDV? For me, restarting FreeDV brings back the previous message I entered. |
Yes, it does for me now, might have been down to whatever the server change did or maybe some changes with another PR merged in here. I wonder if it would be useful to remind a user of the message somehow, or perhaps have an option to use the existing message on start. |
I'm not sure we need a separate config option for this. Maybe @barjac can chime in? |
I was thinking about something to indicate that a message is set when the reporter window is closed. |
Since the FreeDV Reporter window state persists between executions (i.e. it reopens if it was open when you terminated FreeDV), seeing a message there when it comes back might be enough, right? I'm also presuming that a lot of the use cases for this (i.e. indicating that you're using a WebSDR for receive) won't necessarily make the previously set message invalid on next execution. Anyway, we'll see what @barjac (and anyone else who happens on this PR) think before proceeding either way. |
Hi, I think more space saving in all columns needs to be made for it to work well as it stands. |
Maybe a 'Clear' or 'X' button to the right of the message entry box is needed, as the intention is that these messages in the main are temporary, so rather than having to insert the cursor and backspace over the last message a single click will remove it? |
Regarding space saving: Under 'Status' the word 'Receiving' is too long, 'RX' would suffice. Likewise 'Transmitting' could be TX. 'RX Only' could be totally superseded by simply using 'RXO' in the Msg column. 'TX mode' heading label is forcing the column to be too wide for the data. 'Mode' would suffice. The display of all the data looks rather scrappy due to the centre justification. It would be more readable if it was all left justified. Especially the 'Version' column. @Tyrbiter A lot to discuss but it's a great start and from comments on the air we are all looking forward to seeing this in action. |
Regarding the version reporting, I wonder if it would be sensible to display a tool tip with the version in future, perhaps when this has all settled down. At present it's useful to see when a station is using an older, potentially buggy version. |
"RXO" in the message field won't necessarily be obvious to the new FreeDV user.
Eh...we list modes for both TX and RX. How would one be able to tell which is which if the TX Mode column is shortened as suggested?
Unfortunately I did some experimentation on this and it doesn't look like wxWidgets allows the column names to be center aligned while also having the column data itself be left-aligned. To me, forcing both column names and column data to be left-aligned looks worse, so I'm leaving the alignment as-is for now.
IIRC "FreeDV" comes from the CMake configuration somewhere. Probably not a good idea to change this.
If these messages are temporary, should they not be preserved at all in the configuration, then? I assumed you guys would want them to be but it should be straightforward to remove the save/load code for this if that'll be better. |
A compromise might be to have a clear button, then allow the last 2 or 3 messages to be selected from a drop-down list? A new message would remove the earliest one from the drop-down. Of course, we could wait to decide until more people have had the chance to play with it live. |
How many characters do you envisage finally allowing? If more than 3 then 6 would cope with 'RXonly'.
'RX mode' is to the right of RX call which makes fairly obvious, so 'Mode' in that position with a tooltip would I think be adequate. Space needs to come from somewhere :/ There is existing padding in all columns which could be reduced. I can do it manually in GUI headers. Can this be tightened up in the code?
OK, if we stuck to 3 characters then this may not be a problem, but at present the Msg field is so wide that 3 characters centred puts them so far to the right that they are off screen. I think that the 'Msg' column should be to the right of the current 'Status' column in the centre of the display.
Maybe just remove it then for the reporter? 'x.x.x-devNN', x.x.x-123ab or x.x.x.
I did say 'in the main' since some should be preserved like WRX (Web sdr receiving), which for someone who has to use remote RX due to noise it will be a permanent message. |
An MRU list was in the original enhancement request, so yes, I would think 10 a more suitable limit.
|
No neither do I if I restart the reporter. EDIT Just tested again on a different system with the same issue. The issue seems to occur when the required message column width is different between the old and new filter being selected. |
I'm able to duplicate by selecting the filters in this order: All->160m->80m->60m. The fix I just checked in seems to resolve it for me, but give it a shot.
I should have clarified. Enter (or pushing the Set button) would be for adding new messages. No need to do either of those things if you select an existing item.
Agreed. Hopefully the graying out of it (and the Clear button) when there's nothing new to potentially commit to the list will make that clearer.
May be a bit more complicated on Windows, though, since the Registry's used for that platform.
We'd only have access to the selected item, not the item under the mouse cursor (and selection doesn't change until the box closes again). Also, the proposed right-click behavior definitely wouldn't be obvious to users.
What color should be used if this were to be implemented? Same as for RX, or a different one? |
User selectable like the others would be consistent. Edit - Just thinking more about this... |
No it's not fixed. If I then check 'Track' then this also OK: If I now un-check 'Track' then we hit the problem: Moving from a filter with a message to a filter without causes the problem. ###################################### O/T |
Sure, but what about the default?
I'll have to look at how this is being done for the other colors. It's possible we can only do it for the entire row. |
The palest purple looks good to me but I have forgotten what the defaults are. |
See EDIT in my post with screen shots. |
Unfortunately it does indeed look like it has to be adjusted on a row by row basis. The latest implements this with a 5 second timeout (TBD) and the purple background as the default.
Yeah, I think this is a wxWidgets bug, but I think I was able to work around it now with the latest in this PR.
The latest widens that field a bit more. I don't think I can go further without making the window unusable on 720p displays, though. |
Tested @ #aff64 and it's looking good, not much left to do :) After changing message: Not sure I agree with 'Don't highlight when we change our own message.' I rather think it would be reassuring if all users see the same. I would like to see confirmation that my new message was highlighted for everyone. I think without this users will think it's not working. It would also make testing easier ;) The widened message entry box did not need such a big increase, less than half would have been adequate for my '0123456789abcde' test on the low aspect Dell office type screen. See first image. |
I tried to force that column to always auto-resize on any updates to it but that doesn't seem to be working for some reason. It's weird because I'm pretty sure other columns are able to auto-resize on changes without any issues. Maybe we can leave it for now and revisit if it ends up becoming a serious issue.
Reverted.
I shrunk it to 180px but let me know if it needs a tiny bit more. |
No they don't. Also even if the filter is set to not include me I see a purple row (presumably me) flash up briefly on program start (full FreeDV not just reporter) and the Msg column is set wide for my message even though it's not on the screen.
OK, it would be fine for a 1.9.6 release but with a long Msg and a wide Version the low aspect screen is not far from the limit.
Good that is better :)
Hmm... this is my fault for not finding the widest characters and considering that it's not using a fixed width font. |
All seems fine now :) |
👍 I'll leave the drop-down for now and revisit if it ends up that this is preferred instead. |
Resolves #602 by adding functionality to the FreeDV Reporter window to allow live reporting of a user-defined status message. Example: