New "Compact" layout for Nimiq Pay. UI updates. Bug fixes. #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog
New layout for Nimiq Pay
Using the query param
?layout=compact
, we can activate the new UI for the Nimiq Pay application: https://deploy-preview-9--nimiq-map.netlify.app/?layout=compactNew FAQ modal
Since last month we have added almost 30K locations. The locations have been fetched automatically, but we have not verified them. Therefore, I think it is our responsibility to add a notice/warning. I thought we could do it in the form of a "FAQ" so we can add more content. https://deploy-preview-9--nimiq-map.netlify.app/?modal=faq
Moved Modals
The 'Add new location' and 'Report location' pages have been moved to their own modal instead of their own page.
See diff
Query params everywhere
Everything dynamic can be stored in query parameters: modal, language, location... This allows everything in the application to be copied and shared while maintaining the same state.
See all query params
https://map.nimiq.com/@{lat},{lng},{zoom}
https://map.nimiq.com/?uuid={uuid}
https://map.nimiq.com/?lang={language}
https://map.nimiq.com/?layout={layout}
https://map.nimiq.com/?modal={modal}
https://map.nimiq.com/?nested={nested}
modal
https://map.nimiq.com/?search={search}
https://map.nimiq.com/?q=q-1
faq
modalNew Cryptocities design
When the user explores the map and is in a Cryptocity, we will display a new banner.
Expand to see details
Zoom out
Zoom in
New icons and Nimiq CSS library
Bug fixes
PS: You can open the settings modal (gear icon top left) and click on the logo with the shift key pressed 🤌