Open eroux opened 2 months ago
@eroux @berger-n There was no actual decision about this section but I like the vertical format more than a horizontal carousel. Also I like the idea of just showing the latest additions, regardless when they were made.
To do this really well, we would add in each result
that's a good idea! It seems this function can do that, it even has some internationalization... likely not in Tibetan though :( https://date-fns.org/v4.1.0/docs/formatDistance let's start with English, I'll ask NT how we could proceed with adding Tibetan
thanks for the tip @eroux! seems to work well (at least in English and Chinese): https://library-dev.bdrc.io/tradition/bo/
by default it shows last month, we could add like a Range dropdown with last week / month / year, just below Clear All Filters, I guess? something simpler than going all the way down to the date selector
Clear filters also clears the date range now (intended behaviour in the general case, though here it could revert back to last month, wdyt @roopeux?)
oh and what about the Tibetan Tradition itself, how do you think we can restrict these results to the relevant ones?
https://github.com/user-attachments/assets/f86aff4e-489c-44a2-8647-f16eaa82c137
Ah this is great, thanks! I think we don't really have to put a restriction, it could just show everything... or maybe only the last year or couple of years... what do you think @roopeux ?
To filter on Tibetan the best is to filter on the script (ScriptTibt, ScriptDbuCan, ScriptDbuMed, not sure about the spelling of the last two), or just filtering out the FPL and Khmer collections
I second @eroux, it should just show the last scans with no specific time limit.
@berger-n , Let's keep the title "Recent Acquisitions" and leave others out. I am afraid it is becoming visually busier than a normal recommendation engine.
Can you integrate a special case of "Added today", "Added 6 days ago", as I wrote above, in the search results. My mockup above is not the design! :). Please design yourself using a visible element from our existing styles, probably in red. Maybe replace the "dbg" tag.
ok thanks! is it better like this (you might have to hard refresh the page to force using the latest styles? see for example the difference in font size&case between your screenshot and mine in the previous posts): https://library-dev.bdrc.io/tradition/bo
At the bottom of the Tradition pages (or maybe on the home page too?) there's a latest sync part that I think we could fill with the results of
https://library-dev.bdrc.io/osearch/search?sortBy=firstScanSyncDate_desc
This issue is just to keep track of the discussion which I think happened somewhere else but we can't find it anymore... @roopeux do you remember what the decision on this was?