Commit Graph

7160 Commits

Author SHA1 Message Date
Dustin Carlino
f6e4c9b08e
Concave hull, you're drunk, go home (#792)
Add map_model Blocks and RoadLoops
2021-10-27 13:19:13 -07:00
Dustin Carlino
4cf941a5f0 Convert map_editor from CmdArgs to structopt. #745
Keep the translation layer from URL GET params.
2021-10-27 11:48:34 -07:00
Dustin Carlino
2ee2b991f4 Convert other non-UI things from CmdArgs to structopt. #745
structopt is forcing some hacks, but oh well.

There are some docs to update in the other repo, will get to that
soon...
2021-10-26 12:02:40 -07:00
Dustin Carlino
0464ab4499 Convert the headless server from CmdArgs to structopt. #745 2021-10-26 11:10:08 -07:00
Dustin Carlino
cf3d00f234 Fix the --diff map feature, broken by 57584a61b9 2021-10-25 13:51:01 -07:00
Dustin Carlino
007cf0b28d Split the importer into individual commands with structopt. #745 2021-10-25 13:02:00 -07:00
Dustin Carlino
34d98e8203 new release 2021-10-24 14:50:06 -07:00
Dustin Carlino
0cff83d776 Pin georust overrides to the main git repos, not branches. [rebuild] [release]
The mkirk/concave-hull-fix-empty-crash branch was deleted recently,
causing CI failures. We can just pin to a recent commit on the main
branch.
2021-10-24 13:44:43 -07:00
Dustin Carlino
98b350418d Log warnings when stripping out broken commands from edits 2021-10-24 12:56:02 -07:00
Dustin Carlino
57584a61b9
For Ungap's route mode, add a button to toggle back and forth between (#783)
the original and edited map. This is an easy way to evaluate how a
proposal influences a particular route.
2021-10-24 12:32:08 -07:00
Dustin Carlino
cce8c6c078 Remove the warning about out-of-date versions after 2 weeks. I'm gradually ending the promise of weekly releases. 2021-10-24 12:28:58 -07:00
Dustin Carlino
a75f874dbf Always load map edits permissively -- if there are broken commands, just
skip them.

