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

Fix/file path url encoding #178

Merged
merged 4 commits into from
Jan 23, 2024
Merged

Conversation

johann-crabnebula
Copy link
Contributor

This fixes the lingering bug from here:
https://linear.app/crabnebula/issue/DT-53/sources-tab-shoud-be-able-to-handle-file-names-containing-

The implementation of escaping . was not quite right yet. Since there is no proper way to escape them, I simply "invented" the escape code %DDD to replace the dots.

(Strictly speaking there is the code %2E for . the problem with that one is, that solid router just changes it back to a . and Chrome for example also acts weird with it)

Added some URL encoding as well to make sure the rest does not break the URL.

I also noticed that accessing nested files was broken in the previous implementation. As a side effect that is fixed as well.

Furthermore the Unknown View was not properly showing for types that were not in our list at all. A fix for that is included.

Resolves DT-53

Copy link

netlify bot commented Jan 16, 2024

Deploy Preview for cn-devtools-website ready!

Name Link
🔨 Latest commit 2d772fa
🔍 Latest deploy log https://app.netlify.com/sites/cn-devtools-website/deploys/65af82d5f6edfc0008154677
😎 Deploy Preview https://deploy-preview-178--cn-devtools-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 68 (🔴 down 27 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 16, 2024

Deploy Preview for cn-devtools-app ready!

Name Link
🔨 Latest commit 2d772fa
🔍 Latest deploy log https://app.netlify.com/sites/cn-devtools-app/deploys/65af82d5354bdb0008f723e7
😎 Deploy Preview https://deploy-preview-178--cn-devtools-app.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@johann-crabnebula johann-crabnebula force-pushed the fix/file-path-url-encoding branch from 690afbf to d7b6589 Compare January 18, 2024 14:46
Copy link
Contributor

@atila-crabnebula atila-crabnebula left a comment

Choose a reason for hiding this comment

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

Code is perfect and works.
I only had a small nib on the comment for this solution to be fool-proof.

Feel free to change the wording however you see fit though.

Co-authored-by: AtilaFassina for CrabNebula <[email protected]>
@atila-crabnebula atila-crabnebula merged commit 1f96bcf into main Jan 23, 2024
10 checks passed
@atila-crabnebula atila-crabnebula deleted the fix/file-path-url-encoding branch January 23, 2024 09:14
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.

2 participants