Skip to content
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

Front end uses react and redux #173

Closed
wants to merge 117 commits into from
Closed

Conversation

mak001
Copy link
Contributor

@mak001 mak001 commented Sep 26, 2017

  • Javascript side needs more tests
  • PHP needs more tests
  • Javascript needs some cleanup
  • New docs

The list of locations sometimes acts funky when scrolling to a location in a long list. May want to paginate the resulting list on client side.

ping #34
ping #115
ping #116
ping #117
ping #118

@codecov
Copy link

codecov bot commented Sep 26, 2017

Codecov Report

Merging #173 into master will increase coverage by 29.95%.
The diff coverage is 84.44%.

Impacted file tree graph

@@              Coverage Diff              @@
##             master     #173       +/-   ##
=============================================
+ Coverage      53.3%   83.26%   +29.95%     
+ Complexity       73       54       -19     
=============================================
  Files             7       26       +19     
  Lines           257      502      +245     
  Branches          0       59       +59     
=============================================
+ Hits            137      418      +281     
+ Misses          120       84       -36
Flag Coverage Δ Complexity Δ
#js 80.65% <80.65%> (?) 0 <0> (?)
#php 87.3% <94.69%> (?) 54 <27> (?)
Impacted Files Coverage Δ Complexity Δ
src/bulkloader/LocationCsvBulkLoader.php 0% <ø> (ø) 2 <0> (ø) ⬇️
src/admin/LocationAdmin.php 0% <0%> (ø) 4 <0> (ø) ⬇️
client/src/js/boot/index.jsx 0% <0%> (ø) 0 <0> (?)
client/src/js/actions/searchActions.js 100% <100%> (ø) 0 <0> (?)
client/src/js/reducers/mapReducer.js 100% <100%> (ø) 0 <0> (?)
client/src/js/components/search/RadiusDropDown.jsx 100% <100%> (ø) 0 <0> (?)
client/src/js/components/map/MapContainer.jsx 100% <100%> (ø) 0 <0> (?)
src/pages/LocatorController.php 97.91% <100%> (+78.09%) 15 <14> (-17) ⬇️
client/src/js/reducers/searchReducer.js 100% <100%> (ø) 0 <0> (?)
client/src/js/reducers/settingsReducer.js 100% <100%> (ø) 0 <0> (?)
... and 36 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 15c2d11...f1be7bd. Read the comment docs.

mak001 and others added 28 commits September 27, 2017 09:38
  - just outputs two components with text
  - now need to get the backend to spit out the locations
Linted JS
  - Formatting and renaming
  - added .eslintrc
  - updated .editorconfig to reflect .eslintrc
Started to implement radius search
Added some documentation
Updated eslint to ignore long comments (mainly for docs)
  - no proccessing yet
Moved some search stuff around
Added more docs
  - fails to update?
  - relies on 3rd party react package to render map and markers
Started to trim down controller
  - all of what is gone was uneeded
  - added style rule to override stupid margin on ul
  - for info window
  - Added new action types
  - imports are now on a relative path from client/src folder
now 'focuses' on related location in list when clicking a marker
  - not fully hooked up with react
  - don't know how to allow distance to be used in graphql (kept getting 'not a field' errors)
 - Uses a 'new' controller so it can have its own queries
 - Allows users without cms access to use the endpoint
    - Part of why a new controller, so everything on the main controller was not exposed
  - only outputs json of what is to be rendered
  - allows setting default map settings
Created a reducer to make a section in the store to store the settings
  - not hardcoded into javascript
@mak001 mak001 force-pushed the react-no-graphql branch 2 times, most recently from 64a4898 to 0478ae1 Compare September 28, 2017 15:01
  - Removes xdebug config
  - split php test coverage into two lines (coverage still needs to succed to download the scrutinizer stuff)
  - scrutinizer no longer relies on codecov submission to submit
  - should fix some speed issues with setting up js tests
  - css now compiles to /css instead of /client/dist/css
Css is now loaded via themedCSS in the template
Javascript requirements now load in using the module name, not the path
Updated gitattributes
test file structure now replicates src
  - now uses same basic method as Requirements class loads javascript/css
Fixed js error when there are no categories
  - faster future builds
mak001 added 5 commits October 2, 2017 15:23
  - Open source doesn't need this
Made javascript coverage use bash instead of npm module
  - recent pr to make module a vedor module seems to have messed something up
mak001 added 6 commits October 3, 2017 13:06
  - now uses pgsql and sqlite versions some silverstripe modules are using
locations json is now valid if there is no distance provided
cleaned up imports for category tests
fixed getEditForm properly remove delete action
@mak001
Copy link
Contributor Author

mak001 commented Nov 13, 2017

Closing to opt for optional front end module(s)

@mak001 mak001 closed this Nov 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants