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

CR #69

Closed
wants to merge 356 commits into from
Closed

CR #69

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
356 commits
Select commit Hold shift + click to select a range
448b8eb
Merge pull request #40 from Blazity/sitemap
Pierniki Sep 21, 2023
a22ae5c
fix: fix build errors, adjust sitemap settings
Pierniki Sep 21, 2023
23b0129
feat: add dynamic nav links
Max-Mogilski Sep 21, 2023
8bdd3c0
fix: replate raw \n with newline character in google private key
Pierniki Sep 21, 2023
cbf3e67
Merge pull request #41 from Blazity/nav
Pierniki Sep 21, 2023
55d5284
refactor: cleanup console.logs
Pierniki Sep 21, 2023
93a8dde
fix: query fix - nav
Max-Mogilski Sep 21, 2023
9b1afed
Merge pull request #42 from Blazity/nav-query
Pierniki Sep 21, 2023
aaf4a80
feat: add home link to navbar, minor styling changes
Pierniki Sep 21, 2023
4ce1a43
feat: add footer
Max-Mogilski Sep 22, 2023
15bc066
feat: add recommended articles
Max-Mogilski Sep 22, 2023
a9ee103
refactor: replace hygraph api with lib folder
Pierniki Sep 25, 2023
26e8491
Merge pull request #46 from Blazity/lib
Pierniki Sep 25, 2023
abed8a0
Merge branch 'main' into recommended
Pierniki Sep 25, 2023
983278a
Merge pull request #43 from Blazity/recommended
Pierniki Sep 25, 2023
d6a827d
fix: resolve an image query issue
Max-Mogilski Sep 25, 2023
c001213
feat: add seo optimalization/component
Max-Mogilski Sep 25, 2023
fd83fed
feat: add seo optimalization - links
Max-Mogilski Sep 25, 2023
ae1d096
feat: add metadata - pages
Max-Mogilski Sep 25, 2023
6d2947a
feat: add SEO component - home
Max-Mogilski Sep 26, 2023
aa1c475
Merge pull request #47 from Blazity/seo
Pierniki Sep 26, 2023
12fe7d9
fix: build errors, footer alignment
Pierniki Sep 26, 2023
87b3ed5
feat: add loading, reduce middleware matches
Pierniki Sep 26, 2023
2ad1605
perf: reduce middleware calls
Pierniki Sep 26, 2023
0127c21
refactor: cleanup layout
Pierniki Sep 26, 2023
2d07ce4
feat: replace revalidate path with revalidate tag
Pierniki Sep 26, 2023
d39ab2b
perf: remove prefetch false
Pierniki Sep 26, 2023
d0f811a
feat:
Pierniki Sep 26, 2023
45de57d
refactor: split jsx
Max-Mogilski Sep 26, 2023
2e47b98
feat: add articles grid component
Max-Mogilski Sep 26, 2023
b58b598
feat: add article category
Max-Mogilski Sep 26, 2023
d28eb6c
fix: fix CI env errors
Pierniki Sep 27, 2023
2ec5c38
fix: correct skip validation condition
Pierniki Sep 27, 2023
06699e1
refactor: code quality improvement
Max-Mogilski Sep 27, 2023
df876e1
feat: pass content api secret to github actions
Pierniki Sep 27, 2023
1520488
fix: reconfigure yaml files
Pierniki Sep 27, 2023
ab32e7c
fix: update bundle analysis config
Pierniki Sep 27, 2023
40d55f3
chore: add console.log
Pierniki Sep 27, 2023
f0edb62
chore: add log for debugging
Pierniki Sep 27, 2023
a849103
fix: optionally chain replace
Pierniki Sep 27, 2023
f7bfa4c
chore: restore disable validation check, remove console.logs
Pierniki Sep 27, 2023
7221e72
ci: pass required env variables to CI bundle analyzer
Pierniki Sep 27, 2023
14f2b4b
ci: fix bundle analyzer script
Pierniki Sep 27, 2023
4537f57
ci: replace NODE_ENV CI with SKIP_VALIDATION env
Pierniki Sep 27, 2023
f38fe7f
ci: log SKIP_VALIDATION variable
Pierniki Sep 27, 2023
27404eb
ci: temporarily disable env validation
Pierniki Sep 27, 2023
74fd254
ci: fix GA_EMAIL secret typo
Pierniki Sep 27, 2023
525f244
ci: add console log
Pierniki Sep 27, 2023
c0c127f
ci: replace GA email and key with base64 encoded json, fix yml file
Pierniki Sep 28, 2023
6e78905
chore: add console log
Pierniki Sep 28, 2023
097e468
chore: remove console.logs
Pierniki Sep 28, 2023
c5ee7b3
chore: add console log
Pierniki Sep 28, 2023
319d3f5
feat: add revalidation by tags for rest of the models
Pierniki Sep 28, 2023
06e0a7e
Merge pull request #49 from Blazity/webhooks
Pierniki Sep 28, 2023
963ccd0
Merge branch 'main' into category
Pierniki Sep 29, 2023
ad8ea4d
Merge pull request #48 from Blazity/category
Pierniki Sep 29, 2023
e343d84
feat: add custom colors
Max-Mogilski Oct 2, 2023
e4a5766
feat: add buttons - live, play, tag
Max-Mogilski Oct 2, 2023
60fe0ad
feat: add format date
Max-Mogilski Oct 2, 2023
9873f3b
feat: add hero image
Max-Mogilski Oct 2, 2023
2d4f592
feat: add nav structure
Max-Mogilski Oct 2, 2023
bc641f4
feat: style hot topics section, run prettier
Pierniki Oct 2, 2023
a8e753f
feat: add display stock, search bar style
Max-Mogilski Oct 3, 2023
3e914a1
Merge branch 'article-cards' into design
Max-Mogilski Oct 3, 2023
126ed8a
feat: add categories/pages - navigation
Max-Mogilski Oct 3, 2023
b41923e
fix: metadata error
Max-Mogilski Oct 3, 2023
199ec99
Merge pull request #52 from Blazity/design
Pierniki Oct 3, 2023
c14b210
feat: add recent news section
Pierniki Oct 3, 2023
415dbb8
feat: add highlighted category section
Pierniki Oct 3, 2023
dbee0bd
refactor: run linter
Pierniki Oct 3, 2023
136d23b
Merge pull request #53 from Blazity/article-cards
Pierniki Oct 3, 2023
650dc5d
fix: webhook errors
Pierniki Oct 4, 2023
6e727a1
fix: small image scaling
Pierniki Oct 4, 2023
9ebdd93
feat: add links to article cards
Pierniki Oct 4, 2023
fb6e697
fix: add updatedAt to recent articles query
Pierniki Oct 4, 2023
8ece3ef
feat: configure searchable attributes, add tags and author
Pierniki Oct 4, 2023
a67ed51
chore: add log to error handler
Pierniki Oct 4, 2023
b9cf118
fix: remove author from articleSchema
Pierniki Oct 4, 2023
c6d7747
feat: add search styles
Max-Mogilski Oct 3, 2023
6aa08c0
feat: add codeblock styling
Max-Mogilski Oct 4, 2023
9ce5f80
feat: add search modal styles
Max-Mogilski Oct 4, 2023
cbb1533
feat: add share on social
Max-Mogilski Oct 4, 2023
f38cdeb
Merge branch design into feat
Max-Mogilski Oct 5, 2023
01a9889
feat: add quiz
Max-Mogilski Oct 5, 2023
823c7cd
fix: date issue
Max-Mogilski Oct 5, 2023
651e291
fix: adjust algolia settings
Pierniki Oct 5, 2023
71b8bc9
fix: make tags searchable
Pierniki Oct 5, 2023
b5bfdb3
feat: add recommended articles styles
Max-Mogilski Oct 5, 2023
3701f3c
feat: add category page styles
Max-Mogilski Oct 5, 2023
514d6e1
feat: card styling
Max-Mogilski Oct 5, 2023
000e2a7
feat: add tag filtering
Pierniki Oct 5, 2023
d7cae02
feat: add codeblock style
Max-Mogilski Oct 6, 2023
96a8979
refactor: code clean-up
Max-Mogilski Oct 6, 2023
70e2a2e
fix: generate metadata for invalid article issue
Max-Mogilski Oct 6, 2023
751303b
feat: layout improvements
Pierniki Oct 6, 2023
fc33562
feat: add remove buttons to Tag filter
Pierniki Oct 6, 2023
4277450
refactor: handle undefined/quiz logic
Max-Mogilski Oct 6, 2023
d5cf545
Merge branch 'main' into feat
Pierniki Oct 6, 2023
924a4d4
feat: adjust styling of search dialog
Pierniki Oct 6, 2023
5a20858
Merge pull request #54 from Blazity/feat
Pierniki Oct 6, 2023
0ec17e3
feat: replace vercel url with custom site url env
Pierniki Oct 6, 2023
fb78620
Merge branch 'main' of https://github.com/Blazity/hygraph-next-enterp…
Pierniki Oct 6, 2023
c524412
fix: tags overflow
Max-Mogilski Oct 6, 2023
3a5f6ac
feat: add tooltips to tags
Pierniki Oct 6, 2023
0bdca41
perf: dynamically import code block
Pierniki Oct 6, 2023
f21cedd
Merge pull request #56 from Blazity/swaggy-tags
Pierniki Oct 6, 2023
1562c8b
fix: remove prefetch on homepage link
Pierniki Oct 6, 2023
e3b0888
fix: undefined class issue
Max-Mogilski Oct 6, 2023
5a2d302
fix: duplicated articles issue
Max-Mogilski Oct 6, 2023
ab875e7
fix: tweak share article issue
Max-Mogilski Oct 9, 2023
a8a44d4
fix: display author details issue
Max-Mogilski Oct 9, 2023
6c63106
fix: quiz border
Max-Mogilski Oct 9, 2023
abf6d3f
fix: minified card width
Pierniki Oct 9, 2023
5acc6a1
feat: throw errors if response has errors prop
Pierniki Oct 9, 2023
38cb537
feat: add line clamp to minified card
Pierniki Oct 9, 2023
3382951
feat: add error handling
Max-Mogilski Oct 9, 2023
e6a5e30
feat: add Highligted articles section
Pierniki Oct 9, 2023
ca9b05e
feat: add thread limiting on builds due to hygraph rate limiter
Pierniki Oct 9, 2023
d351f86
fix: site url being undefined
Pierniki Oct 9, 2023
fc8630c
feat: add throttling
Pierniki Oct 9, 2023
60fa8bc
feat: add status to thrown error
Pierniki Oct 9, 2023
13e5aeb
feat: use page title instead of image title in getMetadataObj
Pierniki Oct 9, 2023
b628e4a
Merge branch 'main' into fix
Pierniki Oct 9, 2023
215d14a
feat: adjust og image styling
Pierniki Oct 9, 2023
faef851
refactor: cn
Max-Mogilski Oct 9, 2023
a552e77
fix: server sitemap url
Pierniki Oct 9, 2023
3e7d3a2
feat: add priority to banner image
Pierniki Oct 9, 2023
debec33
Merge branch 'fix' of https://github.com/Blazity/hygraph-next-enterpr…
Pierniki Oct 9, 2023
3c54560
feat: increase logo quality
Pierniki Oct 9, 2023
04e67f3
feat: remove gap article section
Pierniki Oct 9, 2023
054ae53
fix: images alt
Max-Mogilski Oct 9, 2023
77cb2ca
chore: add console log to og
Pierniki Oct 10, 2023
684ddb9
Merge pull request #58 from Blazity/alt
Pierniki Oct 10, 2023
607972c
fix: update the way of retrieving search params
Pierniki Oct 10, 2023
22959f6
Merge branch 'main' of https://github.com/Blazity/hygraph-next-enterp…
Pierniki Oct 10, 2023
c9aaac4
feat: add quiz to revalidation
Pierniki Oct 10, 2023
f9108cc
fix: encode URI components
Pierniki Oct 10, 2023
98a9eaf
feat: add image breakpoints
Max-Mogilski Oct 11, 2023
735ac67
Merge pull request #59 from Blazity/size
Pierniki Oct 11, 2023
de12df2
ci: add envs to other CI workflows
Pierniki Oct 11, 2023
136d70a
style: run prettier
Pierniki Oct 11, 2023
f601129
fix: sharing article issue
Max-Mogilski Oct 11, 2023
e4b3355
ci: configure playwright CI
Pierniki Oct 11, 2023
c695e16
fix: article hero - link issue
Max-Mogilski Oct 11, 2023
ebd9fb8
fix: tooltip issue
Max-Mogilski Oct 11, 2023
bccd76d
Merge pull request #61 from Blazity/hero-link
Pierniki Oct 11, 2023
cb1ebca
test: add example test
Pierniki Oct 11, 2023
965d2ff
Merge branch 'main' of https://github.com/Blazity/hygraph-next-enterp…
Pierniki Oct 11, 2023
4138326
empty
Pierniki Oct 11, 2023
2655461
ci: adjust playwright yarn script
Pierniki Oct 11, 2023
0e4cdd3
Merge branch 'main' of https://github.com/Blazity/hygraph-next-enterp…
Pierniki Oct 11, 2023
c8829f9
ci: configure jest
Pierniki Oct 11, 2023
589ee10
ci: configure storybook
Pierniki Oct 11, 2023
400dc3f
test: add Button storybook story
Pierniki Oct 12, 2023
3646842
feat: add mobile design - naviagtion
Max-Mogilski Oct 12, 2023
a610e72
build: update playwright
Pierniki Oct 12, 2023
f3930de
chore: update lockfile
Pierniki Oct 12, 2023
29c68bc
ci: install playwright browsers in Check gh
Pierniki Oct 12, 2023
0ea82ec
feat: add mobile design - article
Max-Mogilski Oct 12, 2023
55644a2
Merge pull request #62 from Blazity/mobile-nav
Pierniki Oct 13, 2023
097055a
feat: client side load related articles
Pierniki Oct 13, 2023
4aa804a
feat: add mobile design
Max-Mogilski Oct 13, 2023
6c8b550
fix: more text issue
Max-Mogilski Oct 13, 2023
dc03ee8
feat: revalidate articles by path
Pierniki Oct 13, 2023
69936b9
Merge pull request #64 from Blazity/client-queries
Pierniki Oct 13, 2023
cfa8197
fix: md breakepoint card issue
Max-Mogilski Oct 13, 2023
ed195e1
feat: add search mobile desing, run prettier
Max-Mogilski Oct 13, 2023
5e07e64
Merge pull request #63 from Blazity/mobile-design
Pierniki Oct 13, 2023
0ac0888
fix: main card - mobile issue
Max-Mogilski Oct 13, 2023
cdc333c
feat: move layout up a level
Pierniki Oct 13, 2023
7cf54d6
Merge branch 'main' of https://github.com/Blazity/hygraph-next-enterp…
Pierniki Oct 13, 2023
cf04eff
feat: seo optimalization
Max-Mogilski Oct 13, 2023
c3956da
fix: related articles mobile fix
Max-Mogilski Oct 13, 2023
2ee1d35
fix: tags mobile issue
Max-Mogilski Oct 13, 2023
2b774f2
fix: search dialog mobile issue
Max-Mogilski Oct 13, 2023
a5aa7db
feat: add button styling
Max-Mogilski Oct 16, 2023
fc8d3f5
fix: button border-radius
Max-Mogilski Oct 16, 2023
7a4f5a9
feat: add skeleton component
Max-Mogilski Oct 16, 2023
0a22015
refactor: move to client fetching - quiz
Max-Mogilski Oct 16, 2023
e008755
Merge pull request #65 from Blazity/mobile-design
Pierniki Oct 16, 2023
a203b2a
feat: remove unused component
Max-Mogilski Oct 16, 2023
3d53e2e
feat: removed unused component
Max-Mogilski Oct 16, 2023
8a0f001
Merge pull request #66 from Blazity/mobile-design
Pierniki Oct 16, 2023
c577bc0
feat: add mock stock market api
Max-Mogilski Oct 16, 2023
afc5a0a
Merge pull request #67 from Blazity/mock-api
Max-Mogilski Oct 16, 2023
3a677cb
feat: add market stock
Max-Mogilski Oct 16, 2023
e7c4831
feat: add lang select
Max-Mogilski Oct 16, 2023
a5ccadb
Merge pull request #68 from Blazity/mock-api
Pierniki Oct 17, 2023
a37a09d
feat: add footer
Max-Mogilski Oct 17, 2023
78d442f
refactor: cr tweaks
Max-Mogilski Oct 17, 2023
cf58c8b
Merge branch 'main' into mock-api
Pierniki Oct 18, 2023
489b37c
Merge pull request #70 from Blazity/mock-api
Pierniki Oct 18, 2023
785b12d
feat: change revalidate path settings
Pierniki Oct 18, 2023
0e19273
Merge branch 'main' of https://github.com/Blazity/hygraph-next-enterp…
Pierniki Oct 18, 2023
0faa3c4
feat: replace root link with a tag
Pierniki Oct 18, 2023
0c195d4
feat: move layout up in structure
Pierniki Oct 18, 2023
8593198
feat: remove placeholder values
Pierniki Oct 18, 2023
5aaefa1
fix: styling tweaks
Max-Mogilski Oct 18, 2023
788f535
Merge pull request #71 from Blazity/fixes
Pierniki Oct 18, 2023
5a3b114
fix: replace links with a tags
Pierniki Oct 18, 2023
cb9b1df
Merge branch 'main' of https://github.com/Blazity/hygraph-next-enterp…
Pierniki Oct 18, 2023
02dd728
feat: add rel to social links, dynamically import some rich text elem…
Pierniki Oct 18, 2023
e6502ba
feat: add locale for date
Max-Mogilski Oct 18, 2023
3cbb862
Merge pull request #72 from Blazity/date
Pierniki Oct 18, 2023
4e4d1be
feat: add next/Links without prefetches
Pierniki Oct 18, 2023
5619a06
Merge branch 'main' of https://github.com/Blazity/hygraph-next-enterp…
Pierniki Oct 18, 2023
8d32a09
feat: add next/Link to HeroArticleCard
Pierniki Oct 18, 2023
3c70621
fix: mobile card image issue
Max-Mogilski Oct 18, 2023
165beb8
Merge pull request #73 from Blazity/style-fix
Max-Mogilski Oct 18, 2023
124e38f
feat: add back some prefetches, fix Quiz erroring due to no content
Pierniki Oct 18, 2023
7d29e22
Merge branch 'main' of https://github.com/Blazity/hygraph-next-enterp…
Pierniki Oct 18, 2023
cdd5f92
fix: quiz questions initial state not updating
Pierniki Oct 18, 2023
b1738c4
feat: remove hero article from trending
Pierniki Oct 18, 2023
99ff50c
feat: add categor tag to some category-related queries
Pierniki Oct 18, 2023
2a9b883
feat: add navigation tag to footer
Pierniki Oct 18, 2023
6738276
feat: seo/image optimalization
Max-Mogilski Oct 23, 2023
b85ae53
Merge pull request #74 from Blazity/optimalization
Max-Mogilski Oct 23, 2023
9937d21
feat: add tags - search
Max-Mogilski Oct 23, 2023
55b3e50
Merge pull request #75 from Blazity/tags-search
Max-Mogilski Oct 24, 2023
8498547
refactor: add locale lib
Max-Mogilski Oct 24, 2023
39bae8a
fix: generateStaticParams tweak
Max-Mogilski Oct 25, 2023
9289b00
feat: add global error handling
Max-Mogilski Oct 25, 2023
e3ec5a3
Update README.md
Pierniki Oct 26, 2023
28bd6fd
Update README.md
Pierniki Oct 26, 2023
030fa03
fix: accessibility tweak
Max-Mogilski Oct 26, 2023
8556e92
refactor: better way to handle type casting
Max-Mogilski Oct 26, 2023
7c303df
feat: add additional lang fallback
Max-Mogilski Oct 26, 2023
bb6de27
Merge pull request #77 from Blazity/accessibility
Max-Mogilski Oct 26, 2023
ec7d1b0
Merge pull request #76 from Blazity/lang-lib
Pierniki Oct 30, 2023
afcc27e
feat: add blazity links/homepage revalidation
Max-Mogilski Oct 30, 2023
70830af
Merge pull request #79 from Blazity/links
Max-Mogilski Oct 30, 2023
d70c1d3
fix: brightness tweak
Max-Mogilski Oct 30, 2023
151b165
Merge pull request #80 from Blazity/hero-image
Max-Mogilski Oct 30, 2023
31e1b3b
fix: image breakpoint tweak
Max-Mogilski Oct 31, 2023
d623af5
Merge pull request #81 from Blazity/images
Max-Mogilski Oct 31, 2023
3cdbc83
fix: logo quality tweak
Max-Mogilski Nov 6, 2023
f3065f0
fix: hero image quality tweak
Max-Mogilski Nov 6, 2023
526efa8
Merge pull request #82 from Blazity/logo-quality
Max-Mogilski Nov 6, 2023
7eae4dd
fix: hero accessibility tweak
Max-Mogilski Nov 6, 2023
4d901a4
Merge pull request #83 from Blazity/accessibility-fix
Max-Mogilski Nov 6, 2023
7600e0b
fix: error handling tweak
Max-Mogilski Nov 6, 2023
def0f51
Merge pull request #84 from Blazity/error-handle
Max-Mogilski Nov 6, 2023
53373ef
fix: blazity logo resolution tweak
Max-Mogilski Nov 6, 2023
50657eb
Merge pull request #85 from Blazity/error-handle
Max-Mogilski Nov 6, 2023
579c114
fix: hero mobile styles
Max-Mogilski Nov 6, 2023
01d8267
Merge pull request #86 from Blazity/error-handle
Max-Mogilski Nov 6, 2023
1a87457
fix: style tweaks
Max-Mogilski Nov 7, 2023
f2619f9
Merge pull request #87 from Blazity/error-handle
Max-Mogilski Nov 7, 2023
7fc5395
feat: add link hover
Max-Mogilski Nov 7, 2023
84d9857
Merge pull request #88 from Blazity/error-handle
Max-Mogilski Nov 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = {
},
],
"sort-imports": [
"error",
"warn",
{
ignoreCase: true,
ignoreDeclarationSort: true,
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ on:

jobs:
check:
env:
SKIP_ENV_VALIDATION: true

SKIP_BUILD_PRODUCT_REDIRECTS: 1
GA_MEASUREMENT_ID: "${{ secrets.GA_MEASUREMENT_ID }}"
GA_PROPERTY_ID: "${{ secrets.GA_PROPERTY_ID }}"
GA_BASE64_SERVICE_ACCOUNT: "${{ secrets.GA_BASE64_SERVICE_ACCOUNT }}"
NEXT_PUBLIC_HYGRAPH_CONTENT_API_URL: "${{ secrets.NEXT_PUBLIC_HYGRAPH_CONTENT_API_URL }}"
NEXT_PUBLIC_ALGOLIA_API_ID: "${{ secrets.NEXT_PUBLIC_ALGOLIA_API_ID }}"
NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY: "${{ secrets.NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY }}"
name: Check
runs-on: ubuntu-latest
steps:
Expand All @@ -21,6 +31,8 @@ jobs:
node-version: "${{ env.node_version }}"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Lint check
run: yarn lint
- name: Format check
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
- synchronize
jobs:
test:
env:
SKIP_ENV_VALIDATION: true
runs-on: ubuntu-latest
steps:
- uses: anc95/ChatGPT-CodeReview@main
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/nextjs_bundle_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,14 @@ jobs:

- name: Build next.js app
env:
SKIP_ENV_VALIDATION: true
SKIP_BUILD_PRODUCT_REDIRECTS: 1
GA_MEASUREMENT_ID: "${{ secrets.GA_MEASUREMENT_ID }}"
GA_PROPERTY_ID: "${{ secrets.GA_PROPERTY_ID }}"
GA_BASE64_SERVICE_ACCOUNT: "${{ secrets.GA_BASE64_SERVICE_ACCOUNT }}"
NEXT_PUBLIC_HYGRAPH_CONTENT_API_URL: "${{ secrets.NEXT_PUBLIC_HYGRAPH_CONTENT_API_URL }}"
NEXT_PUBLIC_ALGOLIA_API_ID: "${{ secrets.NEXT_PUBLIC_ALGOLIA_API_ID }}"
NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY: "${{ secrets.NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY }}"
# change this if your site requires a custom build command
run: yarn build

Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ on:
workflow_dispatch: null
jobs:
test:
env:
SKIP_ENV_VALIDATION: true
SKIP_BUILD_PRODUCT_REDIRECTS: 1
GA_MEASUREMENT_ID: "${{ secrets.GA_MEASUREMENT_ID }}"
GA_PROPERTY_ID: "${{ secrets.GA_PROPERTY_ID }}"
GA_BASE64_SERVICE_ACCOUNT: "${{ secrets.GA_BASE64_SERVICE_ACCOUNT }}"
NEXT_PUBLIC_HYGRAPH_CONTENT_API_URL: "${{ secrets.NEXT_PUBLIC_HYGRAPH_CONTENT_API_URL }}"
NEXT_PUBLIC_ALGOLIA_API_ID: "${{ secrets.NEXT_PUBLIC_ALGOLIA_API_ID }}"
NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY: "${{ secrets.NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY }}"
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
Expand All @@ -21,6 +30,8 @@ jobs:
run: yarn install --frozen-lockfile
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run codegen
run: yarn run codegen
- name: Run Playwright tests
run: yarn playwright test
- uses: actions/upload-artifact@v3
Expand Down
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.


# codegen
src/gql/fragment-masking.ts
src/gql/gql.ts
src/gql/graphql.ts
src/gql/index.ts

# generated on build
/public/robots.txt
/public/sitemap.xml
/public/sitemap-*.xml


# credentials

google-credentials.json

# Yarn 3 files
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# dependencies
node_modules
.pnp
.pnp.js
.yarn

# testing
coverage
Expand All @@ -24,6 +51,7 @@ yarn-error.log*
.pnpm-debug.log*

# local env files
.env
.env.local
.env.development.local
.env.test.local
Expand Down
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"plugins": [
"prettier-plugin-tailwindcss"
],
"trailingComma": "es5",
"tabWidth": 2,
"printWidth": 120,
"semi": false
}
2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { StorybookConfig } from "@storybook/nextjs"
const config: StorybookConfig = {
stories: ["../components/**/*.stories.mdx", "../components/**/*.stories.@(js|jsx|ts|tsx)"],
stories: ["../src/components/**/*.stories.mdx", "../src/components/**/*.stories.@(js|jsx|ts|tsx)"],
addons: ["@storybook/addon-links", "@storybook/addon-essentials", "@storybook/addon-interactions"],
framework: {
name: "@storybook/nextjs",
Expand Down
4 changes: 2 additions & 2 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { Preview } from "@storybook/react"

import "../styles/tailwind.css"
import "../src/styles/tailwind.css"

const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },

controls: {
matchers: {
color: /(background|color)$/i,
Expand Down
Loading
Loading