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

[$250] Onfido terms fonts in the verify identity page are not legit (Get Onfido to use our fonts) #44570

Closed
1 of 6 tasks
m-natarajan opened this issue Jun 27, 2024 · 44 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Weekly KSv2

Comments

@m-natarajan
Copy link

m-natarajan commented Jun 27, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.0.2.4
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @twisterdotcom
Slack conversation:
https://expensify.slack.com/archives/C049HHMV9SM/p1719491934827009

Action Performed:

  1. Open app in dark mode
  2. Go to workspace
  3. Connect to a bank
  4. Enter the manual credentials
  5. Proceed to verify identity page

Expected Result:

The terms page should be easily legible

Actual Result:

The fonts and colours are difficult to read

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

SCR-20240627-lswi
Snip - (4) New Expensify - Google Chrome (2)

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0162040e800bb2d883
  • Upwork Job ID: 1808367008542862770
  • Last Price Increase: 2024-07-10
Issue OwnerCurrent Issue Owner: @twisterdotcom
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 27, 2024
Copy link

melvin-bot bot commented Jun 27, 2024

Triggered auto assignment to @JmillsExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@m-natarajan m-natarajan changed the title Onfido fonts are not legit Onfido terms fonts in the verify identity page are not legit Jun 27, 2024
@melvin-bot melvin-bot bot added the Overdue label Jul 1, 2024
Copy link

melvin-bot bot commented Jul 1, 2024

@JmillsExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@JmillsExpensify
Copy link

Opening up to the community.

@melvin-bot melvin-bot bot removed the Overdue label Jul 3, 2024
@JmillsExpensify JmillsExpensify added External Added to denote the issue can be worked on by a contributor Overdue labels Jul 3, 2024
@melvin-bot melvin-bot bot changed the title Onfido terms fonts in the verify identity page are not legit [$250] Onfido terms fonts in the verify identity page are not legit Jul 3, 2024
Copy link

melvin-bot bot commented Jul 3, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0162040e800bb2d883

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 3, 2024
Copy link

melvin-bot bot commented Jul 3, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane (External)

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jul 3, 2024
@sobitneupane
Copy link
Contributor

Waiting for proposal

@melvin-bot melvin-bot bot removed the Overdue label Jul 8, 2024
@MrMuzyk
Copy link
Contributor

MrMuzyk commented Jul 10, 2024

I am Michał from Callstack - expert contributor group. I’d like to work on this job.

Can you provide some more info on expected result? How should it look like? At the moment we're providing set of styles in order to achieve this custom Onfido look so there is room to change some things

