-
Notifications
You must be signed in to change notification settings - Fork 96
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
CSSTUDIO-2572: Add a "Jump to Log Entry" TextField to the Logbook application #3195
Conversation
…the current log entry.
…e the current value of 'jumpToLogEntryTextField'.
How likely it is for an end user to know the ID of a log entry? A plain text search might be more relevant, where entries with that text in the author, title, body will be highlighted, with next/previous buttons to jump between log entries that contain the word. Otherwise fine. |
@kasemir wrote:
The ID of a log entry is displayed when displaying the log entry: The use case is that a user wants to share a link (or equivalent) to a log entry when using the Phoebus Logbook client. It is not practical to ask another user to search for the log entry in question. |
It is already possible to share links: see Copy URL button, which is also available in the web client. |
Sharing is currently possible, but opening a link in the Logbook application is not possible. This pull request is intended to allow a user to open a specified log entry in the Logbook application in Phoebus. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Log entry ids are always numerical, so the input field should accept only digits.
Also, the cursor is aligned in the middle and after uses presses it jumps back to the start of the entered value.
If the parsing of the log entry ID fails (e.g., the input contains non-numeric characters), the input is discarded:
Do I understand you correctly: after entering a value, you would prefer the the cursor to be placed to the right of the entered value? If so, I agree with that and I think it would be preferable. |
In my view disallowing invalid input is nicer. That would also eliminate the need to handle the invalid input. And yes, I think right-aligning cursor is more intuitive. And the entered chars should be left-aligned, in my opinion. |
How would you realize that? One possibility seems to be to use a |
When reaching (in my example) the "last" id 451, the Forward button will take user to 451. |
…xtField after entering a value.
I have now updated the pull request with the following changes:
|
The textfield should always display the ID of the current log entry. If it doesn't, that is a bug. Is that the case? |
…k action when a log entry was successfully retrieved.
As you demonstrated to me yesterday, there was an underlying bug: when trying to go to a log entry that doesn't exist, a "go back" action was added to the log entry that was already being displayed. The result is that the current log entry had two entries in the history. I have now fixed this by only clearing the forward history and adding "go back" actions to the history when the retrieval of a log entry was successful. |
This pull request adds a "Jump to Log Entry" textfield to the Logbook application:
By writing a Log Entry ID into this textfield, one can jump to the corresponding log entry.