RENCI / APSViz-UI-V3

The APSViz UI, version 3
0 stars 0 forks source link

Capture/display a share comment. #105

Closed PhillipsOwen closed 2 weeks ago

PhillipsOwen commented 3 weeks ago

Adds a dialog to capture a share comment. also added a control to the layers tray that shows the comment.

This update requires at least 2 steps to test.

Creation of the share link

  1. open the app.
  2. select one or more observations
  3. hit the share button
  4. in the dialog that appears put in a comment
  5. then hit the create button.
  6. this will have placed a URL in your cut/paste buffer. which you will use for...

Loading the share link

  1. paste the url into your browser
  2. behold the recreation of your share. including...
    • your comment appearing in the "layers" tray.
    • any observation dialogs recreated. if you chose >1 you will have to move them because they will overlap.

Here is an example share URL:

http://localhost:8080/#share=run_id:4378-2024041512-gfsforecast~comment=Look%20at%20these%20obs%20from%20the%2015th!~obs=%5B%7B%22id%22:%228454049%22,%22lat%22:41.58694,%22lng%22:-71.41,%22location_name%22:%22Quonset%20Point%22,%22station_name%22:%228454049%22,%22csvurl%22:%22https://apsviz-ui-data.apps.renci.org/get_station_data?station_name=8454049&time_mark=2024-04-17T12:00:00Z&data_source=GFSFORECAST_NCSC_SAB_V1.23&instance_name=ncsc123_gfs_sb55.01&forcing_metclass=synoptic%22%7D,%7B%22id%22:%228518750%22,%22lat%22:40.700556,%22lng%22:-74.014167,%22location_name%22:%22The%20Battery%22,%22station_name%22:%228518750%22,%22csvurl%22:%22https://apsviz-ui-data.apps.renci.org/get_station_data?station_name=8518750&time_mark=2024-04-17T12:00:00Z&data_source=GFSFORECAST_NCSC_SAB_V1.23&instance_name=ncsc123_gfs_sb55.01&forcing_metclass=synoptic%22%7D%5D

if this PR is satisfactory, please merge and remove the branch upon approval.

PhillipsOwen commented 3 weeks ago

nevermind. going to add observations to this branch.