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

feat(LogSheet): Update UI of log download links #670

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

murilx
Copy link
Contributor

@murilx murilx commented Dec 11, 2024

  • Added a new function truncateUrl used to truncate the URL in the log viewer
  • Changed the title of the download log table to "Full logs"
  • Changed the messaged of the QuerySwitcher to "Download your logs here"
  • Changed the style of the log links, making their font size greater and their color blue with an underline hover effect

Closes #655

Visual Reference

Before
log_before

After
log_after

- Added a new function `truncateUrl` used to truncate the URL in the log
  viewer
- Changed the title of the download log table to "Full logs"
- Changed the messaged of the QuerySwitcher to "Download your logs
  here"
- Changed the style of the log links, making their font size greater and
  their color blue with an underline hover effect

Closes #655
@murilx murilx self-assigned this Dec 11, 2024
domainLength = 50,
endPathLength = 20,
): string => {
if ('parse' in URL && url) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If 'parse' not in URL (meaning the browser does not support this) but url is not undefined, the function should call truncateBigText so that the URL is not shown unprocessed. Other solution would be to refactor this function to always use native/supported JS functions like split('/')

@murilx murilx marked this pull request as draft December 11, 2024 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Log Viewer: full log downloads does't looks like downloadable. Improve UI to make it clear.
1 participant