This partly works around a bug loading remote edits from r/seattlebike.
The workaround isn't great, because the edits there are uncompressed --
there are multiple commands modifying the same road. The workaround will
ignore all but the first version.
2021-10-22 10:29:00 -07:00
Dustin Carlino
151ec7b167 When a timer finishes, print the wannabe flamechart using the log crate.
On native, this makes it much easier to visually distinguish the
finalized timing breakdown from the temporary progress messages. On web,
this makes the timing breakdown actually show up in the developer
console.
2021-10-21 13:56:17 -07:00
Dustin Carlino
9f86365cf6 Upgrade to rust 1.56 and cutover to rust edition 2021 2021-10-21 09:38:06 -07:00
Dustin Carlino
49b2e6778d
Consolidate Ungap editing experience in the appropriate mode (#785)
Move proposal management from explore to edit pane

Co-authored-by: Michael Kirk <michael.code@endoftheworl.de>

Co-authored-by: Michael Kirk <michael.code@endoftheworl.de>
2021-10-20 12:39:42 -07:00
Dustin Carlino
48ed3683e5 Fix the thickness math 2021-10-18 17:54:58 -07:00
Dustin Carlino
002b41816d Actually, generalize UnzoomedLines to handle circles too. Make the route sketcher nicer to use at all zoom levels! 2021-10-18 17:54:58 -07:00
Dustin Carlino
749a7384c1 Make the route sketcher tool use UnzoomedLines, making it much easier to see the route on large maps.
Note the draggable waypoint circles are still a fixed size; you can't
easily manipulate the route when unzoomed far.
2021-10-18 17:54:58 -07:00
Dustin Carlino
b5cca3f18c Refactor a helper to draw unzoomed thick lines at a constant width.
To start, just make the bike network use this.
2021-10-18 17:54:58 -07:00
Dustin Carlino
54c9d1927e Er, forgot to actually upload changed files from a few commits ago 2021-10-18 13:53:39 -07:00
Dustin Carlino
a643c35014 Long overdue round of clippy 2021-10-18 13:52:10 -07:00
Dustin Carlino
a85915f647 Refine high_stress_for_bikes to take direction into account. Northbound bike lanes on Roosevelt don't really matter when going southbound.
Regenerate all maps, since this maybe affects edge weights.

And try some ideas for understanding why files change.
2021-10-18 13:41:31 -07:00
Dustin Carlino
7d57deb8ae Move the focus state from Panel up to widgetry in general, so two different panels don't clash 2021-10-14 17:57:03 -07:00
Dustin Carlino
698e26a831 Use Outcome::Focused to match existing semantics better 2021-10-14 17:57:03 -07:00
Dustin Carlino
b024fa958a It's hard to focus...
While dragging a card or using a dropdown or persistent split menu,
prevent other widgets in the same panel from handling events.
2021-10-14 17:57:03 -07:00
Dustin Carlino
981b421bd9 Consistently use imperial units for the barrier dropdown. Bug spotted by Tobias! 2021-10-14 10:59:34 -07:00
Dustin Carlino
66c908913e Run the area polygons in city.bin through the georust simplification.
Seattle drops from 3MB to 800KB with no discernable loss of quality.
2021-10-14 10:37:32 -07:00
Dustin Carlino
eb4765fba7 forgot to bump the version string for the next release
(we really should consider a 0.3 soon...)
2021-10-14 09:43:14 -07:00
Dustin Carlino
49469f42f1 the grand release of Ungap the Map! 2021-10-12 17:06:59 -07:00
Dustin Carlino
77768588a7 Import Neukölln #777. and attempt a [rebuild] [release] 2021-10-12 15:03:52 -07:00
Dustin Carlino
77bc0423ac Critical bug in the final hour: Aurora wasn't marked as high-stress, because the road rank was just looking for arterials, not also highways! 2021-10-12 11:46:23 -07:00
Michael Kirk
41060572c0 Space tab header/content more cohesively 2021-10-12 11:35:00 -07:00
Michael Kirk
871cbf7ecf Only enable controls when they do something 2021-10-12 10:21:12 -07:00
Dustin Carlino
3493c834af Be a little more clear in the quick sketch tool that we shouldn't expand road width 2021-10-12 09:24:00 -07:00
Dustin Carlino
8e1f34995b Make maybe_add_bike_lanes not create duplicate lanes when editing a road that already has them! 2021-10-12 09:17:43 -07:00
Dustin Carlino
876eff87dd Recalculate pathfinding at the right time, now that changing to the trip page can immediately trigger pathfinding 2021-10-12 09:05:28 -07:00
Dustin Carlino
d050c885c8 Brand the bike tool -- ungap the map, after all!
And print big numbers consistently for mode shift
2021-10-11 20:44:22 -07:00
Michael Kirk
56323116e1 Don't show details widget until 2+ waypoints
Otherwise there's no route, also this helps focus on the "add waypoint"
instructions.
2021-10-11 19:42:03 -07:00
Michael Kirk
f1f895eab2 Remember "current trip" when switching tabs 2021-10-11 19:42:03 -07:00
Michael Kirk
56c5bf31bd autosave trips 2021-10-11 19:42:03 -07:00
Dustin Carlino
5f83f5b46b Include my own Seattle bike network vision as a built-in proposal. #743
To avoid needing 3 copies of the proposal for different splits of the
map, make loading edits "permissive" (filtering out unknown roads) when
loading from proposals.
2021-10-11 17:34:14 -07:00
Michael Kirk
5e592447b7 organize trip controls vs. route controls
The file mgmt and waypoints are part of the "trip"

The toggles and details are part of the route. I considered combining
the toggle section into the "route details" section but... decided
against it to delineate "input" from "output". I could be persuaded to
keep iterating on this...
2021-10-11 16:03:05 -07:00
Michael Kirk
738c4ab865 clean up set_hovering tooltip style 2021-10-11 16:03:05 -07:00
Michael Kirk
8fd63f00db what goes up must come down
Showing both the change in climb and then change in descent is
redundant, since they'll always be equal given the same start/end.
2021-10-11 16:03:05 -07:00
Dustin Carlino
915b902c9a
Warn the user before doing expensive mode shift calculations. #448 (#774) 2021-10-11 15:10:28 -07:00
Dustin Carlino
112848f23b
Some quick last UX fixes to the bike tool: #743 (#773)
- after adding lanes, stay on the quick sketch page
- be clear people are uploading proposals in the public domain
- link to docs about mode shift
2021-10-11 15:06:34 -07:00
Michael Kirk
476f19142f
Consistent panel width (#772)
* reorder tabs: plan trip before adding lanes

This order of tasks should be more logical for most people.

* Copy tweaks

"trip" is better than "route" since you don't pick the route, only the
start/end points. The route is inferred based on the available roads.

* Smaller elevation plot

it was much wider than any other UI element, meaning the column
dramatically jumps sizes when switching to this tab.

* better align line-plot x-axis

* Avoid jittering UI while switching through tabs.

* fixup! Avoid jittering UI while switching through tabs.

* fixup! Copy tweaks

* fixup! reorder tabs: plan trip before adding lanes

* fixup! Copy tweaks
2021-10-11 15:02:41 -07:00
Dustin Carlino
be9ba5a80e Clean up the absurd number of Seattle maps. Ideally we'd have some way
to further organize them by purpose, but for the moment, two problems:

1) the city picker UI is getting way too crowded
2) on native, the initial download is up to 145MB

Removing:

- the 3 Aurora maps and Green Lake, added for the ARC workshop, but no
  longer the most active of collaborations
- Ballard is now subsumed by central Seattle -- the only advantage would
  be keeping its full scenario of walking and transit trips, but the
  simulation is horribly gridlocked there anyway
- the Rainier Valley map, originally meant for an SNG traffic light
  timing study
- the larger udistrict map
2021-10-11 14:37:59 -07:00
Dustin Carlino
755e723251 Get some different boundaries set up in Seattle, to support the bike
network tool reasonably on the web. #743, #746

I'm declaring the budget to be 20MB gzipped map files.

- north and south seattle boundaries extended a bit
- central seattle added
- stripping out unused pathfinding data for walking and transit to
  squeeze down the size. avoiding crashes for empty pathfinding -- if
  you try to simulate a minified map, most trips will just fail
2021-10-11 14:06:49 -07:00
Dustin Carlino
da195f07dd Prevent crash in quick sketch, when there's only one waypoint set and the user drags it. #743 2021-10-11 12:08:18 -07:00