Giter Site home page Giter Site logo

Comments (4)

LiorKovalio avatar LiorKovalio commented on September 22, 2024

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 "מקור המידע" , "מידע כללי", "מיפויים" ?

from datacity-mapali.

akariv avatar akariv commented on September 22, 2024

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.

from datacity-mapali.

akariv avatar akariv commented on September 22, 2024

Also sorry for the long response time 😞

from datacity-mapali.

LiorKovalio avatar LiorKovalio commented on September 22, 2024

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.

from datacity-mapali.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.