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

פיבלוש מפה - חלון חדש #18

Open
emrib opened this issue Dec 15, 2022 · 4 comments
Open

פיבלוש מפה - חלון חדש #18

emrib opened this issue Dec 15, 2022 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@emrib
Copy link

emrib commented Dec 15, 2022

אחרי שמפבלשים את המפה היא נוצרת באותו חלון בדפדפן. פתיחה בחלון חדש תאפשר לעשות שינויים קטנים שלא עלו עליהם בתצוגה במקדימה ולפבלש שוב.

@akariv akariv added the help wanted Extra attention is needed label Jan 23, 2023
@LiorKovalio
Copy link

I would like to help with this issue.

The naive solution is simple, refactoring map on status done with

-        this.router.navigate(['/m', this.lastId]);
+        const url = this.router.serializeUrl(this.router.createUrlTree(['/m', this.lastId]));
+        window.open(url, '_blank');

yet there are issues:

  • This requires the user to allow for popup - is it acceptable?
  • How should the original window function? The map should go back to status "ready"? The drawer should go back to "not processing", showing "מקור המידע" , "מידע כללי", "מיפויים" ?

@akariv
Copy link
Member

akariv commented Apr 7, 2023

Yes, requiring the user to allow pop-ups is not really a good solution.

I think for this to work we would have to show the user a message, saying "your map is ready", and then open it in a new tab using a regular link with target=blank.

@akariv
Copy link
Member

akariv commented Apr 7, 2023

Also sorry for the long response time 😞

@LiorKovalio
Copy link

Thanks for the response.

I've forked my suggestion here .

  • Clicking the "looking good" button starts the processing (as it was), then it changes to 2 buttons, one for review (link with _blank) and the other for the routing (as it used to be) .
    image

  • Changing the data and metadata after "looking good" was clicked didn't work well, as the datapackage wasn't updating. I suspect some caching issue, which is strange because it does work before clicking "looking good" - in any case, salting the get request fixed it.

  • I don't like how the components disappear and reappear while processing. If this solution is fine, I would like to change the components to gray-out instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants