Coder Social home page Coder Social logo

Page reading history about qawl HOT 6 OPEN

sufone avatar sufone commented on June 2, 2024
Page reading history

from qawl.

Comments (6)

mr-islam avatar mr-islam commented on June 2, 2024

a derived store can't be used like this, so should use a custom method for setting inputPage which sets the current value as another store value previousPage

this previousPage can be used to set inputPage when this feature (go to last page) is used

from qawl.

mr-islam avatar mr-islam commented on June 2, 2024

Should've spent more time reading the docs properly before fooling around…

image

from qawl.

mr-islam avatar mr-islam commented on June 2, 2024

Don't know what I was thinking before, this feature is way more complicated than I imagined, or what I remembered from the previous version of Qawl:

It basically needs to be manually crafted into all the other navigation methods (except simple page flips, because that's redundant), saving the previous used value to a store before any new value is set:

  • Slider
  • Direct page input
  • Surah dropdown

Manually building this separate feature (quick return) into every other method of navigation feels like bad practice, that there should be a simple method for a custom store that sets this other previousPage store

Typing it out makes it seem very good, so I'll try out a custom store… if that fails, I'll manually code it in like I did for the old Qawl

from qawl.

mr-islam avatar mr-islam commented on June 2, 2024

Doing it the store way is honestly beyond me, sadly… I looked at the docs and some libraries and demos (this one stands out), but I don't think I have the time to learn all that and try. Simple stuff wins :P

from qawl.

mr-islam avatar mr-islam commented on June 2, 2024

As discussed in #65, instead of a binary jump between the current and previous read page, providing a full reading history (or at least a sane limit like 10) will give users a much better experience. Maybe some part of that shortcut can take users directly to the previous page too

Should be easier to think about and implement this feature now too

from qawl.

mr-islam avatar mr-islam commented on June 2, 2024

Can integrate the history with the desktop icon shortcut (as in, right click on windows taskbar icon and see direct actions in the app). But can that be set dynamically (as in not during build)?

from qawl.

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.