Skip to content

Commit

Permalink
Release 1 (#38)
Browse files Browse the repository at this point in the history
* Ayomiku cu #860purrxf create components for search on mobile (#15)

* CU_#860purrwv search header perfected for mobile, desktop, tablet screen

* CU_#860purrwv search header perfected for mobile, desktop, tablet screen

* CU_#860purrwv search header perfected for mobile, desktop, tablet and adjust sign in button

* CU_#860purrwv sidebar restyle

* CU_#860purrwv navbar restyle

* CU_#860purrwv popular foods categories done

* CU_#860purrwv popular foods simgle category updated

* CU_#860purrwv search category updated

* CU_#860purrwv algolia search updated

* CU_#860purrwv desktop subtask ready for review

* CU_#860purrxf mobile design perfected on search home screen

* CU_#860purrxf major design perfected

* CU_#860purrxf fixed major bugs

* CU_#860purrxf fixed major bugs

* CU_#860purrxf fixed minor bugs

* CU_#860purrxf fixed recommendation text break bug

* CU_#860purrxf fixed bug on storybook

* CU_#860purrxf button theme typography textTransform changed

* CU_#860purrt6 addressed all Harit design issues

* commit changes

* CU_Ayomiku #860purrt6 fixed and addressed PR issues

* CU_Ayomiku #860pxhar3 completed desktop version

* CU_#860purrt6 adding custom typography theme done

* CU_#860purrt6 adding custom typography theme done

* CU_#860purrt6 adding custom typography theme done and fonts updated

* remove fonts from plugins

* CU_#860pbqzjb custom typography theme done

* CU_#860pbqzjb quick fix

* CU_#860pbqzjb quick fix HomeScreen component

* CU_#860pbqzjb quick fix HomeScreen component

* CU_#860pbqzjb quick fix HomeScreen component

* CU_#860pbqzjb fixed all PR comments and design issues

* CU_#860pbqzjb quick fix AutoCompleteSearch and SearchResultItem component

* CU_#860pbqzjb quick fix AutoCompleteSearch and SearchResultItem component

* quick fix on ViewMoreButton and SearchCategory components

* remove fomts

* remove fonts from project

* CU_#860purrxf remove fonts from package.json

* Ayomiku cu #860pvhgcd comparing detail page (#16)

* CU_#860purrwv search header perfected for mobile, desktop, tablet screen

* CU_#860purrwv search header perfected for mobile, desktop, tablet screen

* CU_#860purrwv search header perfected for mobile, desktop, tablet and adjust sign in button

* CU_#860purrwv sidebar restyle

* CU_#860purrwv navbar restyle

* CU_#860purrwv popular foods categories done

* CU_#860purrwv popular foods simgle category updated

* CU_#860purrwv search category updated

* CU_#860purrwv algolia search updated

* CU_#860purrwv desktop subtask ready for review

* CU_#860purrxf mobile design perfected on search home screen

* CU_#860purrxf major design perfected

* CU_#860purrxf fixed major bugs

* CU_#860purrxf fixed major bugs

* CU_#860purrxf fixed minor bugs

* CU_#860purrxf fixed recommendation text break bug

* CU_#860purrxf fixed bug on storybook

* CU_#860purrxf button theme typography textTransform changed

* CU_#860purrt6 addressed all Harit design issues

* commit changes

* commit all changes

* CU_#860pvhgcd more update

* CU_#860pvhgcd details page and comparing tab ready for review

* CU_#860pvhgcd addressing video review

* CU_#860pvhgcd addressing video review

* CU_#860pvhgcd addressing video reviews done

* CU_#860pvhgcd addressing video reviews done

* CU_#860pvhgcd fixed bug on MultipleSelects component

* CU_Ayomiku #860purrt6 fixed and addressed PR issues

* CU_Ayomiku #860pbqzjb added feat on MultipleSelects component

* CU_Ayomiku #860pxhar3 completed desktop version

* CU_#860purrt6 adding custom typography theme done

* CU_#860purrt6 adding custom typography theme done

* CU_#860purrt6 adding custom typography theme done and fonts updated

* remove fonts from plugins

* CU_#860pbqzjb custom typography theme done

* CU_#860pbqzjb quick fix

* CU_#860pbqzjb quick fix HomeScreen component

* CU_#860pbqzjb quick fix HomeScreen component

* CU_#860pbqzjb quick fix HomeScreen component

* CU_#860pbqzjb fixed all PR comments and design issues

* CU_#860pbqzjb quick fix AutoCompleteSearch and SearchResultItem component

* CU_#860pbqzjb quick fix AutoCompleteSearch and SearchResultItem component

* quick fix on ViewMoreButton and SearchCategory components

* remove fomts

* remove fonts from project

* CU_#860purrxf remove fonts from package.json

* merge from Ayomiku_CU_#860purrxf_Create_components_for_Search_on_Mobile

* CU_#860pvhgcd updating themes and typography

* CU_#860pvhgcd updating themes and typography

* CU_#860pvhgcd updating themes and typography done

* CU_#860pvhgcd quick fix

* Fixed some PR issues

* Fixed and address storybook UI issues

* CU_#860pvhgcd quick fix on SharedSocialMedia component

* CU_#860pvhgcd quick fix on SharedSocialMedia component

* CU_#860pvhgcd quick fix

* CU_#860pvhgcd addressed storybook and design issues

* CU_#860pvhgcd addressed storybook and design issues

* CU_#860pvhgcd fixed all fontWeight issues

* CU_#860pvhgcd fixed all fontWeight issues

* CU_#860pvhgcd quick fix

* CU_#860pvhgcd more update and fixes on design fontWeight

* CU_#860pvhgcd more update and fixes on design fontWeight with Adedamola

* CU_#860pvhgcd more updates on design storybook solution

* CU_#860pvhgcd more updates on design storybook solution and fixed filter food padding issue

* Ayomiku cu #860pxhar3 nutrition components for facts for a given food (#18)

* CU_#860purrwv search header perfected for mobile, desktop, tablet screen

* CU_#860purrwv search header perfected for mobile, desktop, tablet screen

* CU_#860purrwv search header perfected for mobile, desktop, tablet and adjust sign in button

* CU_#860purrwv sidebar restyle

* CU_#860purrwv navbar restyle

* CU_#860purrwv popular foods categories done

* CU_#860purrwv popular foods simgle category updated

* CU_#860purrwv search category updated

* CU_#860purrwv algolia search updated

* CU_#860purrwv desktop subtask ready for review

* CU_#860purrxf mobile design perfected on search home screen

* CU_#860purrxf major design perfected

* CU_#860purrxf fixed major bugs

* CU_#860purrxf fixed major bugs

* CU_#860purrxf fixed minor bugs

* CU_#860purrxf fixed recommendation text break bug

* CU_#860purrxf fixed bug on storybook

* CU_#860purrxf button theme typography textTransform changed

* CU_#860purrt6 addressed all Harit design issues

* commit changes

* commit all changes

* CU_#860pvhgcd more update

* CU_#860pvhgcd details page and comparing tab ready for review

* first commit

* first commit

* first commit

* CU_#860pvhgcd addressing video review

* CU_#860pvhgcd addressing video review

* CU_#860pvhgcd addressing video reviews done

* CU_#860pvhgcd addressing video reviews done

* CU_#860pvhgcd fixed bug on MultipleSelects component

* More updates and features

* CU_Ayomiku #860purrt6 fixed and addressed PR issues

* CU_Ayomiku #860pxhar3 more features on nutrition tab

* CU_Ayomiku #860pxhar3 more features on nutrition tab

* CU_Ayomiku #860pxhar3 more features on nutrition tab

* merge from comparing tab branch

* CU_Ayomiku #860pbqzjb added feat on MultipleSelects component

* CU_Ayomiku #860pxhar3 completed desktop version

* CU_Ayomiku #860pxhar3 completed desktop version

* CU_Ayomiku #860pxhar3 completed desktop version

* CU_#860purrt6 adding custom typography theme done

* CU_#860purrt6 adding custom typography theme done

* CU_#860purrt6 adding custom typography theme done and fonts updated

* CU_#860pxhar3 nutrition tab components done and ready for PR review

* remove fonts from plugins

* remove fonts from plugins

* CU_#860pbqzjb custom typography theme done

* CU_#860pbqzjb quick fix

* CU_#860pbqzjb quick fix HomeScreen component

* CU_#860pbqzjb quick fix HomeScreen component

* CU_#860pbqzjb quick fix HomeScreen component

* CU_#860pbqzjb fixed all PR comments and design issues

* CU_#860pbqzjb quick fix AutoCompleteSearch and SearchResultItem component

* CU_#860pbqzjb quick fix AutoCompleteSearch and SearchResultItem component

* quick fix on ViewMoreButton and SearchCategory components

* remove fomts

* remove fonts from project

* CU_#860purrxf remove fonts from package.json

* merge from Ayomiku_CU_#860purrxf_Create_components_for_Search_on_Mobile

* CU_#860pvhgcd updating themes and typography

* CU_#860pvhgcd updating themes and typography

* CU_#860pvhgcd updating themes and typography done

* CU_#860pvhgcd quick fix

* updating typography

* CU_#860pxhar3 all fonts, spacings and colors match with the design

* CU_#860pxhar3 quick corrections

* Fixed some PR issues

* Fixed and address storybook UI issues

* CU_#860pvhgcd quick fix on SharedSocialMedia component

* CU_#860pvhgcd quick fix on SharedSocialMedia component

* CU_#860pvhgcd quick fix

* CU_#860pvhgcd addressed storybook and design issues

* CU_#860pvhgcd addressed storybook and design issues

* CU_#860pvhgcd fixed all fontWeight issues

* CU_#860pvhgcd fixed all fontWeight issues

* CU_#860pvhgcd quick fix

* CU_#860pvhgcd more update and fixes on design fontWeight

* CU_#860pvhgcd more update and fixes on design fontWeight with Adedamola

* CU_#860pvhgcd more updates on design storybook solution

* CU_#860pvhgcd more updates on design storybook solution and fixed filter food padding issue

* CU_#860pxhar3 more update on fontWeight update

* CU_#860pxhar3 adjusted nutition components typographies and colors

* CU_#860pxhar3 adjusted nutition components typographies and colors

* CU_#860pxhar3 adjusted nutition components typographies and colors

* CU_#860pxhar3 adjusted nutition components typographies and colors and code review with Ade

* CU_#860pxhar3 adjusted nutition components typographies and colors and code review with Ade

* CU_#860pxhar3 adjusted nutition components typographies and colors and code review with Ade

* CU_#860pxhar3 quick fix

* CU_#860pxhar3 quick fix too

* CU_#860pxhar3 Ade design issues fixed

* CU_#860pxhar3 Ade design issues fixed

* CU_#860pxhar3 Ade design issues fixed 2

* CU_#860pxhar3 Ade design issues fixed 2

* CU_#860pxhar3 Ade design issues fixed 3

* CU_#860pxhar3 Ade design issues fixed 4

* CU_#860pxhar3 Ade design issues fixed 4

* CU_#860pxhar3 Ade design issues fixed 5

* CU_#860pxhar3 Ade design issues fixed 6

* CU_#860pxhar3 Ade design issues fixed 6

* CU_#860pxhar3 Ade design issues fixed 6

* CU_#860pxhar3 Ade design issues fixed 6

* CU_#860pxhar3 fixed react-slick dot with and height bug

* CU_#860pxhar3 documented svgr on READ.md

* CU_#860pxhar3 quick fix on react-slick

* CU_#860pxhar3 harit reviews addressed

* CU_#860pxhar3 Ade alignment issue  addressed

* CU_#860pxhar3 Ade alignment issue  addressed

* CU_#860pxhar3 fixed all Harit storybook design issue

* CU_#860pxhar3 fixed all Harit storybook design issue

* CU_#860pxhar3 fixed all Harit storybook design issue 2

* CU_#860pxhar3 fixed all Harit storybook design issues

* CU_#860pxhar3 fixed all Harit storybook design issues

* CU_#860pxhar3 fixed all Harit storybook design issues

* CU_#860pxhar3 major fix

* CU_#860pxhar3 major fix

* CU_#860pxhar3 major fix and storybook PR updated

* CU_#860pxhar3 bug fixed

* CU_#860pxhar3 bug fixed 2

* CU_#860pxhar3 bug fixed final

* CU_#860pxhar3 bug fixed final 2

* feat(#8669rk7pr): fix issue related to nutrient selection on filter

* CU_#860q6d11w added script to download data files (#20)

* CU_#860q6d11w added script to download data files

* CU_#860q6d11w added script to download data files

* CU_#860q6d11w convert file to typescript, data directory to root directory

* CU_#860q6d11w convert file to typescript, data directory to root directory

* CU_#860q6d11w convert file to typescript, data directory to root directory

* CU_#860q6d11w added .env variable

* CU_#860q6d11w added .env variable and README documentation

* CU_#860q6d11w added .env variable and README documentation

* CU_#860q6d11w added .env variable and README documentation

* CU_#860q6d11w added .env variable and README documentation

* CU_#860q6d11w added .env variable and README documentation

* CU_#860q6d11w fixed deployment issue

* CU_#860q6d11w fixed deployment issue

* feat(#860q6d11w): change the location of the script

* CU_#860q6d11w remove type:'module'

* CU_#860q6d11w convert to .mjs format

---------

Co-authored-by: hhimanshu <dev.atwork@yahoo.com>

* Ayomiku cu #860q6d3gu migrate the build process to generate food pages (#22)

* first push

* pushed working code

* pushed working code for PR review

* pushed working code for PR review

* pushed working code for PR review

* pushed working code for PR review

* pushed working code for PR review

* pushed working code for PR review

* pushed working code for PR review 2

* pushed working code for PR review 2

* fixing deployment bug

* fixing deployment bug 2

* fixing deployment bug 2

* fixing MUI gatsby bug issue

* fixing MUI gatsby bug issue

* fixed

* fixed

* checking production break bug

* fixed table design issue

* ade review

* ade review and fixed deployment bug

* ade review and fixed deployment bug2

* fixed filtering age selection bugs

* fixed #4

* quick fix

* testing gatsby-plugin-emotion

* fixing production bug

* fixing production bug

* fixing production bug

* added custom plugins back

* added custom plugins back

* added custom plugins back

* code review with harit

* fixing mui break issue

* fixing mui break issue

* fixing mui break issue in progress

* adjuster header button borderRadius size

* adjuster header button borderRadius size

* adjuster header padding effect

* feat(#860q6d3gu): rdi should be passed using context

* feat(#860q6d3gu): local useState is not needed

refactor the code to have better names in types

* code refactoring

* code refactoring done

* feat(#860q6d3gu): make variable naming clearer to domain

* fixed duplicate name issue on search results lists

* feat(#860q6d3gu): extract smaller components

* feat(#860q6d3gu): renaming to support code reading clarity

* feat(#860q6d3gu): more renaming to support code reading clarity

* feat(#860q6d3gu): do not recreate function in a loop

* feat(#860q6d3gu): rename argument for better clarity

* feat(#860q6d3gu): further renaming type

* feat(#860q6d3gu): create rowsByNutrientGroup

* feat(#860q6d3gu): add type to the story

* fixed duplicate name issue on search results lists

* remove slice funcion generate details page

* remove slice funcion generate details page

* refactoring search nutrition filter function

* refactoring search nutrition filter function

* refactoring search nutrition more update

* refactoring search nutrition more update

* refactoring search nutrition more update

* refactoring search nutrition done

* working nutrition table filters

* working nutrition table filters 2

* working nutrition table filters 3

* working nutrition table filters bug

* working nutrition table filters bug on production

* working nutrition table filters bug fixed

* working nutrition table filters bug fixed

* working nutrition table filters production bug fixed

* working nutrition table filters production bug fixed and checking

* working nutrition table filters production bug fixed correctly

* working nutrition table filters production bug fixed correctly

* working nutrition table filters production bug fixed correctly

* testing update on production

* testing update on production 2

* CU_#860q6d3gu quick fix

* CU_#860q6d3gu quick fix on social medium

* CU_#860q6d3gu quick fix on storybook deployment issue

* CU_#860q6d3gu quick fix on storybook deployment issue

* CU_#860q6d3gu quick fix on storybook deployment issue ongoing

* fixing chromatic build issue

* fixing chromatic build issue

* fixing chromatic build issue

* fixing chromatic build issue ongoing

* fixing chromatic build issue ongoing

* fixing chromatic build issue ongoing

* fixing chromatic build issue ongoing 2

* fixed searchNutrition select bug

* fixed searchNutrition select bug fixed

* fixed 1,2 and 4 Ade reviews

* fixed searchNutrition select bug fixed

* working on table sortings..

* fixed all Ade issues

* fixed all Ade issues reviews done

* quick fixes

* Fixed selected Age bug

* Fixed selected Age bug

* Fixing chromatic build env issue

* Fixing chromatic build env issued on testing

* remove download-data command from chromatic build

* fixed stories args errors

* fixed PR review comments

* quick fix

* quick fix

* Corrected vercel build errors

* fixed all issues

* fixed all issues and production bugs

---------

Co-authored-by: hhimanshu <dev.atwork@yahoo.com>

* Ayomiku cu #860q8w6dk recently viewed main (#25)

* first push

* pushed working code

* pushed working code for PR review

* pushed working code for PR review

* pushed working code for PR review

* pushed working code for PR review

* pushed working code for PR review

* pushed working code for PR review

* pushed working code for PR review 2

* pushed working code for PR review 2

* fixing deployment bug

* fixing deployment bug 2

* fixing deployment bug 2

* fixing MUI gatsby bug issue

* fixing MUI gatsby bug issue

* fixed

* fixed

* checking production break bug

* fixed table design issue

* ade review

* ade review and fixed deployment bug

* ade review and fixed deployment bug2

* fixed filtering age selection bugs

* fixed #4

* quick fix

* testing gatsby-plugin-emotion

* fixing production bug

* fixing production bug

* fixing production bug

* added custom plugins back

* added custom plugins back

* added custom plugins back

* code review with harit

* fixing mui break issue

* fixing mui break issue

* fixing mui break issue in progress

* adjuster header button borderRadius size

* adjuster header button borderRadius size

* adjuster header padding effect

* feat(#860q6d3gu): rdi should be passed using context

* feat(#860q6d3gu): local useState is not needed

refactor the code to have better names in types

* code refactoring

* code refactoring done

* feat(#860q6d3gu): make variable naming clearer to domain

* fixed duplicate name issue on search results lists

* feat(#860q6d3gu): extract smaller components

* feat(#860q6d3gu): renaming to support code reading clarity

* feat(#860q6d3gu): more renaming to support code reading clarity

* feat(#860q6d3gu): do not recreate function in a loop

* feat(#860q6d3gu): rename argument for better clarity

* feat(#860q6d3gu): further renaming type

* feat(#860q6d3gu): create rowsByNutrientGroup

* feat(#860q6d3gu): add type to the story

* fixed duplicate name issue on search results lists

* remove slice funcion generate details page

* remove slice funcion generate details page

* refactoring search nutrition filter function

* refactoring search nutrition filter function

* refactoring search nutrition more update

* refactoring search nutrition more update

* refactoring search nutrition more update

* refactoring search nutrition done

* working nutrition table filters

* working nutrition table filters 2

* working nutrition table filters 3

* working nutrition table filters bug

* working nutrition table filters bug on production

* working nutrition table filters bug fixed

* working nutrition table filters bug fixed

* working nutrition table filters production bug fixed

* working nutrition table filters production bug fixed and checking

* working nutrition table filters production bug fixed correctly

* working nutrition table filters production bug fixed correctly

* working nutrition table filters production bug fixed correctly

* testing update on production

* testing update on production 2

* testing update on production 2

* working with indexDB

* CU_#860q6d3gu quick fix

* CU_#860q8w6dk quick fix

* CU_#860q8w6dk ready fo review

* CU_#860q6d3gu quick fix on social medium

* CU_#860q6d3gu quick fix on storybook deployment issue

* CU_#860q6d3gu quick fix on social medium

* CU_#860q6d3gu quick fix on storybook deployment issue

* CU_#860q8w6dk quick fix

* CU_#860q6d3gu quick fix on storybook deployment issue ongoing

* fixing chromatic build issue

* fixing chromatic build issue

* fixing chromatic build issue

* fixing chromatic build issue ongoing

* fixing chromatic build issue ongoing

* fixing chromatic build issue ongoing

* fixing chromatic build issue ongoing 2

* fixed searchNutrition select bug

* fixed searchNutrition select bug fixed

* fixed 1,2 and 4 Ade reviews

* fixed searchNutrition select bug fixed

* working on table sortings..

* fixed all Ade issues

* fixed all Ade issues reviews done

* quick fixes

* Fixed selected Age bug

* Fixed selected Age bug

* Fixing chromatic build env issue

* Fixing chromatic build env issued on testing

* remove download-data command from chromatic build

* fixed stories args errors

* fixed PR review comments

* quick fix

* quick fix

* Corrected vercel build errors

* fixed all issues

* fixed all issues and production bugs

* ready for PR review

* quick fix

* quick fix on storybook image loading

---------

Co-authored-by: hhimanshu <dev.atwork@yahoo.com>

* Ayomiku cu #860qderch the order of nutrient groups should be fixed (#29)

* CU_table sorted correctly #860qderch

* CU_#860qderch fixed table sorting bugs

* CU_#860qbngcy forkfacts logo updated (#27)

* CU_#860qbngcy forkfacts logo updated

* added cursor of pointer

* addressed PR 27 comments

* added seo content to generated food details page (#28)

* added seo content to generated food details page

* SEO code improved

* CU_#866a0gevy adjusted table row fonts (#30)

* CU_#866a0gevy adjusted table row fonts

* CU_#866a0gevy adjusted mobile nutrition table row fonts

* CU_#860qaa5gw Commingsoon component udpated for library and recipes (#26)

* CU_#860qaa5gw Commingsoon component udpated for library and recipes

* addressed PR 26 comments

* removed fs package

* CU_#860qder7x Nutrient's displayName should be shown if available is … (#33)

* CU_#860qder7x Nutrient's displayName should be shown if available is done

* add focus on search nutrition input field

* Ayomiku cu #860qdehpp enable sharing on social channels (#31)

* CU_#860qdehpp enabled share on social media

* CU_#860qdehpp enabled share on social media

* CU_#860qdehpp enabled share on social media done

* CU_#860qdehpp enabled share on social now working

* CU_#860qdehpp improved social media share configuration

* remove prop title from EmailShareButton and FacebookShareButton

* CU_#866a177w2 fixed nutrition facts are missing units (#32)

* CU_#866a177w2 fixed nutrition facts are missing units

* nutrient uni space adjusted

* CU_#860qewjwn SEO content improved

* quick fix

* Fixed duplicate of Food interface types and clearn DetailsPageGenerator.ts file

* feat(#860qewjwn): add 2 ways to ge energy calculation

* Ayomiku cu #866a1tbuc remove sorting from the nutrition table (#36)

* remove sort function

* removed sorting icon on nutrition table header

* removed cursor effect from nutrition table header

* CU_#860qewbq0 fixed desktop layout responsive issue (#34)

* CU_#860qewbq0 fixed desktop layout responsive issue

* CU_#860qewbq0 fixed desktop layout responsive issue

* CU_#860qewbq0 quick fix on Sidebar component

* CU_#860qewbq0 quick fix on Sidebar component

* quick fix on details page width

* Fixed nutrition responsive table issues

* quick fix on nutrition table

* addressing detailspage responsive issue

* CU_#860qewjwn SEO content improved

* quick fix

* fixed merge conflicts

* feat(#860qewjwn): add 2 ways to ge energy calculation

* CU_#860qewbq0 fixed desktop layout responsive issue

* removed console.log on AutoCompleteSearch component

* fixed merge conflicts and resolved conflict component

---------

Co-authored-by: hhimanshu <dev.atwork@yahoo.com>

* Ayomiku cu #860qf8v4c implement the recommended daily intake calculator (#37)

* progress made on tools page

* fixed custom theme bug

* select gender UI done

* age filter done

* more update

* quick fixes

* more update with storybook

* update flter comoponent

* rdi table dome

* more update added

* clear bugs  on rdi filter logic

* working code

* fixed mobile filter bug

* fix react-slick bug

* fixed all bugs

* quick fix on sidebar

* addressed PR issues

* fixed sidebar selected item bug

* fixed search food item path

* fixed table background row issue

* fixed design bugs

* added scroll to select nutrient dropdown

* quick fix on RDI table

* quick adjustment on Rdi desktop table

* minor issues fixed

* fixed bug Rdi mobile card sliders

* adaptive height issue is fixed

* removed single nutrient filtered button on Rdi mobile card

* removed overflow from layout component

* fixed major bugs

* quick fix

* quick fix on component types

* added light primary color to SCelectFilters component

* added SEO content to Rdi table page

* life stage card updated

* quick fix

* fixed age range bug on rdi table

* seo updated

* fixed PR comment issues

---------

Co-authored-by: Ayomikuolatunji <69473765+Ayomikuolatunji@users.noreply.github.com>
Co-authored-by: ayomikuolatunji <ayomikuolatunji@gmail.com>
  • Loading branch information
3 people committed Apr 14, 2023
1 parent faea11a commit e9246db
Show file tree
Hide file tree
Showing 230 changed files with 26,086 additions and 33,658 deletions.
2 changes: 0 additions & 2 deletions .env

This file was deleted.

4 changes: 4 additions & 0 deletions .env.sample
@@ -0,0 +1,4 @@
GATSBY_SEARCH_APP_ID=
GATSBY_SEARCH_API_KEY=
DATA_ENDPOINT=
NUM_SEARCH_RESULT_VISIBLE=
6 changes: 5 additions & 1 deletion .gitignore
Expand Up @@ -4,4 +4,8 @@ public
src/gatsby-types.d.ts
.idea/
.env
.vscode
.env.development
.env.production
.vscode
data
wget-log*
20 changes: 2 additions & 18 deletions .storybook/main.js
Expand Up @@ -6,25 +6,8 @@ module.exports = {
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-controls",
"@storybook/addon-viewport",
],
typescript: {
check: false,
checkOptions: {},
reactDocgen: "react-docgen-typescript",
reactDocgenTypescriptOptions: {
// speeds up storybook build time
allowSyntheticDefaultImports: false,
// speeds up storybook build time
esModuleInterop: false,
// makes union prop types like variant and size appear as select controls
shouldExtractLiteralValuesFromEnum: true,
// makes string and boolean types that can be undefined appear as inputs and switches
shouldRemoveUndefinedFromOptional: true,
// Filter out third-party props from node_modules except @mui packages
propFilter: (prop) =>
prop.parent ? !/node_modules\/(?!@mui)/.test(prop.parent.fileName) : true,
},
},
webpackFinal: async (config) => {
// Transpile Gatsby module because Gatsby includes un-transpiled ES6 code.
config.module.rules[0].exclude = [/node_modules\/(?!(gatsby|gatsby-script)\/)/];
Expand All @@ -40,6 +23,7 @@ module.exports = {
config.resolve.alias["@forkfacts/screens"] = path.resolve(__dirname, "../src/screens");
config.resolve.alias["@forkfacts/models"] = path.resolve(__dirname, "../src/models");
config.resolve.alias["@forkfacts/styles"] = path.resolve(__dirname, "../src/styles/");
config.resolve.alias["@forkfacts/icons"] = path.resolve(__dirname, "../src/DesignIcons");
config.resolve.mainFields = ["browser", "module", "main"];
return config;
},
Expand Down
32 changes: 30 additions & 2 deletions .storybook/preview.js
Expand Up @@ -3,10 +3,15 @@ import { action } from "@storybook/addon-actions";
import { CssBaseline } from "@mui/material";
import { addDecorator } from "@storybook/react";
import { withConsole, setConsoleOptions } from "@storybook/addon-console";
import { ThemeProvider } from "@mui/material";
import { ThemeProvider } from "@mui/material/styles";
import "@storybook/addon-actions/register";
import "@fontsource/poppins"; // Defaults to weight 400.
import "@fontsource/poppins";
import "@fontsource/poppins/500.css";
import "@fontsource/poppins/600.css";
import "@fontsource/poppins/700.css";
import { customTheme } from "../src/themes/theme";
import { MINIMAL_VIEWPORTS } from "@storybook/addon-viewport";
import "../src/styles/styles.css";

const optionsCallback = (options) => ({ panelExclude: [...options.panelExclude, /Warning/] });
addDecorator((storyFn, context) => withConsole(optionsCallback)(storyFn)(context));
Expand All @@ -30,6 +35,23 @@ window.___navigate = (pathname) => {
action("NavigateTo:")(pathname);
};

const customViewports = {
iphone8: {
name: "iphone8",
styles: {
width: "414px",
height: "100%",
},
},
iphone8X: {
name: "iphone8X",
styles: {
width: "533px",
height: "100%",
},
},
};

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
Expand All @@ -43,6 +65,12 @@ export const parameters = {
storySort: (a, b) =>
a[1].kind === b[1].kind ? 0 : a[1].id.localeCompare(b[1].id, undefined, { numeric: true }),
},
viewport: {
viewports: {
...MINIMAL_VIEWPORTS,
...customViewports,
},
},
};
/**
*
Expand Down
33 changes: 25 additions & 8 deletions README.md
Expand Up @@ -123,6 +123,17 @@ To use the Controls addon, you need to write your stories using args. Storybook

By default, Storybook will choose a control for each arg based on the initial value of the arg. It works well with certain types of args, such as boolean values or free-text strings, but in other cases, you want a more restricted control. Read more at [storybook controls github tutorial](https://github.com/storybookjs/storybook/blob/next/docs/essentials/controls.md) and [storybook controls documentation](https://storybook.js.org/docs/react/essentials/controls).

## Generating Icons

To generate icons from SVG images downloaded from the project Figma design, use the following command:

```
npm run svgr
```

This will use the @svgr/cli package to generate TypeScript files for the SVG icons in the src/images/icons directory. The generated files will be placed in the src/DesignIcons directory. The --replace-attr-values '#000=currentColor' option replaces any #000 fill values with the currentColor value, which allows the icons to inherit the color of their parent element.

## Release

We are using a version of [6 weeks cycle](https://3.basecamp-help.com/article/35-the-six-week-cycle). However, we may not
Expand Down Expand Up @@ -151,17 +162,23 @@ in order to merge to `main`. We prefer to merge to `main` (hence a release) as s
updated storybook components. This can be of tremendous help during the code review.
5. Once you are done with the work, assign your PR to a reviewer.

## Environment variables needed in the project.
## Setting up environment variables

### Follow these steps to add environment variables before you run the project.
To run this project, you'll need to set up some environment variables. These variables are used to connect to various APIs and services used in the project.

1. Create .env file in project root directory.
2. Add the following environment variables inside .env file
1. Copy the contents of the `.env.sample` file to a new file called `.env` using the following command:

```
GATSBY_SEARCH_APP_ID =Algolia APP ID value
GATSBY_SEARCH_API_KEY =Algolia APP KEY value
```
```
npm run build:env:dev
```

This command will copy all the keys and their default values from `.env.sample` to `.env` and `.env.development`.

2. Open the `.env` and `.env.development` files and replace the default values with the appropriate values for your local environment.

3. Save the `.env` and `.env.development` files.

With the environment variables set up, you're ready to run the project!

**After you done that successfully, reach out to the project owner for the key values**

Expand Down
43 changes: 39 additions & 4 deletions gatsby-config.ts
Expand Up @@ -2,19 +2,18 @@ import path from "path";
import type { GatsbyConfig } from "gatsby";
import { siteMetadata } from "./src/gatsby/siteMetaData";

require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
require("dotenv").config();

const config: GatsbyConfig = {
siteMetadata: siteMetadata,
graphqlTypegen: true,
plugins: [
`gatsby-theme-material-ui`,
`gatsby-plugin-material-ui`,
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
"gatsby-plugin-sitemap",
"gatsby-plugin-mui-emotion",
{
resolve: "gatsby-plugin-manifest",
options: {
Expand All @@ -33,10 +32,13 @@ const config: GatsbyConfig = {
"@forkfacts/models": path.resolve(__dirname, "src/models"),
"@forkfacts/screens": path.resolve(__dirname, "src/screens"),
"@forkfacts/styles": path.resolve(__dirname, "src/styles"),
"@forkfacts/icons": path.resolve(__dirname, "src/DesignIcons"),
"@forkfacts/generate-pages": path.resolve(__dirname, "src/pageGenerators"),
},
extensions: [".js", ".jsx", ".ts", ".tsx", ".css"],
},
},
"gatsby-transformer-json",
{
resolve: "gatsby-source-filesystem",
options: {
Expand All @@ -53,6 +55,39 @@ const config: GatsbyConfig = {
},
__key: "pages",
},
{
resolve: `gatsby-plugin-typescript`,
options: {
isTSX: true,
jsxPragma: `jsx`,
allExtensions: true,
},
},
{
resolve: "gatsby-plugin-seo",
options: {
siteName: "Forkfacts",
defaultSiteImage: path.resolve("static/icon.png"),
siteUrl: "https://forkfacts-v2.vercel.app/",
twitterCreator: "@ayomiku222",
twitterSite: "@ayomiku222",
globalSchema: `{
"@type": "WebSite",
"@id": "https://example.com/#website",
"url": "https://example.com/",
"name": "Forkfacts",
"publisher": {
"@id": "https://example.com/about/#organization"
},
"image": {
"@type": "ImageObject",
"@id": "https://example.com/#logo",
"url": "https://example.com/img/logo.png",
"caption": "Example Company Logo"
}
}`,
},
},
],
};

Expand Down
3 changes: 3 additions & 0 deletions gatsby-node.ts
@@ -0,0 +1,3 @@
import { createPages } from "./src/gatsby/createPages";

exports.createPages = createPages;
3 changes: 3 additions & 0 deletions gatsby-ssr.js
@@ -0,0 +1,3 @@
import wrapWithProvider from "./src/libs/wrapRootElement";

export const wrapRootElement = wrapWithProvider;

1 comment on commit e9246db

@vercel
Copy link

@vercel vercel bot commented on e9246db Apr 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

forkfacts-v2 – ./

forkfacts-v2-git-main-bonsaiilabs.vercel.app
forkfacts-v2-bonsaiilabs.vercel.app
forkfacts-v2.vercel.app

Please sign in to comment.