phlask-map icon indicating copy to clipboard operation
phlask-map copied to clipboard

Enable contribution of temporary resources

Open inessamedi opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. Users can only contribute an indefinite resource. This can cause the map to be cluttered with resources that are no longer available and need to be manually removed.

Describe the solution you'd like Users can submit a temporary resource. This calls for the following adjustments to the current contribute resource form & map:

  • contribute resource form changes
    • A pill selector (user is asked whether or not this is a temporary resource)
    • If temporary resource is true, start date and time & end date and time inputs are shown.
    • When user clicks on the input box, a modal for selecting date and time rage is shown.
    • When user completes the inputs or clicks outside of the modal, the inputs are shown with the chosen date and time ranges.
  • map
    • temporary taps have a unique pin type on the map

Describe alternatives you've considered we considered using a separate resource type of "temporary"

Additional context Mobile temporary resource flow Desktop modal

inessamedi avatar Jan 12 '25 22:01 inessamedi

Reviewing this, I think we can maybe break this out into two stories:

  • This story, but limit it to adding the visual elements that allow submitting and displaying a temporary resource.
  • A separate data story to enable adding the necessary data properties to represent a temporary resource, and updating the site to read and write those properties.

@vontell , what do you think about that approach?

gcardonag avatar Feb 05 '25 00:02 gcardonag

@gcardonag Is this issue being worked on by anyone? I can look into trying to implement this if that's ok

mels065 avatar Nov 12 '25 01:11 mels065