function initializeOnfido({sdkToken, onSuccess, onError, onUserExit, preferredLocale, translate, theme}: InitializeOnfidoProps) {
OnfidoSDK.init({
token: sdkToken,
containerId: CONST.ONFIDO.CONTAINER_ID,
customUI: {
fontFamilyTitle: `${FontUtils.fontFamily.platform.EXP_NEUE}, -apple-system, serif`,
fontFamilySubtitle: `${FontUtils.fontFamily.platform.EXP_NEUE}, -apple-system, serif`,
fontFamilyBody: `${FontUtils.fontFamily.platform.EXP_NEUE}, -apple-system, serif`,
fontSizeTitle: `${variables.fontSizeLarge}px`,
fontWeightTitle: Number(FontUtils.fontWeight.bold),
fontWeightSubtitle: 400,
fontSizeSubtitle: `${variables.fontSizeNormal}px`,
colorContentTitle: theme.text,
colorContentSubtitle: theme.text,
colorContentBody: theme.text,
borderRadiusButton: `${variables.buttonBorderRadius}px`,
colorBackgroundSurfaceModal: theme.appBG,
colorBorderDocTypeButton: theme.border,
colorBorderDocTypeButtonHover: theme.transparent,
colorBorderButtonPrimaryHover: theme.transparent,
colorBackgroundButtonPrimary: theme.success,
colorBackgroundButtonPrimaryHover: theme.successHover,
colorBackgroundButtonPrimaryActive: theme.successHover,
colorBorderButtonPrimary: theme.success,
colorContentButtonSecondaryText: theme.text,
colorBackgroundButtonSecondary: theme.border,
colorBackgroundButtonSecondaryHover: theme.icon,
colorBackgroundButtonSecondaryActive: theme.icon,
colorBorderButtonSecondary: theme.border,
colorBackgroundIcon: theme.transparent,
colorContentLinkTextHover: theme.appBG,
colorBorderLinkUnderline: theme.link,
colorBackgroundLinkHover: theme.link,
colorBackgroundLinkActive: theme.link,
colorBackgroundInfoPill: theme.link,
colorBackgroundSelector: theme.appBG,
colorBackgroundDocTypeButton: theme.success,
borderWidthSurfaceModal: '0px',
colorBackgroundDocTypeButtonHover: theme.successHover,
colorBackgroundButtonIconHover: theme.transparent,
colorBackgroundButtonIconActive: theme.transparent,
},

@melvin-bot melvin-bot bot added the Overdue label Jul 10, 2024
Copy link

melvin-bot bot commented Jul 10, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@sobitneupane
Copy link
Contributor

I believe we would want it to use fonts like existing pages in RHP. For example: Settings > Save the World > I am a teacher

Screenshot 2024-07-11 at 12 42 45

@melvin-bot melvin-bot bot removed the Overdue label Jul 11, 2024
@MrMuzyk
Copy link
Contributor

MrMuzyk commented Jul 11, 2024

Ok, I'm looking for a cause for this weird look. We're passing custom fontStyles so in theory it should be working but for some reason it isn't.

@MrMuzyk
Copy link
Contributor

MrMuzyk commented Jul 11, 2024

What I've found so far is that few months ago we've upgraded to v14 of Onfido from v13 and this seems to cause the trouble.

I've reverted back to v13 locally to confirm that and passed font seems to be working fine.

onfidov13

Currently we're on version 14.15.0. I've tried upgrading it to the latest one (14.30.0) but the issue persists.

I'm beginning to think that this is an issue on the sdk side and we can't really do anything about it apart from changing it to one of the fonts they officially support that will resemble our own one (list on the bottom).

I will look into a bit more and try to find a workaround for this.

Copy link

melvin-bot bot commented Jul 11, 2024

@JmillsExpensify @sobitneupane this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@MrMuzyk
Copy link
Contributor

MrMuzyk commented Jul 12, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Fonts are looking suspicious and do not match rest of the app on Onfido screen

What is the root cause of that problem?

There weren't any changes on our end when it comes to fonts used in Onfido iframe so after investigating that everything looks fine on our end I've started looking for the cause on the package side.

When onfido-sdk-ui package was upgraded to v14 the fonts stopped working. I've confirmed that by downgrading to v13 (see screenshot). After lowering version it simply started working again.

onfidov13

I'm suspecting that this is something that is broken on the Onfido package side so definitve root cause isn't known. What happens is that the font we're providing is not being detected so it defaults to some serif font causing this look reported in the issue. Why it is not being picked up - I don't know. There is no Issues tab in onfido-sdk-ui github repository so I can't even tell if this is something that other people are struggling with.

What changes do you think we should make in order to solve the problem?

Custom font provided by us via customUI prop when initializing Onfido is not being picked up by iframe so font defaults to some serif one. We can comment out (and leave a comment why is that) fontFamilyTitle, fontFamilySubtitle and fontFamilyBody styles inside customUI object so it uses default Onfido font which looks much nicer. In the meantime we can report the issue to Onfido and wait for them to fix it (if it's actually on them). Below screenshot how it looks with default Onfido font.

onfido-default-font

What alternative solutions did you explore? (Optional)

I've tried upgrading package from 14.15.0 (current version in app) to latest one (14.30.0) but the issue persists.

There is also an option to change the font to one of the google fonts they support. I've tried one of them and it worked. This is the list of them

@sobitneupane
Copy link
Contributor

we can report the issue to Onfido and wait for them to fix it (if it's actually on them).

@MrMuzyk I believe this is the best approach. First, let's inform them about the issue. If they respond quickly and decide to fix it, we can wait.

@twisterdotcom twisterdotcom added the Awaiting Payment Auto-added when associated PR is deployed to production label Jul 29, 2024
@twisterdotcom
Copy link
Contributor

twisterdotcom commented Jul 29, 2024

Payment Summary:

No regression test required here.

@garrettmknight
Copy link
Contributor

$250 approved for @sobitneupane based on this summary.

@shawnborton
Copy link
Contributor

Do we have any idea on when they would have a fix for this on their side? Just wondering if we have plans to follow up and undo our hotfix here when the time is right. Thanks!

@twisterdotcom
Copy link
Contributor

Just looking back through my emails and found this actually from about a month ago - they cc'd contributors@ so it hit a filter in my inbox, apologies:

Starting with v14, the control of what fonts to use has moved to our side hence why you can’t use your own custom fonts.
Could you please provide us with a list of the fonts that you require so that we can request our engineering team to add them.

I guess I could send them the names and font files and we could see if they can add them?

@shawnborton
Copy link
Contributor

The problem would be that they are our own custom fonts - I'm not sure if they can host on their side or not. Spotnana does this for us for example though. Perhaps you can reach out and ask what the best path forward is for us given that we have custom fonts we want to use?

@twisterdotcom
Copy link
Contributor

I have asked.

@twisterdotcom
Copy link
Contributor

Hi Ted,

Could you please share the fonts so we can share them with our engineering team. We can guarantee that we support Google fonts but for other fonts we will need to confirm how to provide them for you.

Best Regards,
Onfido Support

@twisterdotcom twisterdotcom reopened this Sep 12, 2024
@twisterdotcom
Copy link
Contributor

Just reopening for me to track. @shawnborton can you point me to the font files and I'll share them?

@twisterdotcom twisterdotcom removed Awaiting Payment Auto-added when associated PR is deployed to production Reviewing Has a PR in review labels Sep 12, 2024
@melvin-bot melvin-bot bot added the Overdue label Sep 12, 2024
@twisterdotcom twisterdotcom changed the title [Hold for payment 2024-07-31] [$250] Onfido terms fonts in the verify identity page are not legit [$250] Onfido terms fonts in the verify identity page are not legit (Get Onfido to use our fonts) Sep 12, 2024
@twisterdotcom
Copy link
Contributor

Not overdue, just reooened.

@shawnborton
Copy link
Contributor

shawnborton commented Sep 12, 2024

I would just tell them that we use custom .woff files for web and .otf files for the native apps and see what they say? Give that we're open source, you could show them this: https://github.com/Expensify/App/tree/main/assets/fonts

@twisterdotcom
Copy link
Contributor

image

How much do you like our fonts?

@twisterdotcom
Copy link
Contributor

Will leave this until @shawnborton gets back, but my take on this is that we probably don't care about paying $10k, or even negotiating to get our fonts used here when there are likely fonts they have available that are close enough available in google fonts: https://fonts.google.com/.

I'd say we should:

  1. Push back, confirming this was previously supported and then removed without notice
  2. If they still don't come down a lot (say to $500/$1000), we just agree to use another Google font instead of whatever Onfido's default is.
  3. Maybe look at the Onfido API again instead: https://docs.google.com/document/d/1UN_Hei2aWtsUiAh1WLAQOHtV3CWHqmSB1uzNkwHAm2E/edit#heading=h.ns12dr1f35rx (although the downsides were maintenance and the lack of videos).

@roryabraham
Copy link
Contributor

Going on parental leave and gotta hand this off. It's not clear to me whether we'll need internal engineering help so not going to reassign for now

@roryabraham roryabraham removed their assignment Oct 4, 2024
@shawnborton
Copy link
Contributor

@twisterdotcom I think the path you laid out above sounds great to me.

@melvin-bot melvin-bot bot added the Overdue label Oct 14, 2024
@twisterdotcom
Copy link
Contributor

Okay, waiting for them to come back:
image

@melvin-bot melvin-bot bot removed the Overdue label Oct 15, 2024
@twisterdotcom
Copy link
Contributor

Okay, they're gonna allow custom fonts again next year!

Hello Ted,

Hope you’re doing well. Apologies for the late response again and here’s what I got from my engineering and Product team:

Custom Fonts: We will re-introduce the mechanics to allow for URL-based selection and loading of fonts in v14 of our SDK:

We will do it as part of our standard dev process, and we’ll not ask for financial contribution
We do not have a specific timeline for this but hope to address it before the end of the year. Anything sooner will require a formal CURE case(internal process to prioritise) as we will need to descope work.
We will provide an overview of the mechanics to use the feature when we get closer.

React-Native Fabric: We are not able to commit to revamping our RN SDK as this work doesn’t align with Onfido current priorities. Onfido will be revisiting our React Native and Flutter SDKs later next year once our current core SDKs (iOS and Android) have been rewritten/ rebuilt.

I asked them to just let me know when and we can create an issue then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Weekly KSv2
Projects
No open projects
Status: Done
Development

No branches or pull requests

8 participants