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

[HOLD for payment 2024-08-05] [$1000] Standardize on single fontFamily names across platforms #13772

Closed
luacmartins opened this issue Dec 21, 2022 · 151 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item.

Comments

@luacmartins
Copy link
Contributor

luacmartins commented Dec 21, 2022

Problem

Coming from this discussion, react-native-asset let's us easily link and manage assets, including fonts. However, it fails to provide a cross platform way to use font typeface modifiers such as fontWeight and fontStyle in combination with a custom fontFamily name, in both iOS and Android, which in turn results in keeping multiple font-families such as, ExpensifyNewKansas-Medium, ExpensifyNewKansas-MediumItalic instead of a single ExpensifyNewKansas font-family.

iOS seems to work out of the box as long as we use the postScript name for the font. However, android uses the font filename which results in the different fontFamilies above.

Why is this important

Ease of importing new fonts and keeping/maintinaing a single font type-face.

Solution

Update react-native-asset to support XML fonts in android and auto-group font families into XML fontFamilies.

cc @roryabraham

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0165fabbe62a87ed20
  • Upwork Job ID: 1641731454588358656
  • Last Price Increase: 2023-03-31
Issue OwnerCurrent Issue Owner: @sakluger / @zanyrenney
@luacmartins luacmartins added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Dec 21, 2022
@melvin-bot melvin-bot bot locked and limited conversation to collaborators Dec 21, 2022
@luacmartins luacmartins added Engineering NewFeature Something to build that is a new item. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Dec 21, 2022
@luacmartins luacmartins assigned roryabraham and unassigned lschurr Dec 21, 2022
@roryabraham
Copy link
Contributor

cc @Luke9389 for visibility

@luacmartins luacmartins mentioned this issue Dec 21, 2022
53 tasks
@grgia
Copy link
Contributor

grgia commented Dec 23, 2022

nice!

@melvin-bot melvin-bot bot added the Overdue label Dec 26, 2022
@Luke9389
Copy link
Contributor

Luke9389 commented Jan 4, 2023

Love it! Thanks y'all

@roryabraham
Copy link
Contributor

No update yet

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jan 4, 2023
@roryabraham
Copy link
Contributor

Sorry for the delay here. I'm going to make this a weekly, but my plan here is to:

  1. Create a couple simple demo React Native projects to show the difference between the "old" way of bundling fonts that we use today vs the "new" way (i.e: Android xml fonts)
  2. Then create an issue in https://github.com/unimonkiez/react-native-asset to show the "before" and "after" that explains what we would expect react-native-asset to do, given font assets in the top-level assets directory.
  3. Once that is done, we can re-group, but it's likely I would want to pass this off to an expert contractor (or even better, hire the react-native-asset maintainer directly) to do the actual implementation. I think I could implement it, but I just don't know when I'll have enough time.

@melvin-bot melvin-bot bot removed the Overdue label Jan 12, 2023
@roryabraham roryabraham added Weekly KSv2 and removed Daily KSv2 labels Jan 12, 2023
@Luke9389
Copy link
Contributor

I think that sounds great @roryabraham. Thanks for the update

@melvin-bot melvin-bot bot added the Overdue label Jan 20, 2023
@roryabraham
Copy link
Contributor

No update this week :(

@melvin-bot melvin-bot bot removed the Overdue label Jan 21, 2023
@melvin-bot melvin-bot bot added the Overdue label Jan 30, 2023
@roryabraham
Copy link
Contributor

No update again

@sakluger sakluger assigned zanyrenney and unassigned zanyrenney May 16, 2024
@sakluger
Copy link
Contributor

@zanyrenney assigning you to help watch this issue while I'm OOO through May 31. Please handle payment if needed. I'll take back over if it's still open when I return.

@zanyrenney
Copy link
Contributor

sounds good @sakluger

@fabioh8010
Copy link
Contributor

Update: There is still some feedback I need to address in the PR before removing the WIP label. I plan to address everything next week as this one I need to focus to get the detailed section of a design doc ready to review.

@fabioh8010
Copy link
Contributor

Update: Applied the last feedbacks and removed the PR from WIP state, review and testing can resume.

@roryabraham
Copy link
Contributor

Looks like a number of bugs were reported in the AdHoc testing

@fabioh8010
Copy link
Contributor

Reviewed all bugs reported and fixed one bug related to this PR, it's ready to review again.

@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Jul 22, 2024
Copy link

melvin-bot bot commented Jul 22, 2024

This issue has not been updated in over 15 days. @sakluger, @fabioh8010, @luacmartins, @mollfpr, @roryabraham, @zanyrenney eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@fabioh8010
Copy link
Contributor

Still under review Melvin

@roryabraham
Copy link
Contributor

PR finally merged

Copy link

melvin-bot bot commented Jul 26, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Monthly KSv2 labels Jul 29, 2024
@melvin-bot melvin-bot bot changed the title [$1000] Standardize on single fontFamily names across platforms [HOLD for payment 2024-08-05] [$1000] Standardize on single fontFamily names across platforms Jul 29, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 29, 2024
Copy link

melvin-bot bot commented Jul 29, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Jul 29, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.13-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-08-05. 🎊

For reference, here are some details about the assignees on this issue:

  • @fabioh8010 does not require payment (Contractor)
  • @mollfpr requires payment through NewDot Manual Requests

Copy link

melvin-bot bot commented Jul 29, 2024

BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@mollfpr] Please propose regression test steps to ensure the new feature will work correctly on production in further releases.
  • [@sakluger / @zanyrenney] Link the GH issue for creating/updating the regression test once above steps have been agreed upon.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Aug 5, 2024
Copy link

melvin-bot bot commented Aug 5, 2024

Payment Summary

Upwork Job

  • Contributor: @fabioh8010 is from an agency-contributor and not due payment
  • Reviewer: @mollfpr owed $250 via NewDot

BugZero Checklist (@sakluger)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1641731454588358656/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@sakluger
Copy link
Contributor

sakluger commented Aug 5, 2024

I'm pretty sure we don't need any new regression tests here. @mollfpr please request payment via NewDot using the payment summary above. Thanks!

@sakluger sakluger closed this as completed Aug 5, 2024
@mollfpr
Copy link
Contributor

mollfpr commented Aug 6, 2024

Thanks @sakluger! Could you confirm if the first amount of bounty applied here?

@JmillsExpensify
Copy link

$250 approved for @mollfpr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item.
Projects
No open projects
Development

No branches or pull requests