-
-
Notifications
You must be signed in to change notification settings - Fork 389
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
feat: Log tab enhancements #458
Conversation
Enhance logging UI
Cool PR, I'll review it asap, thank you 🙏🏼 |
packages/ui/src/components/JobCard/Details/DetailsContent/JobLogs/JobLogs.tsx
Outdated
Show resolved
Hide resolved
packages/ui/src/components/JobCard/Details/DetailsContent/JobLogs/JobLogs.tsx
Outdated
Show resolved
Hide resolved
packages/ui/src/components/JobCard/Details/DetailsContent/JobLogs/JobLogs.tsx
Outdated
Show resolved
Hide resolved
packages/ui/src/components/JobCard/Details/DetailsContent/JobLogs/JobLogs.tsx
Outdated
Show resolved
Hide resolved
packages/ui/src/components/JobCard/Details/DetailsContent/JobLogs/JobLogs.tsx
Outdated
Show resolved
Hide resolved
packages/ui/src/components/JobCard/Details/DetailsContent/JobLogs/JobLogs.tsx
Outdated
Show resolved
Hide resolved
pollingTimer.current = setInterval(async () => { | ||
const logs = await actions.getJobLogs(); | ||
setLogs(getFilteredLogs(formatLogs(logs))); | ||
el.scrollTo({ top: pre.scrollHeight }); |
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.
Why not to scroll the container to 0?
@salman-amjad I've made some improvements and style changes, can you review this branch? git remote -v #check if you have an upstream points to this repo
git remote add upstream [email protected]:felixmosh/bull-board.git # run to add an upstream if not exists
git fetch upsteam
git branch -b pr-458-improvments EDIT: I've pushed the changes :] |
I actually got to something pretty similar myself haha |
@felixmosh I've copied some of your improvements from I'll probably do another PR after this one to move settings like polling time etc to settings UI bull-board-logs-ui-update-v2.mov |
Pay attention, I'm using ol, but not the default numbering... It do preserves line number, and the benefit of this method is that all the logs are aligned (when a line number digit increases) |
I know what that piece of code is doing and we need to use Up to you tho, if you think it looks better with the |
Thank you for this PR, and the co-operation |
Live
button which will allow us to tail logsFullscreen
optionbull-board-logs-ui-update.mov