-
Notifications
You must be signed in to change notification settings - Fork 347
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: actions on log messages #2572
Conversation
<carbon:row-collapse v-else /> | ||
</div> | ||
<div | ||
@click="logEntry.copyLogMessageToClipBoard()" |
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.
HTML could be cleaned up. You don't need parent div
. Just put it on the link.
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.
I tried a different solution now. I have moved the position of the copy button to end, making this stay constant.
Hi @amir20 ! Thanks for the review. I will get back with the changes and improvements needed!
This is a valid point. I must also think of some way of solving this 🤔 |
Hi @amir20 I have moved the position of the Screen.Recording.2023-12-08.at.6.20.31.PM.mov |
Hi @akash-ramaswamy. This is going the right direction I think. I was actually thinking something similar where you move the icons to the right. One thought though, I noticed you have added padding to the right. This makes it so that there is less space. The most common use case is to look at logs, so we shouldn't sacrifice that width in my opinion. When I was thinking about this, I was thinking of using Lastly, I feel like if there was a delay to show the icon would be great. But I believe that is not easily possible. You can probably use something like |
I tried positioning the copy button. Its now on top of content as you are saying. But if content is more, its like overlapping a little bit, and I think thats okay since, we can lower opacity of icon when not hovered on.. your thoughts @amir20 ? Screen.Recording.2023-12-08.at.11.02.10.PM.mov |
Yea that looks better. You could also add a background color as the icon is pretty hard to notice on top of the text. |
Looking good <3 how much work is left to finish it? There is also failed tests but i think you just need to update snapshot. |
Make sure to rebase master. Vitest was updated. |
1 similar comment
Make sure to rebase master. Vitest was updated. |
Hi @amir20 ! I have updated the PR with the cleanups. but checking some tests are failing. |
Yup, test cases are passing! |
Once again, thanks for your time on reviewing @amir20 :) |
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.
A couple quick fixes and ready to merge.
I have at most extracted the classes which are not required for that |
I merged this. Do you have time fix the search mode? Or should I release first? |
Do you mean the log search mode @amir20 ? Im not able to get you. |
I was thinking you can put all the icons in one place and then using |
I will test this immediately and fix this asap @amir20 ! |
I'll hold off releasing. JSON usage is high. For your testing, you can use https://github.com/amir20/echo which you can do You should try to test all the different variations. I am pretty on weekends, but try to respond when I can. I have created a bug so we don't keep discussing here. |
Initial implementation of actions on log messages - Copy to Clipboard.