Page MenuHomePhabricator

JavaScript development in the Wikimedia Page Library
Closed, ResolvedPublic

Description

This session will introduce attendees to the Wikimedia Page Library and how to develop JavaScript for changing content presentation in shared code between Android and iOS native apps. Note: the Page Library is not part of core MediaWiki and is currently used only by the Android and iOS native apps and slated for the upcoming Page Content Service.

Audience

  • Beginner or intermediate JavaScript developers
  • People interested in JavaScript, HTML, and CSS and transforming wiki content for different presentations
  • (To a lesser extent) native app and service developers interested in sharing code via a JavaScript library

Topics

Based on interest, the possible directions for this session include:

  • Development, iteration, and writing transform unit tests in the Page Library
  • Help us add data typing to the Page Library with TypeScript
  • (Very briefly) library integration and workflows with Android (and possibly) iOS apps
  • Fix bugs in the library and upstream templates as identified by select tasks: T188096, T179128, T179090, T183333

Owner: @Niedzielski
Possible co-owner: @Mhurd (pending travel concerns)

Event Timeline

I'd welcome explicit mentioning that this is only relevant when developing mobile applications, in contrast to e.g. local gadgets. If I understand correctly.

@Niedzielski Is this a session or a project? If not a project, then I would move it to a different column. Thanks!

@srishakatux, hello and sorry for the late reply! I could be confused by the distinction but I believe this should be a project since the intent is to make the listed improvements to the library and share development skills and workflows with interested attendees.

There are patches out for the tasks mentioned in the description, including a number of bonus fixes, and we fixed some issues in the templates themselves too. The patches are still pending review by @Mhurd:

https://github.com/wikimedia/wikimedia-page-library/pull/141
https://github.com/wikimedia/wikimedia-page-library/pull/142
https://github.com/wikimedia/wikimedia-page-library/pull/143

I could no longer reproduce T179090 so I closed that out directly.

We also had discussions on better typing our JavaScript with JSDocs and TypeScript, and the reference collection PR. @Mhurd will review and merge the pending PR.