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 loading of illustration in connection modal #173

Closed
markmhendrickson opened this issue Oct 11, 2021 · 17 comments · Fixed by #207
Closed

Fix loading of illustration in connection modal #173

markmhendrickson opened this issue Oct 11, 2021 · 17 comments · Fixed by #207
Assignees

Comments

@markmhendrickson
Copy link
Contributor

image

@nokhodian
Copy link

We are trying to modify the photo on this modal, but we didn't find any documentation is there anyway of doing this?

@fbwoolf
Copy link
Contributor

fbwoolf commented Apr 3, 2022

We are trying to modify the photo on this modal, but we didn't find any documentation is there anyway of doing this?

This is an illustration specific to the Hiro Wallet. No, it can't be changed unless you fork this repo. It is not something we support/document.

@markmhendrickson
Copy link
Contributor Author

@nokhodian Do you want to change the illustration itself or the app icon to the bottom-right corner of the illustration?

Illustration

Screen Shot 2022-04-04 at 13 14 28

App icon

image

If the app icon, you can pass the URL for it during authentication with Connect.

image

@markmhendrickson
Copy link
Contributor Author

@fbwoolf what remains to standardize these days with the intro modal here? Should we keep this issue open and modify it to capture the remaining work more specifically, or close out?

@nokhodian
Copy link

@nokhodian Do you want to change the illustration itself or the app icon to the bottom-right corner of the illustration?

Illustration

Screen Shot 2022-04-04 at 13 14 28

App icon

image

If the app icon, you can pass the URL for it during authentication with Connect.

image

The problem was that no image was showing up and we couldn't modify the path, the only solution was statically putting the image where it was hardcoded, we ended up implementing the whole modal at our side though :)

@markmhendrickson
Copy link
Contributor Author

The problem was that no image was showing up and we couldn't modify the path

Sorry I'm still not clear on which image wasn't showing up exactly. Do you mean the app icon or illustration or both?

we ended up implementing the whole modal at our side though :)

Did you fork the library or create a new custom modal out of curiosity?

@nokhodian
Copy link

image
that's what the modal looks like, we are making a new custom modal, still, it's not done though

@markmhendrickson
Copy link
Contributor Author

Thanks for the screenshot for clarification 🙏 If you right click on the broken image, can you copy and paste the URL that's attempted for loading here?

@fbwoolf
Copy link
Contributor

fbwoolf commented Apr 6, 2022

@markmhx this is outdated. The illustration in Connect has been updated and no longer includes the app icon.

@nokhodian
Copy link

Thanks for the screenshot for clarification 🙏 If you right-click on the broken image, can you copy and paste the URL that's attempted for loading here?

sure,,,, /assets/download-hiro-wallet.png ... that's the image and if you statically put an image there it will show up, however, we didn't want to compromise on the structure of our project.

@markmhendrickson
Copy link
Contributor Author

Thanks! By "we didn't want to compromise on the structure of our project", what do you mean exactly?

@nokhodian
Copy link

Thanks! By "we didn't want to compromise on the structure of our project", what do you mean exactly?

we didn't want to add a folder and file exactly like its defined, we have another folder for static resources

@markmhendrickson markmhendrickson changed the title Standardize intro modal with design system Fix loading of illustration in connection modal Apr 8, 2022
@fbwoolf
Copy link
Contributor

fbwoolf commented Apr 10, 2022

I feel like this was reported as a separate bug regarding the app icon, but now there is a different bug with the png being used for the new illustration. Just wanting to make note of that bc when this issue was created in October /assets/download-hiro-wallet.png did not exist. I can def look into fixing why the new png isn't loading.

@fbwoolf
Copy link
Contributor

fbwoolf commented Apr 10, 2022

Nvm, I read back through the thread here. I see the thread is a bit confusing ...but this is def a bug with the new png illustration, so I'll fix it.

@fbwoolf fbwoolf self-assigned this Apr 10, 2022
@fbwoolf
Copy link
Contributor

fbwoolf commented Apr 11, 2022

@markmhx is this something I should take on today and get fixed?

@fbwoolf
Copy link
Contributor

fbwoolf commented Apr 12, 2022

There seem to be a few open issues in stenciljs regarding the getAssetPath and setAssetPath not working. It doesn't seem like a great library to use considering these issues have been open for quite some time. I've tried suggested workarounds today, but no luck. We would need to instruct the app to copy the assets in their webpack config (I think) if we want to use pngs. @kyranjamie any thoughts?

ionic-team/stencil#2269
ionic-team/stencil#1868

@kyranjamie
Copy link
Contributor

I'm not super familiar with this problem, but indeed these issues look very stale.

I would try either:

  • Adding a Webpack loader the same as we use in the web wallet
  • Inlining the png image as a data uri directly

@fbwoolf fbwoolf linked a pull request Apr 12, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants