Giter Site home page Giter Site logo

calibr's People

Contributors

deborahfitchett avatar hughbris avatar lincolnuniltl avatar marwahaha avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

calibr's Issues

Provide more language flexibility

Currently only bilingual in en and mi. Allow setting any first language and any optional subsequent translation languages.

This would make calibr a whole lot more useful.

Opening hours should be able to straddle midnight

There's no way in the load file to indicate that opening hours might not apply to the indicated calendar day. For example, the hours 10:00 to 03:00 (next day) can't be expressed.

This is apparently not so uncommon, though we won't be needing it at Lincoln.

Warn users if their CSV file dates are not correctly formatted

We've discovered that Excel helpfully reformats dates in CSV files when saving them. The workaround is to edit in a text editor or edit the xlsx file (where date formats are enforced) and export as CSV.

The reformatted dates (at least for us, may be settings dependent) contain slashes and cause the date comparison tests to fail and the records to be skipped silently. In fact, the result is that the date data is removed because the load function returns a value (empty array), so real damage is done.

It's too dangerous to attempt reformatting the dates (apologies to Postel), but simple tests like "does it follow this pattern we want" should be possible, followed by a warning to the user.

Stop pagination extending beyond limits of data

Don't provide pagination links at the boundaries of data. Though it can be funny to watch the logs and observe Googlebot traversing its way back to 1977 and beyond where there is no data, more intelligent browsers would probably not need those links, nor those in the undetermined future.

Use browser's language preferences where possible

This is a fancy nice-to-have. If we support more than one language, it would be optimal to look at the User Agent accept-language headers and see if we can accommodate those. Some thought required on the logic before commencing. Something like:

  • get the UA language preferences
  • see if they have translations here
  • yes and already in $languages: move preferred languages to top in order
  • yes and not in $languages: add supported preferences to head of list, retain current first/default
  • no: do nothing

There are more complex scenarios than that!

Add notices at head of page

Add a notice box on HTML calendar display pages (ideally could do per month as well).

Not exactly sure what the use case is, but it seems handy for conveying information the app doesn't support, for example.

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.