Closed ptgott closed 3 years ago
@ptgott, @ostermanj , @wassona I've updated the specific project endpoint to now provided nested json with the one-to-many tables.
So far this is only for the one-to-many tables that currently have an nlihc_id. This means that the topa
, subsidy
, real_property
and reac_score
tables are now available on the project endpoint whenever you request the data for a specific nlihc_id. For performance reasons the data from these tables are not added to the json when a list of all projects is requested. You can test it here:
http://housinginsights.us-east-1.elasticbeanstalk.com/api/project/NL000196
This doesn't have dc_tax or the one-to-many project to addresses that @jkwening is adding, as some database manipulation needs to happen for that. Will add those, probably next week.
Note I have also edited the original description to add some notes about which fields to use and which ones are not yet available.
@NealHumphrey This looks good and intuitive, thanks!
Updated 25 Aug, following Neal's comment:
@ptgott Thanks for working on this. I took a look at the WIP branch. There's a few things to consider as you continue working on this:
1) Top priority is getting this ready to open up for other people to also work on. The layout
object is a great setup that provides us some good structure for doing this. I think that the remaining task necessary is doing the 'adjust css' bullet as well as the accompanying HTML structure in the partials (which currently use a variety of approaches in their structure)
What's your availability/timeline to work on that part? I'm working on this project all weekend so I can also take on that part if you prefer. Want to get it in ASAP so that we can open up creating project view components to the rest of the team, definitely before our upcoming Tuesday meeting.
2) Having the navigation created from the layout
object structure is a great approach. A few comments on the way it's been set up so far (recoginzing it's still a work in progress):
a) I think we'd be better off building the navigation into the Bootstrap column layout, instead of having it overlay the page body. Nearly all test users did not seem to understand they could click the `sub-nav-button` (i.e. "segments index" in this view, though testing was of course done on the map view) to open/close the sidebar - something about our styling of that isn't working.
b) Using the mouse scroll wheel or the browser scroll bar click-drag methods are overriden by your autoscroll, yielding some unintuitive behavior. That definitely needs to be fixed so that they behave normally.
@NealHumphrey, thanks for looking this over! I can finish the top-priority items tomorrow. I'll adjust the to-do list to account for your suggestions.
Sounds good! Feel free to reach out if you want to discuss any implementation choices on it - I'll be online working on database stuff most of the day.
@NealHumphrey I've pushed some commits to PR #484. They adjust the spacing of some of the elements within the Project View, make the sidebar fixed (rather than collapsible) and remove the (broken) animated auto-scroll behavior. I was having some difficulty with the Bootstrap grid layout, so I've opted for library-less CSS. I've also shied away from editing the CSS of individual partials, with the assumption that these are still under development, with individual elements subject to change.
@ptgott Great; it's moving in the right direction.
Are you planning to do anything else on this today? Whenever you're done I'll start putting in some placeholders for the additional sections and do some work on the individual elements so that there's a good model to mimic for the ones added - we should be ready at that point to open this back up to dev from others.
Good stuff. I'll turn it over to you!
@ptgott would this polyfill work for the smooth scroll you wanted to use? http://iamdustan.com/smoothscroll/
@NealHumphrey This looks nice. I haven't looked at the size or dependencies, but it's definitely along the lines of what I was shooting for.
I've been using jQuery animate in filter-view.js and router.js for smooth scrolling since we're already loading that. Not sure it fits your purpose but you can find the examples there. On Sat, Aug 26, 2017 at 4:57 PM Paul Gottschling notifications@github.com wrote:
@NealHumphrey https://github.com/nealhumphrey This looks nice. I haven't looked at the size or dependencies, but it's definitely along the lines of what I was shooting for.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/codefordc/housing-insights/issues/471#issuecomment-325164156, or mute the thread https://github.com/notifications/unsubscribe-auth/ANAvkJdPhH4Woz5nWJxV_tKKAxflaqUPks5scJTMgaJpZM4O4RIr .
@ptgott I've pushed a bunch of additional revisions. I pushed them to your fork so they've shown up on the same pull request #484 (I didn't actually mean to do it that way, but should be ok).
Overview of changes:
attached header
and attached segment
to supply some basic clean section breaks. Those require sibling elements for header/segment (rather than nested) so I refactored your wrapAndAppendSegment
code a little bit. http://localhost:8000/tool/#/HI/building=NL000319
Here's a screenshot:
It should be ready to merge - do let me know if you find any issues, I'll merge tomorrow so that it'll be ready for people to take on different parts of it during tomorrow's session.
@NealHumphrey Overall the changes look good!
We're doing new things with the Project View. The accordion is out, and horizontal borders are in. It'll be a big, scrollable document with a navigation menu that scrolls to specific sections for you. The link to the mockup is below. Each checkbox corresponds to a single segment. These are small, so pick a few!
General
Segments