aboutsummaryrefslogtreecommitdiffstats
path: root/resources/src/mediawiki.tempUserBanner
Commit message (Collapse)AuthorAgeFilesLines
* eslint: Autofix var to let/constEd Sanders2024-09-121-12/+12
| | | | | | | Temporarily disable no-var & prefer-const as resulting errors need to be fixed manually. Change-Id: I6cb62a2c70a4c1fc265a00b1f18af127ac9d5029
* Use notification for first-time "Temporary account" messageBartosz DziewoƄski2024-06-181-5/+0
| | | | | | | We already used it on some skins, now we will use it on all skins. Bug: T344934 Change-Id: I50837d7833e554f5f95e81afef5a7d318e8a7fb8
* build: Update stylelint-config-wikimedia to 0.17.2Ed Sanders2024-06-131-0/+4
| | | | Change-Id: I8d68bcae416463ceec6d7b617e38d34c57360698
* ESLint: Enforce prefer-arrow-callback and autofixEd Sanders2024-06-111-3/+3
| | | | Change-Id: Iddfa574e42e569ac5e2a2b098ad2f11ca80c5955
* mediawiki.tempUserBanner: Use codex-styles, not deprecated codex-search-stylesJames D. Forrester2024-05-051-1/+1
| | | | | | | | Given the whole of OOUI is already shipped, this isn't a great increase, and it's dynamic anyway. Bug: T356676 Change-Id: I76951dd5a3b2a2a1bf43859a7af713177dacaa3c
* Add a line after JSDoc block descriptionsKolawole2024-05-041-0/+1
| | | | | Bug: T364193 Change-Id: Ide953babcbfc4b309a59c88b371f5b10369e2b72
* Documentation: Add documentation for temporary user codeJon Robson2024-02-051-0/+7
| | | | | Bug: T352308 Change-Id: Ifaf73761a8409be063f8c4659719fd3def7ea340
* Documentation: Move to exclude listJon Robson2024-01-161-0/+1
| | | | | | | | | * Generate documentation for all files in resources/src * Include all files documented in phase 3 as not having public APIs. Add @ignore tag to documentation that shows up in published document. Bug: T352308 Change-Id: I5d643d815ffa2f578d12bb9ca70e26558a442c32
* IP masking: notify users whose account expires soonSergio Gimeno2023-11-281-28/+125
| | | | | | | | | | | | | | | | | | Why: To inform temporary users about their account expiring 10 days before it is effectively expired. What: - Add optional int `notifyBeforeExpirationDays` to $wgAutoCreateTempUser, for setting how many days before account expiration should users be notified - Add AutoCreateTempUser config to the tempUserBanner script to use config values for the popup alerting text logic - Set the popup default state to open when temp user needs to be notified - Disable the auto-close option for the popup so users need to explictly dismiss it. Bug: T344694 Change-Id: I530e911733c9822d6308ce92fafd425e50942d43
* tempUserBanner: Use !$element.length instead of !$elementFomafix2023-08-181-3/+4
| | | | | | | | | | !$element is always falsey, even on an empty jQuery object. Use !$element.length to check for an empty jQuery object. Also use shortcut mw.msg( ... ) instead of mw.message( ... ).text() and close multiline blocks at the same indenting level. Change-Id: I0ad6d86b1431000557e36183206c2fd36cde94b4
* Specify dependency for mediawiki.tempUserBanner moduleThalia2023-08-171-1/+0
| | | | | Bug: T344251 Change-Id: I7befd431d7641328e4b314335aa8753518057628
* Avoid showing userpage link for temp accountsbwang2023-08-101-0/+5
| | | | | Bug: T340152 Change-Id: Ic99c9cf2c8e7ea9a6520b4c9b6e5b69d358cbd58
* Tooltip fixksarabia2023-08-071-5/+6
| | | | | | | Adjust the CSS code to apply the color and z-index properties to the tooltip body rather than the container. Bug: T342935 Change-Id: I351242d0cf78e8bb6207a5f9540a747bb85aba03
* build: Fix or suppress eslint/stylelint warningsUmherirrender2023-08-061-0/+1
| | | | Change-Id: If37e9b9d998660749402c173898eebd3da6ec105
* Improve mobile layout for temp-user-bannerJan Drewniak2023-06-301-0/+5
| | | | | Bug: T339379 Change-Id: I82efb3e3c0d57707aac03a422398a21d60f4478d
* Create mediawiki.tempUserBanner moduleJan Drewniak2023-06-302-0/+104
Creates a new resourceLoader module which holds the scripts and styles related to the temp user (IP masking) banner described in T339379. The temp user banner includes a tooltip which explains what temporary accounts are. This is built using OO.ui.PopupWidget and includes a clock icon and parsed i18n messages. The Tooltip dependencies are loaded and instantiated on a click event in order to minimize the dependencies on page load. Bug: T339379 Change-Id: Ie2631221b0a07dd3bf55e970805d30fbb3cac190 Depends-on: Id5a4a9a00e50420c50868c54f899d36d7ddd373d Depends-on: Icf622c4be910f5d14de95355efa02c05930179bf