guardian / braze-components
File Size

The distribution of size of files (measured in lines of code).

Intro
Learn more...
File Size Overall
0% | 0% | 25% | 37% | 36%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: grouped by folders | grouped by size | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
tsx0% | 0% | 26% | 40% | 32%
ts0% | 0% | 26% | 33% | 40%
js0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src0% | 0% | 26% | 39% | 33%
ROOT0% | 0% | 0% | 0% | 100%
cdk0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
geolocation.ts
in src/Epic
412 -
index.tsx
in src/StyleableBannerWithLink
366 -
index.tsx
in src/StyleableBannerNewsletter
272 -
index.stories.tsx
in src/StyleableBannerWithLink
244 -
index.stories.tsx
in src/StyleableBannerNewsletter
221 -
index.tsx
in src/Epic
200 -
183 7
BrazeMessages.ts
in src/logic
178 4
index.stories.tsx
in src/EpicWithSpecialHeader
171 -
index.tsx
in src/AppBanner
156 -
ReminderCtaButton.tsx
in src/components
154 -
145 -
BrazeCards.ts
in src/logic
128 5
NewsletterCtaButton.tsx
in src/components
123 -
index.tsx
in src/NewsletterEpic
122 -
116 -
index.stories.tsx
in src/BannerNewsletter
109 -
styleUtilities.ts
in src/utils
109 13
108 -
index.stories.tsx
in src/NewsletterEpic
105 -
colorData.ts
in src/styles
102 -
index.stories.tsx
in src/BannerWithLink
96 -
93 5
failure.stories.tsx
in src/UKNewsletterEpic
92 -
index.stories.tsx
in src/DownToEarthNewsletterEpic
82 -
index.stories.tsx
in src/UKNewsletterEpic
82 -
canRender.ts
in src/logic
82 -
index.stories.tsx
in src/AppBanner
79 -
index.stories.tsx
in src/EpicNewsletter_AU_AfternoonUpdate
78 -
index.stories.tsx
in src/USNewsletterEpic
78 -
index.stories.tsx
in src/AUNewsletterEpic
77 -
index.stories.tsx
in src/EpicNewsletter_TheGuide
77 -
73 -
PrimaryCtaButton.tsx
in src/components
72 -
BannerCloseButton.tsx
in src/components
70 2
65 1
reminders.ts
in src/logic
62 -
57 -
52 -
argTypes.ts
in src/storybookCommon
47 -
42 -
tracking.ts
in src/utils
42 -
40 -
38 -
index.tsx
in src/BannerWithLink
32 -
index.tsx
in src/AUNewsletterEpic
29 -
index.tsx
in src/DownToEarthNewsletterEpic
29 -
index.tsx
in src/EpicNewsletter_TheGuide
29 -
index.tsx
in src/EpicNewsletter_AU_AfternoonUpdate
29 -
index.tsx
in src/UKNewsletterEpic
29 -
Files With Most Units (Top 8)
File# lines# units
styleUtilities.ts
in src/utils
109 13
183 7
93 5
BrazeCards.ts
in src/logic
128 5
BrazeMessages.ts
in src/logic
178 4
knobsData.tsx
in src/utils
25 3
BannerCloseButton.tsx
in src/components
70 2
65 1
Files With Long Lines (Top 22)

There are 22 files with lines longer than 120 characters. In total, there are 64 long lines.

File# lines# units# long lines
styleUtilities.ts
in src/utils
109 13 20
145 - 8
index.stories.tsx
in src/EpicWithSpecialHeader
171 - 6
index.stories.tsx
in src/StyleableBannerWithLink
244 - 4
116 - 3
index.stories.tsx
in src/BannerWithLink
96 - 3
index.stories.tsx
in src/AppBanner
79 - 2
index.stories.tsx
in src/BannerNewsletter
109 - 2
index.stories.tsx
in src/StyleableBannerNewsletter
221 - 2
index.stories.tsx
in src/NewsletterEpic
105 - 2
42 - 1
index.tsx
in src/AUNewsletterEpic
29 - 1
index.tsx
in src/DownToEarthNewsletterEpic
29 - 1
index.stories.tsx
in src/DownToEarthNewsletterEpic
82 - 1
index.tsx
in src/EpicNewsletter_TheGuide
29 - 1
index.tsx
in src/EpicNewsletter_AU_AfternoonUpdate
29 - 1
index.stories.tsx
in src/EpicNewsletter_AU_AfternoonUpdate
78 - 1
index.tsx
in src/UKNewsletterEpic
29 - 1
failure.stories.tsx
in src/UKNewsletterEpic
92 - 1
index.stories.tsx
in src/UKNewsletterEpic
82 - 1
index.tsx
in src/USNewsletterEpic
29 - 1
index.stories.tsx
in src/USNewsletterEpic
78 - 1
Correlations

