-
Notifications
You must be signed in to change notification settings - Fork 87
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
feat(react): add FormSG icons, title and description #2042
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the favicon.ico does not seem to be transparent and have a white background instead, should we revert it to follow favicon.svg? Maybe use https://realfavicongenerator.net/ for generating the necessary files
Closing this to reduce clutter. @chowyiyin pls reopen when you pick this up again. |
Reopening this, React issues are a go! |
…1819) * chore: add initial packages and lint tooling * feat(design-system): add base colours to theme * feat(design-system): add base typography to theme * feat(design-system): add Button styling variants * feat(design-system): add initial Input outline styling * feat(design-system): extend theme to use new colours/text/components * chore(github-actions): add Chromatic CI/CD * feat(Spinner): add Spinner custom component * feat(Button): add Button component and story * chore(storybook): set up storybook * chore: update chromatic to only run on form-v2 branches * chore: update chromatic action with correct working directory * chore: update root ts-config to ignore src/frontend * chore: add lint scripts to react frontend directory * build: move React app to root, skip preflight checks preflight checks due to conflicting node modules, but can ignore for now * fix: update chromatic github action to the correct directory * chore: use eslint's sort import instead of prettier's and update lint prettier config is not very customization * feat(storybook): add withPerformance addon * fix: correct lint:fix script, set frontend eslint as root setting eslint as root means it will not converge with root's eslint, preventing conflicts * feat: add better stories for Buttons * chore: update storybook addons to latest for perf * fix: add correct working directory for Chromatic action * fix: remove deleted storybook addon * fix: add all missing node_modules in frontend didn't get any errors locally due to having a root node_module.. which is not always going to be possible * fix: update lint-staged to account for multi-folder repo * fix: lint-staged not working for multi-repo * ref: remove usage of FC, indexes now default export for code split * feat: add aliases to frontend configuration * refactor: make export default a one-liner * refactor: use alias instead of aliasDangerous in cra rewire * chore: delete react app readme
…1819) * chore: add initial packages and lint tooling * feat(design-system): add base colours to theme * feat(design-system): add base typography to theme * feat(design-system): add Button styling variants * feat(design-system): add initial Input outline styling * feat(design-system): extend theme to use new colours/text/components * chore(github-actions): add Chromatic CI/CD * feat(Spinner): add Spinner custom component * feat(Button): add Button component and story * chore(storybook): set up storybook * chore: update chromatic to only run on form-v2 branches * chore: update chromatic action with correct working directory * chore: update root ts-config to ignore src/frontend * chore: add lint scripts to react frontend directory * build: move React app to root, skip preflight checks preflight checks due to conflicting node modules, but can ignore for now * fix: update chromatic github action to the correct directory * chore: use eslint's sort import instead of prettier's and update lint prettier config is not very customization * feat(storybook): add withPerformance addon * fix: correct lint:fix script, set frontend eslint as root setting eslint as root means it will not converge with root's eslint, preventing conflicts * feat: add better stories for Buttons * chore: update storybook addons to latest for perf * fix: add correct working directory for Chromatic action * fix: remove deleted storybook addon * fix: add all missing node_modules in frontend didn't get any errors locally due to having a root node_module.. which is not always going to be possible * fix: update lint-staged to account for multi-folder repo * fix: lint-staged not working for multi-repo * ref: remove usage of FC, indexes now default export for code split * feat: add aliases to frontend configuration * refactor: make export default a one-liner * refactor: use alias instead of aliasDangerous in cra rewire * chore: delete react app readme
5a95b9f
to
9eb783e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
favicon.ico seems to be quite large, is there a way to minimize the size?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just realized our current logomark is 100kb... omg....
* feat(react): add base react app directory in root of the application (#1819) * chore: add initial packages and lint tooling * feat(design-system): add base colours to theme * feat(design-system): add base typography to theme * feat(design-system): add Button styling variants * feat(design-system): add initial Input outline styling * feat(design-system): extend theme to use new colours/text/components * chore(github-actions): add Chromatic CI/CD * feat(Spinner): add Spinner custom component * feat(Button): add Button component and story * chore(storybook): set up storybook * chore: update chromatic to only run on form-v2 branches * chore: update chromatic action with correct working directory * chore: update root ts-config to ignore src/frontend * chore: add lint scripts to react frontend directory * build: move React app to root, skip preflight checks preflight checks due to conflicting node modules, but can ignore for now * fix: update chromatic github action to the correct directory * chore: use eslint's sort import instead of prettier's and update lint prettier config is not very customization * feat(storybook): add withPerformance addon * fix: correct lint:fix script, set frontend eslint as root setting eslint as root means it will not converge with root's eslint, preventing conflicts * feat: add better stories for Buttons * chore: update storybook addons to latest for perf * fix: add correct working directory for Chromatic action * fix: remove deleted storybook addon * fix: add all missing node_modules in frontend didn't get any errors locally due to having a root node_module.. which is not always going to be possible * fix: update lint-staged to account for multi-folder repo * fix: lint-staged not working for multi-repo * ref: remove usage of FC, indexes now default export for code split * feat: add aliases to frontend configuration * refactor: make export default a one-liner * refactor: use alias instead of aliasDangerous in cra rewire * chore: delete react app readme * feat(react): add base react app directory in root of the application (#1819) * chore: add initial packages and lint tooling * feat(design-system): add base colours to theme * feat(design-system): add base typography to theme * feat(design-system): add Button styling variants * feat(design-system): add initial Input outline styling * feat(design-system): extend theme to use new colours/text/components * chore(github-actions): add Chromatic CI/CD * feat(Spinner): add Spinner custom component * feat(Button): add Button component and story * chore(storybook): set up storybook * chore: update chromatic to only run on form-v2 branches * chore: update chromatic action with correct working directory * chore: update root ts-config to ignore src/frontend * chore: add lint scripts to react frontend directory * build: move React app to root, skip preflight checks preflight checks due to conflicting node modules, but can ignore for now * fix: update chromatic github action to the correct directory * chore: use eslint's sort import instead of prettier's and update lint prettier config is not very customization * feat(storybook): add withPerformance addon * fix: correct lint:fix script, set frontend eslint as root setting eslint as root means it will not converge with root's eslint, preventing conflicts * feat: add better stories for Buttons * chore: update storybook addons to latest for perf * fix: add correct working directory for Chromatic action * fix: remove deleted storybook addon * fix: add all missing node_modules in frontend didn't get any errors locally due to having a root node_module.. which is not always going to be possible * fix: update lint-staged to account for multi-folder repo * fix: lint-staged not working for multi-repo * ref: remove usage of FC, indexes now default export for code split * feat: add aliases to frontend configuration * refactor: make export default a one-liner * refactor: use alias instead of aliasDangerous in cra rewire * chore: delete react app readme * feat: add FormSG icons, title and description * feat: arecreate icon files * feat: regenerate icons * fix: fix unresolved merge conflicts from rebase Co-authored-by: Kar Rui Lau <[email protected]>
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> | ||
<link rel="icon" type="image/svg+xml" href="%PUBLIC_URL%/icon.svg" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here it references icon.svg
, but the file favicon.svg
was added. Was it a typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, fixed in a later PR when I discovered it. May not have been merged yet though 😂
This PR replaces the default icons, title and description of the React base app with those for FormSG.
Closes #1901
Solution
Files added:
favicon.ico
: 32x32 and 16x16favicon.svg
logo192.png
: 192x192logo512.png
: 512x512apple-touch-icon.png
: 180x180Used
Squoosh
andSVGO
to optimizesvg
andpng
s as suggested in issue's linked articleScreenshots
On desktop browser
On iPhone
On Android device
Note:
logo192.png
used for homescreen;logo512.png
andname
inmanifest.json
used for splash screen.Manual Tests