Ed Sanders
2960853088
Move subscribe button up on desktop
...
Bug: T312674
Change-Id: I419883b5f9a4291b4bf575d57195d553fd5e291e
2022-07-27 13:55:03 +01:00
jenkins-bot
61f76003d1
Merge "Show empty state on mobile when there is only non-discussion content"
2022-07-26 13:24:29 +00:00
Ed Sanders
1d1df63cab
Show empty state on mobile when there is only non-discussion content
...
Bug: T313801
Change-Id: I4e9910ef7d63c6ce330da1a896f518a9a22a12cd
2022-07-26 13:52:22 +01:00
Bartosz Dziewoński
e7bbc9864c
ReplyWidget: Scroll save error into view after showing it
...
Bug: T298263
Change-Id: Ibe488bf9184dc9d9c3c8b2c3491c0baf6676ba16
2022-07-25 18:16:13 +02:00
Bartosz Dziewoński
dc342291b5
highlighter: Fix exception when trying to highlight an unknown comment
...
If some content is loaded without re-initializing DiscussionTools
(this currently happens on live preview), then a link to a comment is
clicked, we will not find the comment, which previously caused an
exception. Just ignore this, other code paths in highlighter already
handled this situation in this way.
Bug: T309423
Change-Id: Ie46fd782b8a45907dc6fc604691575c4b55d08ce
2022-07-22 17:47:09 +02:00
jenkins-bot
6e57e3ba78
Merge "Show a "Return to reply/new topic" button when widget is scrolled off the screen"
2022-07-18 16:09:54 +00:00
Ed Sanders
2c2e57fd47
Show a "Return to reply/new topic" button when widget is scrolled off the screen
...
Bug: T310967
Change-Id: I3d1626162eb5c66ac35560792a81ce09455e86a8
2022-07-18 13:20:12 +01:00
Bartosz Dziewoński
2d3b497a21
Avoid localized digits in internal timestamps in JS
...
Unlike PHP DateTime, and unlike the .toISOString() method,
the Moment.js .format() method will output localized digits.
Bug: T312828
Change-Id: I49a250b1ad74d9395bf3f994379613cc121b5be4
2022-07-13 02:33:24 +02:00
Bartosz Dziewoński
f51d26fd3a
Parse 'DiscussionToolsTimestampFormatSwitchTime' config value as UTC
...
When the input to moment() doesn't define a timezone, it
defaults to the local timezone (as defined on the device,
not in user preferences).
Bug: T312828
Change-Id: I8d2e1c2f6feb5584af4bbf9fef39567eb87780ff
2022-07-12 14:10:09 +02:00
Bartosz Dziewoński
2bc76dabd7
Enable transformations in preview mode
...
We remove the [reply] and [subscribe] links when they should not be
visible (controlled by 'enableSectionEditLinks' option, which is
disabled when previewing).
Bug: T309423
Change-Id: Ie0d3fba2c4d166daac3ea2e117a246c9584284ca
2022-07-07 23:37:56 +01:00
jenkins-bot
caefb1ae39
Merge "Show new topic tool empty state on existing pages with no topics too"
2022-07-07 21:52:36 +00:00
Bartosz Dziewoński
a98cd369ba
Show new topic tool empty state on existing pages with no topics too
...
Bug: T312599
Change-Id: I316d2f119b9c899ffaeebc7ec288823c826db092
2022-07-07 21:45:44 +00:00
jenkins-bot
3bb23f30f8
Merge "Remove some unused or redundant styles"
2022-07-07 20:50:17 +00:00
jenkins-bot
1e479288be
Merge "Prevent the "Subscribe" button focus outline from being cut off"
2022-07-07 20:50:15 +00:00
jenkins-bot
31c35992f4
Merge "CommentController: Scroll before focusing in showAndFocus"
2022-07-07 20:26:23 +00:00
Ed Sanders
d367b1fc50
ReplyWidget: CSS tweaks for monobook
...
Use 12.8px for interface, and 12.7px for content.
Move mode tabs away from the reply body so the underline can be seen.
Change-Id: I9cb9a611ca64595152f800e1e15b640402f6cb74
2022-07-07 16:24:49 +01:00
Ed Sanders
9f670d0ee0
ReplyWidget: Don't add border-radius when hovering mode tab
...
Change-Id: Ied05b70119ea724c126e88d30aa62e0f7526ba12
2022-07-07 16:24:06 +01:00
Ed Sanders
2a31eed846
CommentController: Scroll before focusing in showAndFocus
...
This removes the need for a setTimeout before scrolling.
Change-Id: I1c47d5635f66ed523b492c384464e2e6accabf01
2022-07-07 13:43:16 +01:00
Esanders
d6a8c75899
Hide the lede section on mobile when DiscussionTools is enabled (2nd attempt)
...
Previously this was reverted in I28a5c774f5f after the initial
commit I3736b488046 caused T312177.
Bug: T311760
Change-Id: Iba65615378b183f0c970afff565f45cc878f1d71
2022-07-06 16:03:27 +01:00
Ed Sanders
72bb4aed13
Revert "Hide the lede section on mobile when DiscussionTools is enabled"
...
This reverts commit 69bfc6d6a2
.
Reason for revert: Caused T312177
Bug: T312177
Change-Id: I28a5c774f5f9d0391a8addf5b31b9c229fb40948
2022-07-06 00:31:54 +01:00
Bartosz Dziewoński
5c3277a196
Format number of comments in reply tool new comment warning
...
Bug: T312033
Change-Id: If8e95b9554eddec2f00c492885575266b02cc1af
2022-07-04 17:57:41 +02:00
jenkins-bot
00d63026a3
Merge "Halve the initial height of the reply widget on mobile"
2022-07-01 22:20:06 +00:00
jenkins-bot
4ed36bc03b
Merge "Reply widget mobile: Reduce space between footer and footer-links"
2022-07-01 22:19:25 +00:00
jenkins-bot
8a0703f29d
Merge "Reply widget mobile: Move reply/cancel buttons up into empty space of "advanced" bar"
2022-07-01 22:19:22 +00:00
jenkins-bot
11961a85a7
Merge "Reply widget: Simplify LESS expression"
2022-07-01 22:12:40 +00:00
Ed Sanders
9d9dc7f26a
Halve the initial height of the reply widget on mobile
...
Vertical space is at a premium on mobile with the virtual keyboard.
The widget will auto-size when more text is entered.
Bug: T311836
Change-Id: I03ff7217f9ffe217f93a3dc95db2df018bd0d221
2022-07-01 15:05:00 +01:00
Ed Sanders
172960f887
Reply widget mobile: Reduce space between footer and footer-links
...
Bug: T311836
Change-Id: I6275ff67a909125398872e2f691e5b62d165d546
2022-07-01 15:05:00 +01:00
Ed Sanders
5014aa3c50
Reply widget mobile: Move reply/cancel buttons up into empty space of "advanced" bar
...
This reduces the overall vertical height of the tool
Bug: T311836
Change-Id: I095bff00686a54779d45efa73c3f8b74ba016702
2022-07-01 15:04:58 +01:00
Ed Sanders
1ad01e661a
Reply widget: Simplify LESS expression
...
Change-Id: I1d00c81377cfe83167384c83d3abd3f1bcdc2497
2022-07-01 13:38:01 +01:00
Ed Sanders
98b5371a8c
Have "Read as wiki page" link remove all DT content changes
...
As well as visual enhancements:
* Reply links
* Mobile lede section hiding
Change-Id: I14d591830620edf8bbaccb76b4bce0e87971d7c3
2022-06-30 23:02:50 +01:00
Ed Sanders
69bfc6d6a2
Hide the lede section on mobile when DiscussionTools is enabled
...
Bug: T311760
Change-Id: I3736b4880465359bcae9b903eecc57f1cd7674ef
2022-06-30 23:02:50 +01:00
Ed Sanders
ae3be4aaf5
Always hide overflow menu when topic containers disabled
...
Change-Id: I05fbaa89992cfec8db50407f74061da7d1aabe2d
2022-06-30 23:02:50 +01:00
Bartosz Dziewoński
b7d65bcaa7
Remove some unused or redundant styles
...
All of these either do nothing, or cancel out with other styles.
Change-Id: Ic2372bdc74efea288b4b906d16a6d17c86c217c4
2022-06-30 02:32:48 +02:00
Bartosz Dziewoński
6042778678
Prevent the "Subscribe" button focus outline from being cut off
...
We tried to align the buttons with the far edge of the page, but due
to skin styles setting `overflow: hidden` on the content, this is not
possible without causing the focus outline to be cut off.
Bug: T311662
Change-Id: Ie7c10c7564450c06231632892341c7fb232e7041
2022-06-30 02:32:48 +02:00
Bartosz Dziewoński
aedb682e06
Use interface language direction for topic metadata wrapper
...
Bug: T305286
Bug: T311663
Change-Id: I31d9f7997c8894c344548636eea6c9a823698269
2022-06-30 02:32:48 +02:00
Bartosz Dziewoński
e48f34e558
New topic hint: Avoid error about section editing when opened from diff
...
Bug: T311665
Change-Id: I22120a4d4dbe9ff6b9a285932ee9656bdfa0de09
2022-06-29 21:42:52 +02:00
jenkins-bot
9a531f1c68
Merge "Set height of ellipsis button to fix MenuWidget position"
2022-06-29 15:00:49 +00:00
jenkins-bot
a78cacc618
Merge "Mobile topic containers: Fix right alignment of ellipsis button"
2022-06-29 14:27:32 +00:00
jenkins-bot
45e7c01b62
Merge "New topic hint: Cleanup CSS"
2022-06-29 14:23:37 +00:00
jenkins-bot
c44da3739d
Merge "New topic hint: Add clear:both"
2022-06-29 14:22:49 +00:00
Ed Sanders
12dae82c70
Set height of ellipsis button to fix MenuWidget position
...
Bug: T311558
Change-Id: I6dedf488ec19cef02949f65a5b92e38f4e4c5f85
2022-06-29 12:28:01 +01:00
Ed Sanders
26cdf6789d
Mobile topic containers: Fix right alignment of ellipsis button
...
The icon element should be aligned with the right side
of the content area, like the expand/collapse button, and
the edit pencil in the main namespace.
Change-Id: I191a5984bafc6a478674dd5dccff0594a743ff18
2022-06-29 12:22:53 +01:00
Ed Sanders
ff97a06522
New topic hint: Cleanup CSS
...
* Use sibling selector instead of negative margin to reduce
space between hint and reply widget.
* Remove upstreamed right-padding for close button.
Change-Id: Ie51cd2208c2bebcbfeff08c249389085523193f0
2022-06-29 11:58:51 +01:00
Ed Sanders
90b2222341
New topic hint: Add clear:both
...
Bug: T311597
Change-Id: Id7e545b0c18fdd407cb096e3cc3d51415be9839c
2022-06-29 11:58:44 +01:00
Ed Sanders
56989d18a3
Fix hiding of topic container top-border when mw:tocplace present
...
Change-Id: I382cfeb10c7f8407b559526b0ca06e0dcddd2191
2022-06-28 15:18:13 +01:00
jenkins-bot
cd86854235
Merge "Pass useskin/mobileformat when previewing/refreshing page contents"
2022-06-27 21:57:02 +00:00
Ed Sanders
d00fa80ff4
Use $.html to refresh page after save
...
As per If549a0e647ce8.
Change-Id: I6afdc4a80615617678d2d31c2c9e5830b07a6ef0
2022-06-27 17:34:32 +01:00
Ed Sanders
639fabf647
Pass useskin/mobileformat when previewing/refreshing page contents
...
These are required to render content correctly on mobile.
Change-Id: I421e1f172e208c4bf9d50eee68f1b0220a78dfbe
2022-06-27 17:15:28 +01:00
Ed Sanders
7fc5a0c29d
Topic containers: Design iterations
...
Bug: T310914
Change-Id: I9000f9902d612c58c6b3bc8b762232ca6dd9724f
2022-06-25 12:54:39 +00:00
Bartosz Dziewoński
109a50cb34
Truncate timestamps in comment IDs / names
...
For comments posted on or after 2022-07-12 (configurable), use a
shorter format, identical to the timestamps MediaWiki uses in URLs.
Changing the format for already existing comments would involve
difficult migrations, therefore we elect not to do it.
Bug: T304595
Change-Id: I387051a6a3a1d84cfae45c3e1516db870cc8b977
2022-06-24 00:49:58 +02:00