1. added autoprefixer, terser for better compression.
2. lazy loading of FingerprintJS - separate chunk.
3. growY animation added for notifications entry.
4. NotificationsProps changed to accomodate data from props rather than redux.
5. Removed notifications data from redux as it was triggering multiple re-renders.
6. Notifications entry animations added. Height adjusted.
7. useMemo for Notifications calculations for perf.
8. Carved out NotificationsLink component to extract polling logic into that component. It saves SideNav from multiple re-renders due to polling.
9. Close notifications on click of any other link.
10. Route caching for /cases filters. With this even after clicking other links if user clicks back on /cases the filters will remain intact.
11. Percentage component removed from sideNav.
12. NotificationsCount animation added along with refactoring of code to save re-renders.
13. Removed hover JavaScript hover logic and relied on CSS hover itself - perf boost.
14. Global.NOTIFICATIONS_POLLING_INTERVAL added as polling constant.
15. Removed usage of useHover.
16. Fixed sideNav flicker issue on initial load. - This was happening due to React.Suspense at root level moved it to DefaultLayout where it was actually needed.
17. Added LOGIN_PATH constant to remove string literals '/login'
18. Notifications count in document title.
This commit is contained in:
Herik Modi
2022-10-09 11:54:05 +05:30
parent dc048f0d6e
commit d00da091ea
19 changed files with 328 additions and 173 deletions

View File

@@ -6,6 +6,9 @@ export default ({ mode }) => {
// Load app-level env vars to node-level env vars.
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) };
return defineConfig({
build: {
minify: 'terser'
},
plugins: [
react(),
visualizer({