File Size vs. Commits (all time): 82 points

src/logic/BrazeCards.ts x: 8 commits (all time) y: 128 lines of code src/logic/BrazeMessages.ts x: 9 commits (all time) y: 178 lines of code src/logic/LocalMessageCache.tsx x: 20 commits (all time) y: 183 lines of code src/components/NewsletterFrequencyBlock.tsx x: 5 commits (all time) y: 52 lines of code cdk/lib/braze-components.ts x: 15 commits (all time) y: 65 lines of code src/AppBanner/index.tsx x: 50 commits (all time) y: 156 lines of code src/Epic/HeaderSection.tsx x: 3 commits (all time) y: 108 lines of code src/Epic/index.tsx x: 62 commits (all time) y: 200 lines of code src/NewsletterEpic/index.tsx x: 48 commits (all time) y: 122 lines of code src/StyleableBannerNewsletter/index.tsx x: 8 commits (all time) y: 272 lines of code src/StyleableBannerWithLink/index.tsx x: 47 commits (all time) y: 366 lines of code src/components/NewsletterCtaButton.tsx x: 4 commits (all time) y: 123 lines of code src/components/PrimaryCtaButton.tsx x: 10 commits (all time) y: 72 lines of code src/components/ReminderCtaButton.tsx x: 32 commits (all time) y: 154 lines of code src/components/BannerCloseButton.tsx x: 5 commits (all time) y: 70 lines of code src/components/PaymentIcons.tsx x: 3 commits (all time) y: 16 lines of code src/styles/colorData.ts x: 22 commits (all time) y: 102 lines of code src/AppBanner/index.stories.tsx x: 29 commits (all time) y: 79 lines of code src/BannerNewsletter/index.stories.tsx x: 21 commits (all time) y: 109 lines of code src/BannerNewsletter/index.tsx x: 40 commits (all time) y: 26 lines of code src/BannerWithLink/index.stories.tsx x: 21 commits (all time) y: 96 lines of code src/BannerWithLink/index.tsx x: 45 commits (all time) y: 32 lines of code src/BrazeBannerComponent.ts x: 31 commits (all time) y: 40 lines of code src/StyleableBannerNewsletter/canRender.ts x: 2 commits (all time) y: 11 lines of code src/StyleableBannerNewsletter/index.stories.tsx x: 5 commits (all time) y: 221 lines of code src/StyleableBannerWithLink/canRender.ts x: 5 commits (all time) y: 11 lines of code src/StyleableBannerWithLink/index.stories.tsx x: 28 commits (all time) y: 244 lines of code src/logic/canRender.ts x: 3 commits (all time) y: 82 lines of code logic-index.ts x: 9 commits (all time) y: 6 lines of code src/BrazeEndOfArticleComponent.ts x: 35 commits (all time) y: 57 lines of code src/NewsletterEpic/index.stories.tsx x: 5 commits (all time) y: 105 lines of code src/logic/reminders.ts x: 9 commits (all time) y: 62 lines of code src/utils/env.ts x: 10 commits (all time) y: 8 lines of code src/AUNewsletterEpic/index.tsx x: 21 commits (all time) y: 29 lines of code src/EpicNewsletter_AU_AfternoonUpdate/index.tsx x: 14 commits (all time) y: 29 lines of code src/Epic/index.stories.tsx x: 70 commits (all time) y: 145 lines of code src/logic/types.ts x: 14 commits (all time) y: 17 lines of code src/Epic/failure.stories.tsx x: 8 commits (all time) y: 116 lines of code src/EpicWithSpecialHeader/index.stories.tsx x: 20 commits (all time) y: 171 lines of code src/components/CtaLoadingDotsAnimation.tsx x: 6 commits (all time) y: 73 lines of code src/AUNewsletterEpic/index.stories.tsx x: 23 commits (all time) y: 77 lines of code src/DownToEarthNewsletterEpic/index.stories.tsx x: 12 commits (all time) y: 82 lines of code src/EpicNewsletter_AU_AfternoonUpdate/index.stories.tsx x: 12 commits (all time) y: 78 lines of code src/EpicNewsletter_TheGuide/index.stories.tsx x: 12 commits (all time) y: 77 lines of code src/UKNewsletterEpic/failure.stories.tsx x: 19 commits (all time) y: 92 lines of code src/UKNewsletterEpic/index.stories.tsx x: 24 commits (all time) y: 82 lines of code src/USNewsletterEpic/index.stories.tsx x: 24 commits (all time) y: 78 lines of code src/utils/StorybookWrapper.tsx x: 15 commits (all time) y: 15 lines of code src/EpicNewsletter_TheGuide/index.tsx x: 12 commits (all time) y: 29 lines of code src/UKNewsletterEpic/index.tsx x: 19 commits (all time) y: 29 lines of code src/USNewsletterEpic/index.tsx x: 20 commits (all time) y: 29 lines of code src/types/dcrTypes.ts x: 3 commits (all time) y: 2 lines of code src/EpicWithSpecialHeader/canRender.ts x: 7 commits (all time) y: 17 lines of code src/EpicWithSpecialHeader/index.tsx x: 13 commits (all time) y: 5 lines of code src/buildBrazeMessageComponent.tsx x: 8 commits (all time) y: 38 lines of code src/utils/knobsData.tsx x: 6 commits (all time) y: 25 lines of code src/utils/tracking.ts x: 7 commits (all time) y: 42 lines of code src/EpicNewsletter_AU_AfternoonUpdate/canRender.ts x: 2 commits (all time) y: 6 lines of code riff-raff.yaml x: 7 commits (all time) y: 21 lines of code src/logic/NullBrazeCards.ts x: 1 commits (all time) y: 7 lines of code src/BannerWithLink/canRender.ts x: 1 commits (all time) y: 11 lines of code src/DownToEarthNewsletterEpic/canRender.ts x: 1 commits (all time) y: 6 lines of code src/Epic/canRender.ts x: 5 commits (all time) y: 28 lines of code src/storybookCommon/argTypes.ts x: 4 commits (all time) y: 47 lines of code src/Epic/placeholders.ts x: 2 commits (all time) y: 21 lines of code banner-index.ts x: 1 commits (all time) y: 1 lines of code index.ts x: 16 commits (all time) y: 3 lines of code rollup.config.js x: 21 commits (all time) y: 93 lines of code src/NewsletterEpic/canRender.ts x: 4 commits (all time) y: 14 lines of code src/USNewsletterEpic/canRender.ts x: 3 commits (all time) y: 6 lines of code src/Epic/geolocation.ts x: 1 commits (all time) y: 412 lines of code src/AppBanner/canRender.ts x: 1 commits (all time) y: 14 lines of code src/logic/NullBrazeMessages.ts x: 3 commits (all time) y: 9 lines of code cloudformation-static-s3.yaml x: 4 commits (all time) y: 42 lines of code src/utils/images.ts x: 4 commits (all time) y: 7 lines of code src/utils/styleUtilities.ts x: 7 commits (all time) y: 109 lines of code
412.0
lines of code
  min: 1.0
  average: 71.33
  25th percentile: 13.25
  median: 42.0
  75th percentile: 102.75
  max: 412.0
