jquery / jquery/jqueryui.com

Better demos

Open
#96 18 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
138
Forks
113
PR merge metrics
No merged PRs in 30d

Description

(ported from planning wiki)

General Ideas/Requirements

  • We need to be able to update demos independent of the code. Currently we have to make a new regular release in order to update demos on the website. That sucks. Based on that we should consider moving demos into the site repo.
  • It would be interesting to make demo code interactive. That could happen by integrating jsbin (a link that opens the demo on a new jsbin, ready to run and edit). Or we could make the source section editable, using codemirror.
  • Once we have demos that touch multiple widgets, there should be a way to filter demos to show those where a single widget is used. For example selecting "slider" and "accordion" would show only those demos that feature both those widgets.
  • Demos should be editable, avoiding the need to manually copy the code. This could be integrated with jsbin.com, where a bin is automatically created using the code of the demo.

Individual widgets

Currently our demos mostly consist of show casing each individual option. That should be part of the API documentation (if necessary at all), while demo show actual examples - something a developer would use in a site or application.

Kendo UI does a pretty good job with their demos, we should take some inspiration there.

Composite demos

We need a few composite demos, that show a combination of widgets in a real-world scenario.

Scenarios include:

  • Booking a flight online would be a great demo for jQuery UI, featuring both autocomplete (eventually selectmenu) and datepicker at their best.
    • A good reference: https://wizzair.com/en-GB/Search - note how it assumes One Way until you choose a return date, with a customized jQuery UI datepicker pointing that out.
  • [others]

Composite Demo Sample:

jsbin.com integration

Mentioned above already, here's some more details:

  • When jqueryui.com is deployed, it would create bins for all demos, preferably using an official API (not available, yet)
  • Each demo then has a link to jsbin, something like a "Edit on jsbin" button, that opens the already existing bin.
  • Once the user starts editing that bin, a unique clone is created, so that they have their own copy.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or implementation entry points are named. Start by breaking the planning requirements into separately scoped work for demo updates, interactive editing, widget filtering, composite demos, and jsbin integration; done requires an agreed scope and acceptance criteria for one of these areas.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, javascript, jquery
Domain
content, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.