valnet / valuenetwork

Resource Planning and Value Accounting for Value Networks
http://mikorizal.org
GNU Affero General Public License v3.0
99 stars 25 forks source link

Map agent locations #436

Closed bhaugen closed 8 years ago

bhaugen commented 8 years ago

Now that we got maps working again, let's put agents on the map.

We've created a bit of a mess here because we got Locations that go on the map, but they are connected only to resources. Agents have an address field, that is not mapped. And they also have a primary_location field that is a Location, and would go on the map, but it's not on AgentCreateForm.

So we could either put the address field on the map (which would require geocoding when entered), or put the primary_location on the AgentCreateForm.

Problem with primary_location is that it's an extra set of steps (to create a location, and then add it to the agent).

Maybe better? when they enter the address, we could geocode it, create a Location, and make that the primary_location.

Might want to rethink Locations altogether...

bhaugen commented 8 years ago

Rethinking Locations a little:

Tentative plan:

  1. Put a button on the Agent page: "Add to Map". Opens a Create Location page, with the agent address and name defaulted in. (Gives people an option to put address on map, but does not force it.)
  2. On the Locations page, add "Agents at this Location" in the right panel before resources.
  3. Add a Change Location page, with an option to add an Agent to this Location.
bhaugen commented 8 years ago

Got 1 and 2 above done.

bhaugen commented 8 years ago

Did 3. All done for now.