0 70.0
commits (all time)
min: 1.0 | average: 14.05 | 25th percentile: 4.0 | median: 8.5 | 75th percentile: 20.25 | max: 70.0

File Size vs. Contributors (all time): 82 points

src/logic/BrazeCards.ts x: 5 contributors (all time) y: 128 lines of code src/logic/BrazeMessages.ts x: 4 contributors (all time) y: 178 lines of code src/logic/LocalMessageCache.tsx x: 7 contributors (all time) y: 183 lines of code src/components/NewsletterFrequencyBlock.tsx x: 4 contributors (all time) y: 52 lines of code cdk/lib/braze-components.ts x: 3 contributors (all time) y: 65 lines of code src/AppBanner/index.tsx x: 12 contributors (all time) y: 156 lines of code src/Epic/HeaderSection.tsx x: 2 contributors (all time) y: 108 lines of code src/Epic/index.tsx x: 7 contributors (all time) y: 200 lines of code src/NewsletterEpic/index.tsx x: 7 contributors (all time) y: 122 lines of code src/StyleableBannerNewsletter/index.tsx x: 3 contributors (all time) y: 272 lines of code src/StyleableBannerWithLink/index.tsx x: 3 contributors (all time) y: 366 lines of code src/components/NewsletterCtaButton.tsx x: 3 contributors (all time) y: 123 lines of code src/components/PrimaryCtaButton.tsx x: 3 contributors (all time) y: 72 lines of code src/components/ReminderCtaButton.tsx x: 4 contributors (all time) y: 154 lines of code src/components/BannerCloseButton.tsx x: 2 contributors (all time) y: 70 lines of code src/components/PaymentIcons.tsx x: 2 contributors (all time) y: 16 lines of code src/styles/colorData.ts x: 2 contributors (all time) y: 102 lines of code src/AppBanner/index.stories.tsx x: 6 contributors (all time) y: 79 lines of code src/BannerNewsletter/index.stories.tsx x: 1 contributors (all time) y: 109 lines of code src/BannerNewsletter/index.tsx x: 1 contributors (all time) y: 26 lines of code src/BannerWithLink/index.stories.tsx x: 4 contributors (all time) y: 96 lines of code src/BannerWithLink/index.tsx x: 5 contributors (all time) y: 32 lines of code src/BrazeBannerComponent.ts x: 5 contributors (all time) y: 40 lines of code src/StyleableBannerNewsletter/canRender.ts x: 1 contributors (all time) y: 11 lines of code src/StyleableBannerNewsletter/index.stories.tsx x: 1 contributors (all time) y: 221 lines of code src/StyleableBannerWithLink/index.stories.tsx x: 1 contributors (all time) y: 244 lines of code src/logic/canRender.ts x: 2 contributors (all time) y: 82 lines of code logic-index.ts x: 4 contributors (all time) y: 6 lines of code src/BrazeEndOfArticleComponent.ts x: 3 contributors (all time) y: 57 lines of code src/NewsletterEpic/index.stories.tsx x: 1 contributors (all time) y: 105 lines of code src/logic/reminders.ts x: 2 contributors (all time) y: 62 lines of code src/utils/env.ts x: 4 contributors (all time) y: 8 lines of code src/AUNewsletterEpic/index.tsx x: 4 contributors (all time) y: 29 lines of code src/EpicNewsletter_AU_AfternoonUpdate/index.tsx x: 1 contributors (all time) y: 29 lines of code src/Epic/index.stories.tsx x: 5 contributors (all time) y: 145 lines of code src/logic/types.ts x: 4 contributors (all time) y: 17 lines of code src/Epic/failure.stories.tsx x: 1 contributors (all time) y: 116 lines of code src/EpicWithSpecialHeader/index.stories.tsx x: 2 contributors (all time) y: 171 lines of code src/components/CtaLoadingDotsAnimation.tsx x: 1 contributors (all time) y: 73 lines of code src/AUNewsletterEpic/index.stories.tsx x: 4 contributors (all time) y: 77 lines of code src/DownToEarthNewsletterEpic/index.stories.tsx x: 3 contributors (all time) y: 82 lines of code src/EpicNewsletter_AU_AfternoonUpdate/index.stories.tsx x: 1 contributors (all time) y: 78 lines of code src/EpicNewsletter_TheGuide/index.stories.tsx x: 1 contributors (all time) y: 77 lines of code src/UKNewsletterEpic/failure.stories.tsx x: 3 contributors (all time) y: 92 lines of code src/UKNewsletterEpic/index.stories.tsx x: 4 contributors (all time) y: 82 lines of code src/USNewsletterEpic/index.stories.tsx x: 4 contributors (all time) y: 78 lines of code src/utils/StorybookWrapper.tsx x: 4 contributors (all time) y: 15 lines of code src/DownToEarthNewsletterEpic/index.tsx x: 3 contributors (all time) y: 29 lines of code src/types/dcrTypes.ts x: 1 contributors (all time) y: 2 lines of code src/EpicWithSpecialHeader/canRender.ts x: 2 contributors (all time) y: 17 lines of code src/buildBrazeMessageComponent.tsx x: 3 contributors (all time) y: 38 lines of code src/utils/knobsData.tsx x: 5 contributors (all time) y: 25 lines of code src/utils/tracking.ts x: 4 contributors (all time) y: 42 lines of code src/EpicNewsletter_AU_AfternoonUpdate/canRender.ts x: 1 contributors (all time) y: 6 lines of code riff-raff.yaml x: 3 contributors (all time) y: 21 lines of code src/logic/NullBrazeCards.ts x: 1 contributors (all time) y: 7 lines of code src/Epic/canRender.ts x: 2 contributors (all time) y: 28 lines of code src/storybookCommon/argTypes.ts x: 1 contributors (all time) y: 47 lines of code src/Epic/placeholders.ts x: 2 contributors (all time) y: 21 lines of code banner-index.ts x: 1 contributors (all time) y: 1 lines of code index.ts x: 4 contributors (all time) y: 3 lines of code rollup.config.js x: 3 contributors (all time) y: 93 lines of code src/AUNewsletterEpic/canRender.ts x: 2 contributors (all time) y: 6 lines of code src/NewsletterEpic/canRender.ts x: 3 contributors (all time) y: 14 lines of code src/Epic/geolocation.ts x: 1 contributors (all time) y: 412 lines of code src/AppBanner/canRender.ts x: 1 contributors (all time) y: 14 lines of code src/logic/NullBrazeMessages.ts x: 2 contributors (all time) y: 9 lines of code cloudformation-static-s3.yaml x: 1 contributors (all time) y: 42 lines of code src/utils/images.ts x: 2 contributors (all time) y: 7 lines of code src/utils/styleUtilities.ts x: 3 contributors (all time) y: 109 lines of code
412.0
lines of code
  min: 1.0
  average: 71.33
  25th percentile: 13.25
  median: 42.0
  75th percentile: 102.75
  max: 412.0
