dataliterate / data-populator

A plugin for Sketch and Adobe XD to populate your design mockups with meaningful data. Goodbye Lorem Ipsum. Hello JSON.
MIT License
1.67k stars 113 forks source link

Feature request- Auto populate option #252

Open GodDevs opened 3 years ago

GodDevs commented 3 years ago

Which version of the plugin are you using? [X] Data Populator for Sketch [✓] Data Populator for Adobe XD

Is your feature request related to a problem? Please describe. I am retriving data from a remote json but the data is not auto populating. It would be helpful if it auto populates. As the remote json regularly updates itself.

Describe the solution you'd like It would be helpful if the data auto updates itself from the remote json rather than clicking populate button to update it again and again.

Describe alternatives you've considered Addition of the feature of auto populate

nitrada commented 3 years ago

@GodDevs i understand what you want to achieve, but not why. can you explain a bit more detailed?

GodDevs commented 3 years ago

@nitrada The remote api which is being used in my project updates regularly. So after hosting the website its not possible to update the data and again host the website. So it would be helpful if you remove the populate button or, after adding the {placeholder template} the data should automatically come in the placeholder just like the preview below the placeholder title. It that way the data will be fetched from the api everytime the website opens and placeholder will always be updated.

nitrada commented 3 years ago

what kind of data request triggers would you expect then for auto populate – on opening the document? time-based?

data populator is not really capable of "listening" to changes in the data coming from the API as we're using the REST paradigm (client requests, server responds). it sounds a bit as if you're wishing for something like "streaming data" via eg websocket, but that's a whole different chapter and currently not planned 😄