Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-root: Add login param as prop to lib-user UserStats and MyGroups …
…components (zooniverse#5980) * Refactor to useStats hook * Refactor with getActiveGroupsWithRoles * Refactor formatting, Id use * Refactor MyGroups with stats * Add MyGroups styling * lib-user: Add TopProjects section, refactor imports (zooniverse#5936) * Init UserStats add ProfileHeader * Refactor lib-user auth and user request * Refactor useUserStats * Refactor hooks for auth and oauth * Move dateRanges * Refactors for classifications and hours tabs * Refactor stats query per date range select * Add usePanoptesProjects hook * Refactor BarChart data for complete series * Add DEFAULT_DATA to BarChart * Add TopProjects to UserStats * Add MainContent component for ProfileHeader, BarChart, and related components * Refactor getStatsQueryFromDateRange * Rename getDateInterval * Add TopProjects section * Create "@shared" alias * Refactor babel alias and imports * Init UserStats tests * Move mocks for stories and tests * Move UserStats components * Add TopProjects tests * Refactor UserStats with mocks * Increase timeout for UserStats tests * Add MainContent story and tests * Add timeout for UserStats tests * Fix BarChart refactor per rebase mistake * Refactor from ID to Id * Revert module-resolver removal, proxyquire add * Add production auth for local dev app * Refactor app-root build for local prod dev work * Refactor useUserStats auth * Revert changes to webpack setup * Update indexes * Fix shared imports * Refactor MyGroups with GroupCard * Refactor hooks and authClient * Refactor usePanoptesUser and usePanoptesUserGroup * Refactor useStats authorization * Refactor MyGroups and UserStats per auth changes * Refactor app-root and lib-user dev App for login * Refactor usePanoptesAuthUser and usePanoptesUser * Refactor main components with containers * Add TitledStat to index * Revert app-root changes * Revert component containers * Refactor UserStats for usePanoptesAuthUser and useStats * Refactor MyGroups for usePanoptesAuthUser * Update GroupStats for usePanoptesAuthUser and useStats * Add login prop to UserStats and MyGroups components * Remove duplicate authUser hook Co-authored-by: Delilah C. <[email protected]> --------- Co-authored-by: Delilah C. <[email protected]>
- Loading branch information