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

Support existing URLs #246

Open
13 of 42 tasks
ezwelty opened this issue Dec 26, 2021 · 0 comments
Open
13 of 42 tasks

Support existing URLs #246

ezwelty opened this issue Dec 26, 2021 · 0 comments
Labels
enhancement New feature request epic Very important big issue
Milestone

Comments

@ezwelty
Copy link
Collaborator

ezwelty commented Dec 26, 2021

Global URL parameters

  • locale (default: 'en') – Language for interface and type common names: If not one of the supported translations (e.g. de, el, es, fr, it, nl, pl, pt-br), default to English (en). Load the regional variant if requested and supported (e.g. 'pt-BR': pt-br), and the parent language if not (e.g. 'fr-fr': fr). Load a regional variant if the parent language is not supported (e.g. 'pt': pt-br).

Map URL parameters

Applies to any of the several URLs (see next section) that loads a view of the map.

High priority

  • x, y, z – Map longitude, latitude, and zom: Either map to @{y},{x},{z}z or rename @{y},{x},{z}z to x={x}&y={y}&z={z}
  • m (default: 'true') – Municipal tree inventories: Set settings checkbox state and map to GET api/locations?muni=.
  • f – Location types (comma-separated type ids): Set type filter state and map to GET api/locations?types=.
  • c (default: 'forager,freegan') – Location type categories (forager, freegan, grafter, honeybee): Either map to type filter based on type.categories returned by GET api/types (not yet supported) or map to GET api/locations?categories= (not yet supported)

Low priority

  • t (default: 'roadmap') – Map type ('roadmap': Google default, 'hybrid': Google satellite, 'toner-lite': Stamen toner-lite, 'OSM': OpenStreetMap default)
    • Set map type selection in settings.
    • Add missing map types (toner-lite, OSM)
  • l (default: 'false') – Location labels: Set label checkbox state

Map URLs

  • / – Redirect to /map
  • /locations – Redirect to /map
  • /home & /locations/home
    • Redirect to /map
    • Create an equivalent view for authenticated users
  • /locations/embed
    • Redirect to /map (not ideal)
    • Redirect to minimalist map view
  • /freegan & /dumpsters
    • Load with parameters c: 'freegan' or the equivalent type filter
    • Display custom modal on first load
    • Load with parameters t: 'toner-lite'
  • /grafter
    • Load with parameters c: 'grafter' or the equivalent type filter
    • Display custom modal on first load
  • /communityfruittrees – Load with parameters f: 4628, x: -99.09492, y: 38.48128, z: 5
  • /seedlibrary & /seedlibraries – Load with parameters f: 3082, x: -99.09492, y: 38.48128, z: 5

Other URLs

Not yet supported

  • /changes – Location changes : Create an equivalent view from GET api/locations/changes
  • /routes – User routes (ordered collections of locations)
    • Redirect to /map
    • Rebrand (e.g. as "favorites" or "collections") and show to authenticated user from GET user/favorites (not yet supported)
  • /routes/14 – User route
    • Redirect to /map
    • Show to authenticated user (or to all, if set to public) from GET user/favorites/{id} (not yet supported)

Already supported

@ezwelty ezwelty added enhancement New feature request P0 epic Very important big issue labels Dec 26, 2021
@Qrtn Qrtn mentioned this issue Dec 28, 2021
40 tasks
@ezwelty ezwelty added P1 and removed P0 labels Apr 24, 2022
ezwelty added a commit that referenced this issue Dec 27, 2022
- /about/project -> /about
- /about/press -> /press
- /about/share -> /sharing
- /about/data -> /data + /datasets (combines both pages)
  Deprecated alternate paths /maps and /inventories are ignored.
- /about/dataset/:id -> /imports/:id

See #246.
ezwelty added a commit that referenced this issue Dec 27, 2022
- /entry/:id -> /locations/:id
- /entry/new -> /locations/new
- /entry/edit -> /locations/edit

See #246.
ezwelty added a commit that referenced this issue Dec 27, 2022
- /account -> /users/edit
- /login -> /users/sign_in
- /signup -> /users/sign_up
- /password -> /users/password
- /password/reset -> /users/password/new
- /password/set -> /users/password/edit (API update required)
- /confirmation/new -> /users/confirmation/new
- /confirmation -> /users/confirmation (API update required)

See #246.
@ezwelty ezwelty added the P0 label Dec 28, 2022
ezwelty added a commit that referenced this issue Dec 30, 2022
See #246.

* Use about paths that match existing website

- /about/project -> /about
- /about/press -> /press
- /about/share -> /sharing
- /about/data -> /data + /datasets (combines both pages)
  Deprecated alternate paths /maps and /inventories are ignored.
- /about/dataset/:id -> /imports/:id

* Replace /entry path with existing /locations

- /entry/:id -> /locations/:id
- /entry/new -> /locations/new
- /entry/edit -> /locations/edit

* Use auth paths that match existing website

- /account -> /users/edit
- /login -> /users/sign_in
- /signup -> /users/sign_up
- /password -> /users/password
- /password/reset -> /users/password/new
- /password/set -> /users/password/edit (API update required)
- /confirmation/new -> /users/confirmation/new
- /confirmation -> /users/confirmation (API update required)

* Use /reviews to match style of other paths

- /review/:id/edit -> /reviews/:id/edit
@ezwelty ezwelty removed the P0 label Jan 10, 2023
@ezwelty ezwelty added this to the Beta release milestone Feb 3, 2023
@ezwelty ezwelty removed the P1 label Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature request epic Very important big issue
Projects
None yet
Development

No branches or pull requests

1 participant