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

Upgrade external modal component #321

Open
4 tasks
Ngoakor12 opened this issue Sep 30, 2022 · 10 comments
Open
4 tasks

Upgrade external modal component #321

Ngoakor12 opened this issue Sep 30, 2022 · 10 comments
Assignees

Comments

@Ngoakor12
Copy link
Contributor

Ngoakor12 commented Sep 30, 2022

The current modal shows the text "Loading" which tricked me into waiting a few times but digging in the code just shows that it's a place holder text.
image

I think the modal should be updated in the following ways:

  • update the text to something that tells the user that they are about to go to an external site, maybe: You're about to go to an external site. Continue?
  • update the button labels to YES for going to an external site and NO for closing the modal
  • add shortcuts for the two modal options
  • make the modal look more presentable(increase modal text font size, add some padding and center the text, etc.)

Additional info:
The easiest way of triggering the modal for me was to use the shortcut: ctrl+k and try to go to any of the external links, you should see the modal

@mikhael28
Copy link
Owner

Maybe we can add another few things - we can have 'keyboard' shortcuts for accessing these actions quickly. For example, we can have 'N' or 'Enter' open the new tab, and 'esc' close the modal. We might have the text to the left of the text in each button maybe? There is a library called mousetrap I believe, which makes it pretty easy to assign these type of things.

BTW, do you know why the page isn't loading? Is the Cloudflare worker that scans the page timing out - what kind of errors/messages are you getting in the console/network tab? I just tried it on my machine, and everything seems to be working fine.

@Ngoakor12
Copy link
Contributor Author

Ngoakor12 commented Oct 1, 2022

BTW, do you know why the page isn't loading? Is the Cloudflare worker that scans the page timing out - what kind of errors/messages are you getting in the console/network tab? I just tried it on my machine, and everything seems to be working fine.

I never realised that it was supposed to load something, but after monitoring the console/network tabs. I get these...
console
image
network
image

@Ngoakor12
Copy link
Contributor Author

Maybe we can add another few things - we can have 'keyboard' shortcuts for accessing these actions quickly. For example, we can have 'N' or 'Enter' open the new tab, and 'esc' close the modal. We might have the text to the left of the text in each button maybe? There is a library called mousetrap I believe, which makes it pretty easy to assign these type of things.

Shortcuts for the two modal options sounds cool 👌 Will add that to the list of tasks. I haven't heard of mousetrap but will look into it

@mikhael28
Copy link
Owner

Screen Shot 2022-10-08 at 10 32 40 AM

Take a look at this image - it has the Command Icon, and a Letter, next to the button text.

@mikhael28
Copy link
Owner

You can browser some other inspiration: https://dribbble.com/tags/keyboard_shortcuts

@Ngoakor12
Copy link
Contributor Author

@mikhael28 I'd like to start working on this, can you please assign me?

@Ngoakor12
Copy link
Contributor Author

Thanks @jeremydthomas 👌

@Ngoakor12
Copy link
Contributor Author

Will start working on this tomorrow, I couldn't find the time until now🙈

@jeremydthomas
Copy link
Collaborator

So much to do, so little time :)

@mikhael28
Copy link
Owner

I hear you! Finding time is a challenge - right now I'm sitting at a coffee shop with my girlfriend on a Saturday, trying to catch up with everything here - trying to find some time to fully refactor the Experience objects. Need to really re-work those things, and make creating them scalable. It's a bit trickier than I first thought, and trying to find a compelling creation/rich-text/embedded images/media experience. All I will probably accomplish is just determining the architecture/schema/tools - writing the code will have to wait, because I have a super busy week next week!

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

No branches or pull requests

3 participants