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

Improve QR Code Component in Quo Preview Sandbox #15755

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

siddarthkay
Copy link
Contributor

@siddarthkay siddarthkay commented Apr 26, 2023

This PR adds the ability to :

  • Generate a QR by passing any url.
  • See different error correction levels.
  • Shows the media server url for that specific QR code.
  • Moved media server URI generation logic to image_server.cljs

This is how it looks like:

Screen.Recording.2023-04-26.at.3.10.18.PM.mov

status: ready

@siddarthkay siddarthkay self-assigned this Apr 26, 2023
@siddarthkay siddarthkay force-pushed the add-qr-url-gen-to-image-server branch from 7cae42c to 7282c2c Compare April 26, 2023 09:58
@status-im-auto
Copy link
Member

status-im-auto commented Apr 26, 2023

Jenkins Builds

Click to see older builds (8)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 7282c2c #2 2023-04-26 10:06:49 ~7 min android-e2e 🤖apk 📲
✔️ 7282c2c #2 2023-04-26 10:07:28 ~8 min android 🤖apk 📲
✔️ 7282c2c #2 2023-04-26 10:07:39 ~8 min tests 📄log
✔️ 7282c2c #2 2023-04-26 10:09:40 ~10 min ios 📱ipa 📲
✔️ 93c34c7 #3 2023-04-26 10:25:06 ~7 min ios 📱ipa 📲
✔️ 93c34c7 #3 2023-04-26 10:26:15 ~8 min android-e2e 🤖apk 📲
✔️ 93c34c7 #3 2023-04-26 10:27:08 ~9 min tests 📄log
✔️ 93c34c7 #3 2023-04-26 10:28:05 ~10 min android 🤖apk 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ ddbe0e0 #5 2023-04-27 12:01:36 ~7 min android-e2e 🤖apk 📲
✔️ ddbe0e0 #5 2023-04-27 12:01:40 ~7 min android 🤖apk 📲
✔️ ddbe0e0 #5 2023-04-27 12:03:19 ~8 min tests 📄log
✔️ ddbe0e0 #5 2023-04-27 12:23:32 ~29 min ios 📱ipa 📲
✔️ c1a6e9f #7 2023-04-27 13:54:23 ~5 min android 🤖apk 📲
✔️ c1a6e9f #7 2023-04-27 13:54:26 ~5 min android-e2e 🤖apk 📲
✔️ c1a6e9f #7 2023-04-27 13:54:42 ~5 min tests 📄log
✔️ c1a6e9f #7 2023-04-27 13:55:18 ~6 min ios 📱ipa 📲

Copy link
Contributor

@ilmotta ilmotta left a comment

Choose a reason for hiding this comment

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

We've been trying to add component specs to quo2 components @siddarthkay. Would you mind writing some?

Apart from the missing test, I think the component looks good in my tests. Good stuff Sid!

src/status_im2/contexts/quo_preview/share/qr_code.cljs Outdated Show resolved Hide resolved
src/status_im2/contexts/quo_preview/share/qr_code.cljs Outdated Show resolved Hide resolved
(let [state (reagent/atom {:text "https://status.im"
:error-correction-level :highest})
text (reagent/cursor state [:text])
error-correction-level (reagent/cursor state [:error-correction-level])
Copy link
Contributor

Choose a reason for hiding this comment

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

I like the usage of cursors in these preview screens, I'll use your idea here in the future.

src/utils/image_server.cljs Show resolved Hide resolved
src/utils/image_server.cljs Outdated Show resolved Hide resolved
src/utils/image_server.cljs Outdated Show resolved Hide resolved
src/utils/image_server.cljs Outdated Show resolved Hide resolved
This PR adds the ability to :

- Generate a QR by passing any url.
- See different error correction levels.
- Shows the media server url for that specific QR code.
- Moved media server URI generation logic to `image_server.cljs`
@siddarthkay siddarthkay force-pushed the add-qr-url-gen-to-image-server branch from 2685561 to c1a6e9f Compare April 27, 2023 13:48
@siddarthkay siddarthkay merged commit 2eed30b into develop Apr 27, 2023
@siddarthkay siddarthkay deleted the add-qr-url-gen-to-image-server branch April 27, 2023 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants