Skip to content

Further improve organization of constants#10200

Merged
rekmarks merged 4 commits intodevelopfrom
rationalize-constants
Jan 20, 2021
Merged

Further improve organization of constants#10200
rekmarks merged 4 commits intodevelopfrom
rationalize-constants

Conversation

@rekmarks
Copy link
Copy Markdown
Member

@rekmarks rekmarks commented Jan 16, 2021

Following @brad-decker's work in #9459, this moves a number of constants from the background into the shared/constants directory. Summary of changes:

  • No constants have been renamed
  • New directory with new files has been created: app/scripts/constants
    • For constants shared in different places in the background, but not the UI
  • New files have been created in shared/constants
  • Certain old files have been deleted
  • The CAVEAT_NAMES constant was moved out of permissions/enums.js, but that file was otherwise retained unchanged

@rekmarks rekmarks requested a review from brad-decker January 16, 2021 02:48
@rekmarks rekmarks requested a review from a team as a code owner January 16, 2021 02:48
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [500f893]
Page Load Metrics (525 ± 40 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint306649105
domContentLoaded3296265248240
load3316275258240
domInteractive3296255248240

@brad-decker
Copy link
Copy Markdown
Contributor

LGTM! 🙏 ❤️

@rekmarks rekmarks merged commit 90289ec into develop Jan 20, 2021
@rekmarks rekmarks deleted the rationalize-constants branch January 20, 2021 16:13
@github-actions github-actions bot locked and limited conversation to collaborators Jan 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants