Page MenuHomePhabricator

Consolidate references / citations
Closed, ResolvedPublic2 Estimated Story Points

Description

apps-android-wikipedia/www/js/transforms/hideRefs.js
apps-android-wikipedia/www/js/action.js
wikipedia-ios/www/js/refs.js
this has a lot of overlap with collapse table

Try to focus on the iOS implementation which has more recent fixes and enhanced capabilities. This task may also be able to leverage the CollapseTable transform.

Event Timeline

Need to chat about this a bit before we go further.

Questions:

  • How does new references endpoint factor into this?
  • Should we wait until we use new article content service (which presumable doesn't transfer reference html) and hit the references endpoint lazily the first time a user taps a ref? We'd probably want to store refs so we only have to fetch once - would probably have to update from references endpoint if we update article in data store so they'd remain in sync.

@JMinor I moved this to Needs Engineering Sync per our chat.

@Charlotte sorry i missed your message above! i did some work consolidating iOS/Android reference JS ( https://github.com/wikimedia/wikimedia-page-library/pull/140 ), so we can close this ticket. once we switch over to the new article PCS i think we'll need to get ref info from the refs endpoint, but that's separate from this task,