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

V2 - New preset v2-mst-aptd-at-lcz-sty with Airtable replacing GraphCMS (based on v2-mst-aptd-gcms-lcz-sty) #86

Open
wants to merge 311 commits into
base: v2-mst-aptd-gcms-lcz-sty
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
311 commits
Select commit Hold shift + click to select a range
47d8fe4
Add "yarn start:tunnel" script using ngrok to create a local tunnel q…
Vadorequest Jun 10, 2020
195345f
Disable outdated-browser-rework completely (for now, until we impleme…
Vadorequest Jun 10, 2020
a653cd6
Refactor language button in footer as a dedicated I18nBtnChangeLocale…
Vadorequest Jun 11, 2020
15c9b6c
Fix logo width/height
Vadorequest Jun 11, 2020
9f0ed08
Add preview item page integrated with Stacker CMS
Vadorequest Jun 11, 2020
e73f3c2
Fix/improve footer styling
Vadorequest Jun 11, 2020
8040c0d
Rename AirtableItemPreviewLayout to ItemPreviewLayout
Vadorequest Jun 11, 2020
eeee753
Improve UI of I18nBtnChangeLocale
Vadorequest Jun 11, 2020
2622dd8
Comment unused stuff (maybe implement that later?)
Vadorequest Jun 11, 2020
6bc8a72
Add logs for debugging on vercel
Vadorequest Jun 11, 2020
b066940
Attempt not to replace IS_SERVER_INITIAL_BUILD at build time to avoid…
Vadorequest Jun 11, 2020
5ba5431
Add doc to better explain what webpack "definitions" plugin does to a…
Vadorequest Jun 11, 2020
f38b408
Add a failover in case writing to disk fails (won't write to disk, bu…
Vadorequest Jun 11, 2020
05d331c
Misc Remove useless log
Vadorequest Jun 11, 2020
100630e
Misc doc
Vadorequest Jun 11, 2020
cad5a87
Improve I18nBtnChangeLocale UI
Vadorequest Jun 11, 2020
2231ed3
Improve i18nRedirect (now handles query parameters as well, they were…
Vadorequest Jun 11, 2020
0f6cb64
Improve ItemPreviewLayout, moved to /[locale] folder to handle locale…
Vadorequest Jun 11, 2020
30a804e
Use ProductRow instead of old (and ugly) implementation
Vadorequest Jun 11, 2020
06c8e98
Redirect from preview item to SSG example instead of home
Vadorequest Jun 11, 2020
a383e17
i18n for preview item page/layout
Vadorequest Jun 11, 2020
2d236ad
Misc log
Vadorequest Jun 11, 2020
a8ffa65
More i18n
Vadorequest Jun 11, 2020
2f5fdeb
Airtable item preview using Stacker CMS (#105)
Vadorequest Jun 11, 2020
7e5fec2
CI - Automatically run LightHouse (on PR commits) (#103)
Demmonius Jun 12, 2020
fb5b463
Integrate Stacker CMS (#106)
Vadorequest Jun 12, 2020
31de39a
Add script to force deploy using fake commit
Vadorequest Jun 12, 2020
dc5fb63
Should fix domain name issues
Demmonius Jun 12, 2020
518ba54
Upgrade now CLI to latest version (fixes "now alias" command)
Vadorequest Jun 12, 2020
b64e9e0
Cleanup .vercel directory when running "yarn now:cleanup" (so that lo…
Vadorequest Jun 12, 2020
a70e5de
Add option to preview a page as "full page" (including Nav/Footer) ev…
Vadorequest Jun 12, 2020
74dbfd9
Make stopPreviewMode/startPreviewMode forward query parameters
Vadorequest Jun 12, 2020
1552b75
Add link to Airtable base
Vadorequest Jun 14, 2020
ee4cd97
Fix - GHA are not triggered in case of merge (#109)
Demmonius Jun 16, 2020
286ea44
Add Markdown support (#113)
Vadorequest Jun 16, 2020
9ff4f25
Remove unnecessary `GITHUB_CI_PR_COMMENT` and use default `GITHUB_TOK…
Demmonius Jun 16, 2020
d78c9b2
Remove unused react-markdown lib dependency (had been added then forg…
Vadorequest Jun 16, 2020
e114fd8
Misc - Update out-of-sync yarn.lock
Vadorequest Jun 16, 2020
96adde8
Automatically run E2E tests suite when manually deploying on producti…
Vadorequest Jun 18, 2020
d0dfd74
Fix yarn scripts (:full had been removed but forgotten to use the pro…
Vadorequest Jun 22, 2020
109e011
Add "appName" to sentry tags
Vadorequest Jun 24, 2020
350a937
Add "name" to status API response
Vadorequest Jun 24, 2020
d36491b
Allow custom i18n translations per customer (#118)
Vadorequest Jun 25, 2020
7a81fec
Misc - Use logger instead of console
Vadorequest Jul 6, 2020
81633b3
Misc - Doc about preview mode security
Vadorequest Jul 6, 2020
69d12e4
Fix hybrid cache no ttl (#123)
Vadorequest Jul 11, 2020
458bc66
Add useCustomer hook to access customer data (#124)
Vadorequest Jul 12, 2020
a83766e
Improve E2E tests (#125)
Vadorequest Jul 12, 2020
732c0c8
Run lighthouse on /en instead of / (base url) (#127)
Vadorequest Jul 12, 2020
cb3db36
Update hooks examples (#126)
Vadorequest Jul 12, 2020
7f65c53
Add "Markdown as JSX" documentation and examples (#128)
Vadorequest Jul 15, 2020
82e9495
Change publication workflow (staging = preview env) (#129)
Vadorequest Jul 16, 2020
afbfb87
Docs update "just-the-docs" theme 0.3.0 (#132)
Vadorequest Jul 16, 2020
c4f4031
Fix airtable integration tests (#133)
Vadorequest Jul 16, 2020
cc9c50f
I18nLink now forwards query params (they were silently ignored before…
Vadorequest Jul 19, 2020
dcb3f52
GDPR - Disable Google Click ID being used by default (#138)
Vadorequest Jul 20, 2020
6e58c1d
Add BaseTableType to be more flexible about the naming of the Airtabl…
Vadorequest Jul 24, 2020
f2c57fc
Crash early when customer isn't resolved, to provide a clear and conc…
Vadorequest Jul 24, 2020
254c017
Remove our own LightHouse comment and use the native comment (#139)
Vadorequest Jul 26, 2020
c78c646
Improve LightHouse reports (#141)
Vadorequest Jul 27, 2020
d39a4d6
GDPR - Add cookie consent UI (#140)
Vadorequest Jul 27, 2020
48e08f5
Ignore cypress folder for CodeClimate code quality analysis
Vadorequest Jul 28, 2020
db726d2
Update CodeClimate "main" branch for Github Actions CI
Vadorequest Jul 28, 2020
6b0008e
Fix CodeClimate coverage tests by running tests without integration (…
Vadorequest Jul 28, 2020
fc357f1
Fix i18n link (#148)
Vadorequest Aug 25, 2020
d2d81cc
Use :any to avoid TS issue with https://github.com/UnlyEd/next-right-…
Vadorequest Aug 25, 2020
e18961e
Misc separator in example between links (readability)
Vadorequest Sep 2, 2020
a13b596
Attempt to fix Vercel auto-aliasing - Shouldn't use "https://" for ho…
Vadorequest Sep 2, 2020
4c360de
Misc typo
Vadorequest Sep 3, 2020
fe4e1eb
Add uuid package and related types (#158)
Vadorequest Sep 5, 2020
c1ea458
Bugfix 157 e2e failing (#159)
Vadorequest Sep 6, 2020
5c29210
Docs - Fix custom CSS not being applied on preset
Vadorequest Sep 6, 2020
17f17d9
Upgrade to Next.js 9.5.4-canary.4 (#161)
Vadorequest Sep 7, 2020
54dd3fb
Upgrade dependencies (#163)
Vadorequest Sep 8, 2020
267b2fa
Fix React warning "Each child in a list should have a unique "key" pr…
Vadorequest Sep 8, 2020
bd73f90
Add warnings about missing Airtable ENV variables (DX)
Vadorequest Sep 8, 2020
ad00f2f
Release AIRTABLE_API_KEY and AIRTABLE_BASE_ID for better dev experien…
Vadorequest Sep 8, 2020
84ba714
Misc - Update doc
Vadorequest Sep 8, 2020
b5fc8a3
Remove unused TS type AirtableSystemFields.ts
Vadorequest Sep 8, 2020
ff1dd97
Misc doc CustomerTheme.ts
Vadorequest Sep 8, 2020
4677032
Upgrade to [email protected]
Vadorequest Sep 9, 2020
118fd04
Add jsLibraryMappings (WebStorm)
Vadorequest Sep 9, 2020
0a101cb
Add helpful scripts to analyse NRN own dependencies usage (#82 modified)
Vadorequest Sep 14, 2020
967eca2
Fix text align in <Code> component - See https://github.com/rajinwond…
Vadorequest Sep 19, 2020
b2e9567
Add analyse:bundle:production and analyse:bundle:development and chan…
Vadorequest Sep 24, 2020
2eaa607
Added csstype for better typing experience (#172)
samuelcastro Sep 25, 2020
a8ea0ac
Amplitude - Fix sameSite option + set cookie expiration to 1 year, in…
Vadorequest Oct 5, 2020
b2a7bfd
Amplitude - Add link to JS SDK options
Vadorequest Oct 5, 2020
eb5b926
Example optional catch all routes (#173)
Vadorequest Oct 8, 2020
f7f3156
Add TS support for Jest custom extends (add both declared namespace +…
Vadorequest Oct 12, 2020
2325d4d
Specify logEvent type (TS)
Vadorequest Oct 13, 2020
f4e1a4f
Add additional default tags to sentry (customer, version, buildId)
Vadorequest Oct 13, 2020
5e9f17f
Auto-track user in Sentry (universally)
Vadorequest Oct 13, 2020
0353b6b
Rename NEXT_PUBLIC_BUILD_TIME > NEXT_PUBLIC_APP_BUILD_TIME + rename N…
Vadorequest Oct 13, 2020
4253bd1
Add NEXT_PUBLIC_APP_NAME_VERSION
Vadorequest Oct 13, 2020
f69bec1
Add configureSentryI18n to init lang/locale automatically for all pages
Vadorequest Oct 13, 2020
463f521
Rename UniversalGlobalStyles > MultiversalGlobalStyles
Vadorequest Oct 13, 2020
becb0eb
Misc reformat code
Vadorequest Oct 13, 2020
070851d
Massive code reformat
Vadorequest Oct 13, 2020
776818c
Manual & remote (HTTP) deployments through GitHub UI/API (#147)
Demmonius Oct 17, 2020
f101acb
Improve GHA (#180)
Vadorequest Oct 18, 2020
383862e
GHA - Enable Cypress debug logs for CPU/Memory usage by default + doc…
Vadorequest Oct 20, 2020
8d0cf44
GHA - Protect staging workflow from commenting the PR when there is n…
Vadorequest Oct 21, 2020
e803736
Misc
Vadorequest Oct 21, 2020
62a2721
Auto-alias custom domains (#185)
Vadorequest Oct 21, 2020
eed0c1e
Misc space
Vadorequest Oct 21, 2020
426dcbc
Improve CC config (100 lines is too few for React functions, annoying…
Vadorequest Oct 21, 2020
8a1c4d0
Change PreviewModeBanner.tsx look depending on whether preview is ena…
Vadorequest Oct 21, 2020
fc4e83c
Fix GHA - Use custom domain aliases configured in production yaml fil…
Vadorequest Oct 22, 2020
16213b5
[GHA] Add generic "deploy:customer" scripts, which simplifies GHA CI/…
Vadorequest Oct 27, 2020
129a4ae
Upgrade `v2-mst-aptd-at-lcz-sty` preset to Next.js 10 (#189)
Vadorequest Oct 30, 2020
704c2e0
Add react and Next.js codemod utility scripts - See https://nextjs.or…
Vadorequest Oct 30, 2020
e6f6258
Refactor Font-Awesome icons (for `v2-mst-aptd-at-lcz-sty` preset) (#191)
Vadorequest Oct 30, 2020
5e32b83
Update cypress-io/github-action from v1 to v2 to fix CI/CD due to ::s…
Vadorequest Nov 21, 2020
7388ea4
Migrate "now" to "vercel" (#210) (modified)
Vadorequest Nov 21, 2020
dec5a52
Use NOW_REGION instead of VERCEL_REGION env variable
Vadorequest Nov 21, 2020
055f533
Rename Zeit to Vercel (#213)
Vadorequest Nov 21, 2020
b5f17d9
Improve LightHouse performances (#214)
Vadorequest Nov 21, 2020
aaee18c
Display better error message when customer failed to be fetched
Vadorequest Nov 24, 2020
c294630
Trigger Vercel deployment through NRN API endpoint using GitHub "work…
Demmonius Nov 27, 2020
4423f93
Fix dispatch? (#218)
Vadorequest Nov 27, 2020
02ab0ed
Fix API `startVercelDeployment` (#219)
Vadorequest Nov 27, 2020
eadd976
Fix link to changelog
Vadorequest Dec 18, 2020
86cf92c
Add an action that releases automatically when a change lands on the …
Vadorequest Dec 19, 2020
1fffa27
Don't use increment + don't use prerelease but releases instead
Vadorequest Dec 19, 2020
380b0bf
(MAJOR) Fake major version to reach v2 + use version based on branch …
Vadorequest Dec 19, 2020
fa6e5ad
Provide in api/status the git commit metadata (SHA/branch/tag) used t…
Demmonius Dec 19, 2020
87b73aa
Sync production/staging deployment files (a few forgotten things fixe…
Vadorequest Dec 19, 2020
e8d68f9
Await Vercel deployment to be ready before running E2E (#221)
Demmonius Dec 19, 2020
30d83e9
Overall improvements and new features (#229)
Vadorequest Dec 20, 2020
5a04c14
Small fixes following #229 (#230)
Vadorequest Dec 20, 2020
ef01c30
Provide git tags and release about deployed commit (#228)
Demmonius Dec 20, 2020
9e75b51
Fix auto-releasing (#232)
Vadorequest Dec 20, 2020
d79315a
Enable auto-git-release GHA on master/main by default, improves DX wh…
Vadorequest Dec 21, 2020
dc71bd5
Add utility scripts for bumping major/minor version manually without …
Vadorequest Dec 21, 2020
34e3baa
Use "v" prefix for tag/releases
Vadorequest Dec 21, 2020
927b026
Apply default to GIT_COMMIT_TAGS
Vadorequest Dec 21, 2020
128ec01
DevOps - Resolve app version from git tags, instead of package.json (…
Vadorequest Dec 21, 2020
edf67fc
Invoke custom webhook url once a Vercel deployment is "completed" (#235)
Demmonius Dec 30, 2020
f24da10
Handle GitHub private repositories (#236)
Vadorequest Dec 30, 2020
9deda83
Fix test by using null if NEXT_PUBLIC_APP_BUILD_TIME is undefined
Vadorequest Dec 30, 2020
a1fb5a5
Fix stage provided when invoking webhook callback in production
Vadorequest Dec 30, 2020
c0c07e8
Fix "await-for-vercel-deployment" step (#237)
Vadorequest Jan 4, 2021
a8a3bf0
Documentation update for `v2-mst-aptd-at-lcz-sty` (#240)
Vadorequest Jan 9, 2021
b7b7b7a
Remove WORKFLOW_DISPATCH.md + add ISSUE_TEMPLATE
Vadorequest Jan 9, 2021
d6326d8
Implement restore-variable to clean our actions (#239)
Demmonius Jan 11, 2021
a05b6f5
Deps - Upgrade `v2-mst-aptd-at-lcz-sty` packages (January 2021) (atte…
Vadorequest Jan 11, 2021
7eb0bef
Deps - Upgrade to Emotion v11 (from v10) [BREAKING CHANGES] (#247)
Vadorequest Jan 11, 2021
824a7f1
Silent I18nLink component (too noisy due to "Attempted to log "Warnin…
Vadorequest Jan 13, 2021
7fd4523
Improve Sentry monitoring for all pages + improve bootstrap error han…
Vadorequest Jan 13, 2021
d00f799
Improve demo about error handling
Vadorequest Jan 13, 2021
c0da2a8
Track fileLabel for easier debugging using Sentry
Vadorequest Jan 13, 2021
57c2c60
Misc doc - Update link (workflow dispatch)
Vadorequest Jan 14, 2021
1be2ba1
Fix English flag (#250)
Vadorequest Jan 16, 2021
2d9587a
Add StoryBook (#251)
Vadorequest Jan 16, 2021
f0c7850
Update SEO description (SB)
Vadorequest Jan 17, 2021
e3af86e
Upgrade dependencies `v2-mst-aptd-at-lcz-sty` - 2021-01-17 (#259)
Vadorequest Jan 17, 2021
59c71f5
Upgrade Next.js framework to v10.0.5 (#261)
Vadorequest Jan 17, 2021
87a7ece
Optimize Storybook CI/CD, by avoiding unnecessary runs (#263)
Vadorequest Jan 17, 2021
e5aba8e
Add "Jest" addon for Storybook (#262)
Vadorequest Jan 17, 2021
051fa92
Remove useless file (wasn't meant to be merged, forgotten)
Vadorequest Jan 17, 2021
714140c
Add missing command yarn e2e:sb
Vadorequest Jan 17, 2021
0850614
Fix regression in Animated3Dots.tsx (fill became required for no reas…
Vadorequest Jan 17, 2021
0174dcc
(MAJOR) Massive folder structure refactoring, using modular approach …
Vadorequest Jan 20, 2021
3b42bfa
Fixes issues in v5 (due to #264) (#274)
Vadorequest Jan 20, 2021
ba6fd64
Adapt ignored CC folders
Vadorequest Jan 20, 2021
929ffba
Add links to online documentation
Vadorequest Jan 21, 2021
9f368ae
[Github actions] Implement custom 'store-variables' on the production…
Demmonius Jan 22, 2021
617a59c
Consider v2-mst-aptd-at-lcz-sty as main branch - See https://github.c…
Vadorequest Jan 23, 2021
b51bec5
Add build:local command (#281)
Vadorequest Jan 23, 2021
afc2096
Feature - Automatically release Vercel deployments as GitHub deployme…
Vadorequest Jan 24, 2021
c826034
Change GitHub deployments so they don't auto-deactivate when new ones…
Vadorequest Jan 24, 2021
71abf88
no_override option doesn't work as expected - See https://github.com/…
Vadorequest Jan 24, 2021
bd63fe4
no_override option doesn't work as expected - See https://github.com/…
Vadorequest Jan 24, 2021
6559657
Optimize GitHub Actions triggers (#282)
Vadorequest Jan 24, 2021
6045564
Try to use no_override: true
Vadorequest Jan 24, 2021
efc1202
Fix infinite browser redirect loop when default locale isn't allowed …
Vadorequest Jan 31, 2021
f2d6109
Disable force redirect, not reliable enough to be included by default…
Vadorequest Jan 31, 2021
eaf125c
Misc rename page name for template page
Vadorequest Jan 31, 2021
19ab898
Add documentation for props used by the default layout (HeadProps, La…
Vadorequest Jan 31, 2021
5b2dae4
Remove CDN links (#287)
Vadorequest Feb 2, 2021
52d23f5
Fix #290 - Pre-build pages correctly (was working only for one page)
Vadorequest Feb 15, 2021
21119f7
[GHA] Upgrade github-action-store-variable from 1.0.1 to v2.1.1 (#289)
Demmonius Feb 24, 2021
377e175
Don't export Props types from Functional Components (#300)
Vadorequest Mar 18, 2021
623a565
Convert Animated3Dots to FC component
Vadorequest Mar 18, 2021
695f1fc
Upgrade dependencies (Node.js 14, Next.js v10.1.2) (March 31, 2021) (…
Vadorequest Mar 31, 2021
aba1cc4
Avoid crashing when running "next dev --port 8888" directly
Vadorequest Mar 31, 2021
c814685
Add start:windows command
Vadorequest Mar 31, 2021
def4e7f
Deploy serverless functions to paris by default (need Enterprise plan…
Vadorequest Apr 1, 2021
8e3f6cf
Fix "?." failing on Vercel
Vadorequest Apr 1, 2021
e3ae3ec
Upgrade marvinpinto/action-automatic-releases from v1.1.0 to v1.1.1 (…
Vadorequest Apr 17, 2021
3ec63ac
GHA - Replace Vercel bash deploy script by "deploy-on-vercel" github …
Demmonius May 8, 2021
cf995a1
Replace @unly/utils-simple-logger and winston by @unly/simple-logger …
Vadorequest May 8, 2021
7f6b187
Upgrade to Next.js v10.2 (#313)
Vadorequest May 8, 2021
5779939
Rework of fonts (#315)
Vadorequest May 10, 2021
403c87e
Optimise cookieConsent to avoid rendering on each page transition (#319)
Vadorequest May 10, 2021
4117bcb
Fix rel="alternate" - Must use absolute url (with "https://" prefix) …
Vadorequest May 11, 2021
cae7723
Misc simplify import
Vadorequest May 12, 2021
4b715b8
Upgrade dependencies 12-05-21 (#328)
Vadorequest May 12, 2021
db3b090
Remove unused env.STAGE (bad copy/paste)
Vadorequest May 12, 2021
5b468b3
Simplify layouts "-at" (#331)
Vadorequest May 12, 2021
eac9b00
Fix - Display deployment's aliases on PR (regression from #296) (#318)
Demmonius May 13, 2021
65bd6e4
Add useInterval hook
Vadorequest May 19, 2021
51ecf28
Avoid displaying an error on 404 pages
Vadorequest May 26, 2021
ee70706
Improve 404 page detection (covers more use-cases) + Don't serve page…
Vadorequest May 26, 2021
fadf1d7
Preload app-wide shared data (#334)
Vadorequest May 26, 2021
8b8261b
Misc typo
Vadorequest May 26, 2021
0900fc7
Pre-fetch all Locize translations as app-wide static data (#337)
Vadorequest May 26, 2021
38e5ac6
Enable react strict mode (-at) (#340)
Vadorequest May 27, 2021
f95b221
Remove TODOs (done)
Vadorequest May 27, 2021
cda40df
Misc
Vadorequest May 27, 2021
708cf44
Avoids crash when building app if there are any circular references
Vadorequest May 27, 2021
4d6574a
Misc typo
Vadorequest May 27, 2021
e1263f4
Improve next-plugin-preval configuration by disabling it in developme…
Vadorequest May 27, 2021
a84f870
Simplify preval (use one file) (#342)
Vadorequest May 27, 2021
e6fdc6a
Add "build:fast" command
Vadorequest May 27, 2021
eddf164
Mark all mutes as XXX instead of Hack (creates too much unnecessary n…
Vadorequest May 27, 2021
0f2226d
Fix forward of bestCountryCodes in publicLayoutSSG.ts
Vadorequest May 28, 2021
9fe85c0
Improve public layout by using a properly mocked Customer entity shar…
Vadorequest May 28, 2021
5fe1519
Fix `fs` issue when using next-plugin-preval (#345)
Vadorequest May 28, 2021
c7b0165
Fix 404 page generation + refactor all layouts SSG/SSR (#346)
Vadorequest May 28, 2021
f9a5928
Upgrade Cypress to v7 (#327)
Vadorequest May 29, 2021
28aef5a
Send network speed to Amplitude analytics and Sentry (#358)
Vadorequest Jun 9, 2021
e23d933
Improve HTTP headers security by default (#364)
Vadorequest Jun 9, 2021
6a2766f
Add 1h caching for all static assets (only fonts were cached before)
Vadorequest Jun 9, 2021
2f4e9f1
Use main, footer, nav and their ARIA equivalent for better a11y (#365)
Vadorequest Jun 10, 2021
b0dd34f
Optimize .vercelignore configuration (#366)
Vadorequest Jun 10, 2021
d7dbfdd
Fix usage of IS_SERVER_INITIAL_BUILD in logging + improve doc (#368)
Vadorequest Jun 10, 2021
d0e7493
Upgrade next-plugin-preval to 1.2.0 (#369)
Vadorequest Jun 10, 2021
d26026e
NextJS 11 (#371)
Vadorequest Jun 15, 2021
1d0c58f
Update the description (omg I forgot to do it for so long!)
Vadorequest Jun 15, 2021
1a81760
Fix eslint configuration (using "next" v11 plugin) + fix ESLint warnings
Vadorequest Jun 15, 2021
caf2226
Enforce eslint stronger rules for core web vitals
Vadorequest Jun 15, 2021
e33df4e
Fix esLint errors
Vadorequest Jun 15, 2021
e89a8c1
Remove dead code (unnecessary anymore)
Vadorequest Jun 19, 2021
8cdeeac
Remove unused import
Vadorequest Jun 19, 2021
b2aa41d
Refactor Amplitude (browser) + add Amplitude to the server side (API)…
Vadorequest Jun 23, 2021
95be082
Misc reformat
Vadorequest Jun 23, 2021
493e16f
Refactor Sentry + fix Sentry usage in API endpoints (#375)
Vadorequest Jun 24, 2021
5e21464
Add flushSafe to avoid crashing API endpoint when flushing fails
Vadorequest Jun 24, 2021
31187da
Use '@sentry/node' instead of Sentry init
Vadorequest Jun 24, 2021
910895a
Fix TS issue "Type error: Module '"/vercel/path1/src/modules/core/sen…
Vadorequest Jun 24, 2021
15da42f
Increase Sentry timeout to 5s, too many failure using 2s...
Vadorequest Jun 24, 2021
1542318
Fix Sentry config on the server side (#377)
Vadorequest Jun 25, 2021
f0d44ad
Add missing await/flush in API endpoints
Vadorequest Jun 25, 2021
95ef0e3
Avoids capturing false-positive 404 pages when building the 404 page
Vadorequest Jun 25, 2021
003ea51
Fix SimpleTooltip component (bad TS declaration)
Vadorequest Aug 23, 2021
1da6db3
Adapt Airtable sanitizer due to a recent change in the Airtable REST …
Vadorequest Aug 24, 2021
3103cab
[UPDATE] Github Action await-vercel (#383)
Demmonius Oct 18, 2021
f35fce2
Update Ubuntu from 18.04 to latest (currently 20.04) (#396)
Vadorequest Apr 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 5 additions & 3 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ checks:
method-complexity:
enabled: true
config:
threshold: 10
threshold: 25 # 10 by default
method-count:
enabled: true
config:
threshold: 20
method-lines:
enabled: true
config:
threshold: 100 # 25 by default
threshold: 300 # 25 by default
nested-control-flow:
enabled: true
config:
Expand Down Expand Up @@ -62,7 +62,9 @@ plugins:
exclude_patterns:
- "**/*.test.*"
- "**/*.spec.*"
- "src/svg/"
- "svg-to-react/"
- "cypress/"
- "src/modules/core/testing/mocks"

# Default CC excluded paths:
- "config/"
Expand Down
42 changes: 42 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# See https://nextjs.org/docs/basic-features/environment-variables

# XXX Tips: How is this file meant to be used?
# This file is tracked by git and must only contains NON-SENSITIVE information, which is usually meant to be available in the browser.
# Sensitive information (server-side only) MUST be written in ".env.local" file instead (which isn't tracked by git).

# XXX Tips: When is this file being used?
# This file is used only when building the Next.js app locally (localhost), whether it's for running `next dev` or `next build`.
# For staging/production stages, the app relies on "vercel.{NEXT_PUBLIC_CUSTOMER_REF}.{NEXT_PUBLIC_APP_STAGE}.yml:build.env".

# XXX Tips: What's the difference between env vars starting with "NEXT_PUBLIC_" and the others?
# All env variables that DON'T start with "NEXT_PUBLIC_" MUST be manually exposed by ./next.config.js for the project to work locally
# "NEXT_PUBLIC_" has a semantic purpose. If you mean to use a variable on the browser, then you should use "NEXT_PUBLIC_".
# Any non-sensitive env variable should start with "NEXT_PUBLIC_".
# Sensitive information MUST NOT start with "NEXT_PUBLIC_".
# You must be careful to use sensitive information only on the server-side, because if you use them on the browser or getInitialProps, they'll be leaked, even if the variable doesn't start with "NEXT_PUBLIC_".
# Any change to this file needs a server restart to be applied.

# The stage is "how" the application is running.
# It can be either "development", "staging" or "production".
# This value is also set in each "vercel.*.json" files, so that other stages use their own value.
# Tip: This value must not be changed.
# Tip: You may override it from ".env.local" if you want to simulate another stage, locally.
NEXT_PUBLIC_APP_STAGE=development

# The name of the NRN preset being used.
# Used by the demo to redirect to the preset branch/documentation.
NEXT_PUBLIC_NRN_PRESET=v2-mst-aptd-at-lcz-sty

# The customer that is being used.
# Tip: You may override it from ".env.local" if you want to simulate another customer, locally.
NEXT_PUBLIC_CUSTOMER_REF=customer1

# Locize project ID, can be found in the project "settings" page
# Used to fetch the i18n translations
# Tip: The value being used below is valid, so that you can run the demo locally without having to create your own Locize account, but you cannot make any change
NEXT_PUBLIC_LOCIZE_PROJECT_ID=658fc999-dfa8-4307-b9d7-b4870ad5b968

# Amplitude API key, can be found under "Manage Data > Project name > Project settings > API Key"
# Used to send analytics usage
# Tip: The value being used below is valid, so that you can run the demo locally without having to create your own Amplitude account, but you cannot access the data
NEXT_PUBLIC_AMPLITUDE_API_KEY=5ea02d86a6840c165fcc01377131fa13
55 changes: 0 additions & 55 deletions .env.development

This file was deleted.

31 changes: 0 additions & 31 deletions .env.development.local.example

This file was deleted.

57 changes: 57 additions & 0 deletions .env.local.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# XXX Template example
# This file is an example, meant to be duplicated as ".env.local" for local override

# See https://nextjs.org/docs/basic-features/environment-variables

# XXX Tips: How is this file meant to be used?
# This file is NOT tracked by git and can contain sensitive information, or override variables from ".env".

# XXX Tips: When is this file being used?
# This file is used only when building the Next.js app locally (localhost), whether it's for running `next dev` or `next build`.
# For staging/production stages, the app relies on "vercel.{NEXT_PUBLIC_CUSTOMER_REF}.{NEXT_PUBLIC_APP_STAGE}.yml:build.env".

# XXX Tips: What's the difference between env vars starting with "NEXT_PUBLIC_" and the others?
# All env variables that DON'T start with "NEXT_PUBLIC_" MUST be manually exposed by ./next.config.js for the project to work locally
# "NEXT_PUBLIC_" has a semantic purpose. If you mean to use a variable on the browser, then you should use "NEXT_PUBLIC_".
# Any non-sensitive env variable should start with "NEXT_PUBLIC_".
# Sensitive information MUST NOT start with "NEXT_PUBLIC_".
# You must be careful to use sensitive information only on the server-side, because if you use them on the browser or getInitialProps, they'll be leaked, even if the variable doesn't start with "NEXT_PUBLIC_".
# Any change to this file needs a server restart to be applied.

# Airtable API Key, can be found at https://airtable.com/account
# Used to authenticate to the Airtable API
# XXX Be extra cautious with this, it's shared by all the Airtable bases of your account
# REQUIRED - If not set, the app won't work at all and likely throw a "Error: Unauthorized"
# Example (real value): keyFsL8yVfPLRcSs6
# XXX For a better developer experience, we decided to publish our AIRTABLE_API_KEY, so that you may just clone the project and start it locally without having to configure anything.
# XXX Please do not use them to update anything that you're not supposed to (basically, don't write any script). Updating the demo data through the UI is fine, though!
AIRTABLE_API_KEY=keyFsL8yVfPLRcSs6

# Airtable Base ID, can be found in your airtable base then "Help > API Documentation"
# Airtable base to which API requests will be sent
# REQUIRED - If not set, the app won't work at all and likely throw a "Error: Not found"
# Example (real value): app25whOKJt4iOE1z
# XXX For a better developer experience, we decided to publish our AIRTABLE_BASE_ID, so that you may just clone the project and start it locally without having to configure anything.
# XXX Please do not use them to update anything that you're not supposed to (basically, don't write any script). Updating the demo data through the UI is fine, though!
AIRTABLE_BASE_ID=app25whOKJt4iOE1z

# Locize API key, can be found under "Your project > Settings > Api Keys" at https://www.locize.app/?ref=unly-nrn
# Used to automatically save missing translations when working locally
# Optional - If not set, the app will work anyway, it just won't create new keys automatically
# Example (fake value): 615384ff-0f39-4c7b-89ca-9b0acbfd0869
LOCIZE_API_KEY=

# Sentry DSN, can be found under "Your project > Client Keys (DSN)" at https://sentry.io/settings/YOUR_ORG/projects/YOUR_PROJECT/keys/
# Used to send monitoring events (errors, etc.)
# Optional - If not set, the app will work anyway, it just won't send any event
# Example (fake value): https://[email protected]/1234567
SENTRY_DSN=

# Github "personal access token", can be generated at "Settings > Developer settings > Personal access tokens" at https://github.com/settings/tokens
# Used by "Workflow Dispatch" GitHub Actions
# Needs the following scopes:
# - Repo (FULL)
# - Workflow
# Optional - If not set, the app will work anyway, it just won't be able to deploy new instances through the "startVercelDeployment" API
# Example (fake value): 278c560c1314b8b032c1314b856072bdaaaaaaaa
GITHUB_DISPATCH_TOKEN=
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
node_modules
.next
cypress
src/**/*.test*
src/gql/**
src/propTypes/**
src/svg/**
src/types/**
src/components/svg/**
src/stories/sb-examples/**
21 changes: 17 additions & 4 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ env:
node: true
extends:
- plugin:@typescript-eslint/recommended
- plugin:react/recommended
- plugin:jsx-a11y/recommended
- next # Recommended to be added last after all other "recommended" tools - See https://nextjs.org/docs/basic-features/eslint#disabling-rules
- next/core-web-vitals # Enforce stronger rules for Core Web Vitals - See https://nextjs.org/docs/basic-features/eslint#core-web-vitals
globals:
Atomics: readonly
SharedArrayBuffer: readonly
plugins:
- jest
- react
- react-hooks
- '@emotion'
parser: '@typescript-eslint/parser'
parserOptions:
project: ./tsconfig.json
Expand Down Expand Up @@ -81,14 +81,27 @@ rules: # See https://eslint.org/docs/rules
linebreak-style:
- error
- unix
'@typescript-eslint/ban-ts-ignore': warn # ts-ignore are sometimes the only way to bypass a TS issue, we trust we will use them for good and not abuse them
'@typescript-eslint/ban-ts-comment': warn # ts-ignore are sometimes the only way to bypass a TS issue, we trust we will use them for good and not abuse them
'@typescript-eslint/no-use-before-define': warn
'@typescript-eslint/no-unused-vars':
- warn
-
vars: 'all' # We don't want unused variables (noise) - XXX Note that this will be a duplicate of "no-unused-vars" rule
args: 'none' # Sometimes it's useful to have unused arguments for later use, such as describing what args are available (DX)
ignoreRestSiblings: true # Sometimes it's useful to have unused props for later use, such as describing what props are available (DX)
varsIgnorePattern: 'React|logger|rest'
'@typescript-eslint/ban-types':
- error
-
extendDefaults: true
types:
'{}': false # Allow writing `type Props = {}` - See https://github.com/typescript-eslint/typescript-eslint/issues/2063#issuecomment-632833366
'@typescript-eslint/no-explicit-any': off

# Emotion rules - See https://github.com/emotion-js/emotion/tree/master/packages/eslint-plugin
# Emotion 11 - See https://emotion.sh/docs/emotion-11
'@emotion/pkg-renaming': error

overrides:
- files: ['**/*.tsx']
rules:
Expand Down
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]

**Smartphone (please complete the following information):**
- OS: [e.g. iOS8.1]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/having-a-question-.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Having a question?
about: Use the community Discussions
title: ''
labels: ''
assignees: ''

---

Please ask questions in the [Discussions](https://github.com/UnlyEd/next-right-now/discussions)! :)
1 change: 1 addition & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Learn more about [our CI/CD configuration](https://unlyed.github.io/next-right-now/guides/ci-cd/)
Loading