From 6067b0b906da55869d3c6fddd9503dce430ca5a7 Mon Sep 17 00:00:00 2001 From: Alex Hinds Date: Wed, 28 Nov 2018 09:41:30 +1100 Subject: [PATCH] Merge Master (#294) * S6 db refactor (#188) * dealt with errors, dealt with redundant api calls * backend refactor start * Learning how2db * Less debug output * Autobackup db * backup kida working xD * Testing fixes - still not perfect but meh * Permanent dbs * Looks like we working * Update courses.js removed comment * Update stub-db.js removed old code * Fixed search bug whilst here * Fixed some of the issues * Debug info removed * Prod now not prod * S5 frontend pagination (#166) * Backend pagination added * backend pagination + basic error check * Fixed the check (swear it worked on mine lol) * Pagination for Questions/Reviews * Fixed lint issues * Backend pagination fixes * Moved some of the pagination logic out to a component * Backend didn't merge properly before * Lint fixes * Frontend merging with pagination * frontend pagemeta state * Backend dependent on pageSize * Tests had to be changes because response now has {meta, data} instead of just an array * linter yelling at me * Made page buttons sligtly more attractive * Fixes based on review * PageSelector only shows if there are multiple pages avail * Fixed typo's when copying * S7 Further Design Normalisation (#189) * further normalisation of designs * more normalising on fonts * Copy update * updates to home page * added robots.txt * Course Ratings Frontend (#193) * added an arc for ratings * getting my head around svgs * Ratings * now with animations * simplified reviews * S6 better reviews (#194) * Slidey boy * Added course recommend and fixed up slidey boy * Added reccomend to tests * backend post review stuff - untestederino * seemingly working review ratings added to db * fixed enjoy values in backend * working course ratings! (kinda) * rating circles stay up to date now * fixed review POST test * review option columns changerino - now fills whole width of review form * S7 upvotes (#209) * Basic PUT request working * Started frontend for things, not properly conencted, bit more work needed * Up and down voting working * Upvote reviews too * Questions, reviews, answers and replies all can be up/downvoted * Pass dem tests * Im a bad merger * Cleanup * Constants for Alex * S8 review card recommended basic (#207) * ugly thumbs to denote review recommended or not * smol fix on aggregation of recommended * fixed smol linting thing * slightly less bad thumb position * reverted changes to review card to keep this branch useful * hide ratings if no reviews yet * clear comment form after answering * fixed test * S8 Design Updates (#211) * ugly thumbs to denote review recommended or not * smol fix on aggregation of recommended * fixed smol linting thing * argghhh * slightly less bad thumb position * more progress * more designinggg * more fixes * okay moving on to the feeds now * slowly getting there * removed old firebase key * next step is to tackle the feed cards * added caching * reverted changes to review card to keep this branch useful * hide ratings if no reviews yet * clear comment form after answering * adjust feed * oops * S8 db dev data (#212) * Questions and Reviews * Comments populating * Done comments * Fixed tests to be more generic * Made test data longer and varied length * S8 Card Feeds (#219) * Questions and Review Feed Updates * changed smartcourse.azurewebsites.net to smartcourse.me (#226) * Shorter Course Information Data (#225) * S8 signup flow basic profile (#213) * signup now in two stages; create firebase account, and create profile * signup flow more logical now ... handles most edge cases pretty well * basic profile page - still buggy, non functional update profile button * local default picture * update user backend added... no tests * lint errors fixed * working profile update * fixed textarea stuff, watcher to fix refresh profile problem * profile picture update added * working password reset from login form * nice error message for non-unique username * made hasProfile dependent on isLoggedIn to alleviate some potential bad * removed TODO * fixed post review/question bug when logged in * loading state for nav, split auth and profile get into two bits * reverted some stuff ... working again * better auth code, profile cache, global loading spinner in nav, reroutes * lint * page size fixaroo * I'v messed something up * protecting routes with guards * fixed some PR things * smol fixes * removed preAuth route check - not needed rn * smol fix to login page reroute * Fixed feed lieks (#229) * S9 reduced descriptions (#230) * some simple filtering * Slightly better descriptions * S8 comment pagination (#208) * Backend pagination for comments * Cleaned up exiting controller pagination code and lint/test fixes * Oops, fixed that * Does this fix it * fixed test - body is now meta+data * Fixed breaking test * Revert "S8 comment pagination (#208)" (#235) This reverts commit 68bd7da4f48e1872feb52f16b8483dcd23d13cb5. * S8-Design Tweaks Part 4 (#231) * Reworked Main Card Views * Built out new Components * More Design Refactoring * S8 restrict api (#232) * Simple auth safety * Working auth restrictions * Get an account * working progress * promt to login * other fixes * Damn tests * That ones on me * S9 loading state (#236) * loading state on all views, only get courses once on app load * course map + array lots of storage used... but should be speedier! * separated loading feed state from loading course info * pretty sure the beforeRouteUpdate re-load isn't needed on courses * split up question view loading into question and answers * split loading state in reviews * lint * kinda nice loading transitions in most places, plus removed a thing * performance * S9 time published (#237) * Date is in the form X