0 12.0
contributors (all time)
min: 1.0 | average: 2.8 | 25th percentile: 1.0 | median: 2.5 | 75th percentile: 4.0 | max: 12.0

File Size vs. Commits (30 days): 0 points

No data for "commits (30d)" vs. "lines of code".

File Size vs. Contributors (30 days): 0 points

No data for "contributors (30d)" vs. "lines of code".


File Size vs. Commits (90 days): 4 points

src/logic/BrazeCards.ts x: 2 commits (90d) y: 128 lines of code src/logic/BrazeMessages.ts x: 2 commits (90d) y: 178 lines of code src/logic/LocalMessageCache.tsx x: 4 commits (90d) y: 183 lines of code src/components/NewsletterFrequencyBlock.tsx x: 1 commits (90d) y: 52 lines of code
183.0
lines of code
  min: 52.0
  average: 135.25
  25th percentile: 71.0
  median: 153.0
  75th percentile: 181.75
  max: 183.0
0 4.0
commits (90d)
min: 1.0 | average: 2.25 | 25th percentile: 1.25 | median: 2.0 | 75th percentile: 3.5 | max: 4.0

File Size vs. Contributors (90 days): 4 points

src/logic/BrazeCards.ts x: 1 contributors (90d) y: 128 lines of code src/logic/BrazeMessages.ts x: 1 contributors (90d) y: 178 lines of code src/logic/LocalMessageCache.tsx x: 1 contributors (90d) y: 183 lines of code src/components/NewsletterFrequencyBlock.tsx x: 1 contributors (90d) y: 52 lines of code
183.0
lines of code
  min: 52.0
  average: 135.25
  25th percentile: 71.0
  median: 153.0
  75th percentile: 181.75
  max: 183.0
0 1.0
contributors (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0