Coder Social home page Coder Social logo

New Since Last Visit Indicator about wtfjht HOT 5 OPEN

mkiser avatar mkiser commented on June 9, 2024
New Since Last Visit Indicator

from wtfjht.

Comments (5)

mogigoma avatar mogigoma commented on June 9, 2024 1

Versioning seems like the wrong choice. Some sort of update display/highlight mechanism on the site would be much more accessible, especially to non-technical folks.

from wtfjht.

mkiser avatar mkiser commented on June 9, 2024

Good idea. I don't believe I can do that with Siteleaf, which is what I use to publish and update the Daily Update. Could possibly do that from the pull requests that come in, though I have no clue how you actually this.

One alternative solution: provide a new-since-last-visit indicator on the blurbs on the site. Would that solve this for you? I'll admit, looking at the git commit history to see when new stories have been added seems like a lot of work.

from wtfjht.

tswayne avatar tswayne commented on June 9, 2024

Yeah I don't think that the versioning solution is the best user experience, I suggested it because it would require no actual development (to only add version to merge commit message).

I think a new since last visit section is a good idea.

from wtfjht.

mkiser avatar mkiser commented on June 9, 2024

Updated the title of this. No clue how you execute this with a static site like Jekyll. I'm guessing some kind of cookie with a timestamp from the last visit, then badge the blurbs that were added after that timestamp using a git diff or something?

from wtfjht.

mkiser avatar mkiser commented on June 9, 2024

I think the way to handle this is to take the easiest route:

  • I'll add a modified date to the the API
  • Then poll the API every ~5min or something, checking the API for a newer modified date than the one on the site.
  • If it finds it, change the document.title (yeah?) to be something like: [favicon] (1) Day XX: XXX - What the fuck just happened today

I suppose this could get extended to the front end UI, too, with a sort of See New News button to reload the page.

Thoughts?

from wtfjht.

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.