Skip to content

Instantly share code, notes, and snippets.

View catrope's full-sized avatar

Roan Kattouw catrope

  • Wikimedia Foundation
  • San Francisco, CA
View GitHub Profile
Echo (wmf22)
b410f76 Document Event methods that can return null
5d772ad Expose the revid of the event revision in the API
86da832 Require a Language object in DiscussionParser::getTextSnippet()
1ac72cc Split alerts and messages in Echo
35c4a37 Use db-replicated objectcache for storing last seen time
f6a12f1 Correct 'primaryLink' to 'primaryUrl' everywhere
e650df6 Separate 'seen time' for alerts and messages
59efdc5 build: Bump grunt-contrib-jshint from 0.11.2 to 0.11.3 to fix upstream issue
@catrope
catrope / gist:8e5a193f6df8617847eb
Created September 14, 2015 17:04
wmf22..(wmf23)
Echo
2ec0cca The return of the 'mark all as read' button
7310a6b Show unread notifications first in the popup
73e3ed3 Add a tooltip to the notification badges
aae891d Use #pt-notifications-alert to get Special:Notifications link
b6712be Reduce distance between notification badges
71999b2 Only show 'mark all as read' AFTER there are notifications
a3e5dd4 Add mediawiki.jqueryMsg dependency
a37e764 Align popup footer buttons to take 50% width each
Flow
48784a9 Eliminate two API requests for board description fixed-html on load
98d4e25 Reduce font size and vertical padding of topic header
d04ba54 Fix positioning of resolved check icon in RTL
15b5758 Use the VirtualRESTService to configure Flow
041b733 Add namespace for Arabic
2af44bb Edit post widget
b06fa4a Browser tests: fix typo in step usage
8dda456 Use addJsConfigVars() instead of makeInlineScript() for JSON blob
Flow
29109cf Use $wgNamespaceContentModels instead of $wgFlowOccupyNamespaces
f07c6ba Segregate Reference objects by source wiki.
b8bdd05 Use placeholder HTML rather than rendering the board in getParserOutput
7478def Browser tests: handle empty board description
8948c74 Create all templates Flow uses
c2ae3c7f Browser tests: various fixes for firefox
e520cc4 Fix typo in sql patch
42968f8 Populate the Description data model even if content is empty
Flow
4120605 Allow for expanding/collapsing single topic view
d9e250d Eliminate some memory leaks affecting LQT->Flow:
efc4b23 Changed compare revisions header message
9645641 Adjust for breaking change in VE: extend sa.DesktopTarget instead of sa.Target
30b430a Increase footer spacing in description
4458889 Create an OOUI editor widget
53e5866 Output the board description as an ooui widget
e36288a Create a reply widget with the new editor
Flow
988b9e6 Standardize modified/updated terminology.
d79d424 Add date line and copyright message to header
ec5e4c5 Browser test fixes
7bf7a93 Added BagOStuff READ_LATEST flag for replicated stores
4861b17 Use correct wrapping for the JSON blob inline script
3381112 Fix parameter order for setModerated()
5094c41 Fix undo pages
dc4eb5b Follow up ConfirmEdit change of SimpleCaptcha::getForm()
Flow
841e544 Follow-up cf3e8e5aee: fix styling of auto-numbered external links
d1ecb53 Add "inital" to typos file
7241018 Don't add trailing newline when switching from VE to wikitext
4b3db24 Attach VE toolbar after VE debug bar, if there is one
624a234 Allow 0's {{useliquidthreads:01}} when handling magic word.
5c84c34 Clean up 'Flow talk page manager' related code
2ae0ad1 Flagging and filtering "new pages"
74db9c1 Update tests to reflect trailing newline being stripped from Parsoid output
// BEFORE
mw.flow.ui.EditorSwitcherWidget.prototype.switchEditor = function ( name ) {
var widget = this;
return this.convertContent( ... )
.then( function ( newContent ) {
return newEditor.setup( newContent );
} )
.then( function () {
...
} )
Flow
c3cc96f Adjust for core's new Block constructor
2208254 Make FlowUpdateWorkflowPageId a run-once updatescript
43f89be Add option to conversion script to skip pages with a certain template
e89fddc Run pre-save transform on wikitext before saving it
0ec618c Replace wikiglyph icons in side rail with OOUI (really mw-ui) icons
c472b0a Replace wikiglyph-star-list icon with watchlist icon from OOUI (via mw-ui-icon)
a1d3415 Make PostRevisionTestCase store all objects
b5644a7 Fix TalkpageImportOperationTest
# Execute this in the root of the ve repo
# Find and replace script symbols
find . -name \*.js -exec sed -i \
-e 's/ContextMenuWidget/ContextSelectWidget/g' \
-e 's/ContextItemWidget/ContextOptionWidget/g' \
-e 's/TextInputMenuWidget/TextInputMenuSelectWidget/g' \
-e 's/MenuWidget/MenuSelectWidget/g' \
-e 's/MenuItemWidget/MenuOptionWidget/g' \
-e 's/MenuSectionItemWidget/MenuSectionOptionWidget/g' \