Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve UI of RequestWiki #520

Open
wants to merge 167 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
f54c771
Improve UI of RequestWiki
Universal-Omega Oct 13, 2024
8c02610
Rearrange sections
Universal-Omega Oct 13, 2024
0002c79
CI: lint code to MediaWiki standards
Oct 13, 2024
3522444
Update
Universal-Omega Oct 13, 2024
d814eef
Move category
Universal-Omega Oct 13, 2024
27bd144
Move
Universal-Omega Oct 13, 2024
f9f6a1c
Fix
Universal-Omega Oct 13, 2024
845b97f
Move
Universal-Omega Oct 13, 2024
a18d28c
Move
Universal-Omega Oct 13, 2024
12ba437
Order
Universal-Omega Oct 13, 2024
d4fd542
Move guidance to info
Universal-Omega Oct 13, 2024
4af9ac5
confirmation
Universal-Omega Oct 13, 2024
c0d55e3
Move
Universal-Omega Oct 13, 2024
a7b0d70
Order
Universal-Omega Oct 13, 2024
912a625
Update
Universal-Omega Oct 13, 2024
4506767
Update
Universal-Omega Oct 13, 2024
1bfacce
Add
Universal-Omega Oct 13, 2024
3c50d72
CI: lint code to MediaWiki standards
Oct 13, 2024
b318f0c
Add
Universal-Omega Oct 13, 2024
ef42b30
Order
Universal-Omega Oct 13, 2024
231280b
Order
Universal-Omega Oct 13, 2024
58dadd6
Fix
Universal-Omega Oct 13, 2024
7cad4da
Add CreateWikiAfterCreationWithExtraDataHook
Universal-Omega Oct 13, 2024
6dccbc1
Fix
Universal-Omega Oct 13, 2024
c50679d
Add hook
Universal-Omega Oct 13, 2024
419a689
Add factory
Universal-Omega Oct 13, 2024
1c39326
Add factory
Universal-Omega Oct 13, 2024
1989d8e
Add MirahezeMagicRequestWikiSkins
Universal-Omega Oct 13, 2024
97c085c
Add MirahezeMagicRequestWikiSkins
Universal-Omega Oct 14, 2024
8a50b92
Add
Universal-Omega Oct 14, 2024
6693494
Add MirahezeMagicRequestWikiExtensions
Universal-Omega Oct 14, 2024
38bf04d
Add MirahezeMagicRequestWikiExtensions
Universal-Omega Oct 14, 2024
b0f8f3b
Add
Universal-Omega Oct 14, 2024
35e7196
Add pageimages
Universal-Omega Oct 14, 2024
80e4a3a
Merge branch 'master' into rw-ui
Universal-Omega Oct 14, 2024
228140f
Test sub section
Universal-Omega Oct 14, 2024
3d67108
Update queue
Universal-Omega Oct 14, 2024
31be8f6
Fix
Universal-Omega Oct 14, 2024
0fb3f53
Fix
Universal-Omega Oct 14, 2024
cd7ff0b
Fix
Universal-Omega Oct 14, 2024
8bb487e
Try section ordering
Universal-Omega Oct 14, 2024
fba6ec6
Fix
Universal-Omega Oct 14, 2024
741b867
Fix
Universal-Omega Oct 14, 2024
6405c22
Remove
Universal-Omega Oct 14, 2024
71cfb7a
Fix
Universal-Omega Oct 14, 2024
1430ab6
-
Universal-Omega Oct 14, 2024
1fa3cda
Try /basic
Universal-Omega Oct 14, 2024
3be66ef
Add mainpageroot
Universal-Omega Oct 14, 2024
2e8b516
Fix
Universal-Omega Oct 14, 2024
1f197fc
CI: lint code to MediaWiki standards
Oct 14, 2024
ec9bea4
Try new
Universal-Omega Oct 14, 2024
41e11a2
Update
Universal-Omega Oct 14, 2024
49ca81b
Don't show on old requests
Universal-Omega Oct 14, 2024
ba47716
Fix
Universal-Omega Oct 14, 2024
a3b16b8
Revert
Universal-Omega Oct 14, 2024
d5fddcd
Add required
Universal-Omega Oct 14, 2024
9df064b
Add wddescription
Universal-Omega Oct 14, 2024
e8f790c
Fix
Universal-Omega Oct 14, 2024
6047a82
Add
Universal-Omega Oct 14, 2024
43b4502
Add
Universal-Omega Oct 14, 2024
cb6194e
IconWidget
Universal-Omega Oct 14, 2024
91e0cc0
Try
Universal-Omega Oct 14, 2024
d65e25b
Try
Universal-Omega Oct 14, 2024
7ea7e6c
Try
Universal-Omega Oct 14, 2024
0e796de
fix
Universal-Omega Oct 14, 2024
e51fe45
Try
Universal-Omega Oct 14, 2024
d62a045
Fix
Universal-Omega Oct 14, 2024
6ff3b6c
flags
Universal-Omega Oct 14, 2024
a12c192
Fix
Universal-Omega Oct 14, 2024
a26f6a2
destructive
Universal-Omega Oct 14, 2024
a49f228
Fix
Universal-Omega Oct 14, 2024
da897e4
Try
Universal-Omega Oct 14, 2024
13fde8c
Try
Universal-Omega Oct 14, 2024
764af8f
Try
Universal-Omega Oct 14, 2024
cc1e2ce
Fix
Universal-Omega Oct 14, 2024
98c5fd2
Try
Universal-Omega Oct 14, 2024
4e49824
Fix
Universal-Omega Oct 14, 2024
d26b49d
Try
Universal-Omega Oct 14, 2024
d7cb073
Try
Universal-Omega Oct 14, 2024
a10f6ae
Try
Universal-Omega Oct 14, 2024
37d9f57
try
Universal-Omega Oct 14, 2024
6250b3b
try
Universal-Omega Oct 14, 2024
9fcdc19
msg
Universal-Omega Oct 14, 2024
1105188
Cleanup
Universal-Omega Oct 15, 2024
7b59e3e
Fix
Universal-Omega Oct 15, 2024
f9834c7
Fix
Universal-Omega Oct 15, 2024
890cb7b
Try
Universal-Omega Oct 15, 2024
f55034b
Fix
Universal-Omega Oct 15, 2024
1d10bc5
Add
Universal-Omega Oct 15, 2024
2b94165
Fix
Universal-Omega Oct 15, 2024
a0877c2
Remove
Universal-Omega Oct 15, 2024
5fa06ee
Update
Universal-Omega Oct 15, 2024
e403cdf
-
Universal-Omega Oct 15, 2024
350bbd0
Add
Universal-Omega Oct 15, 2024
680fd65
Add
Universal-Omega Oct 15, 2024
886e564
Update
Universal-Omega Oct 15, 2024
3ec7552
Update message
Universal-Omega Oct 15, 2024
39c1814
-
Universal-Omega Oct 15, 2024
7af6ae4
-
Universal-Omega Oct 15, 2024
19ada15
Try
Universal-Omega Oct 15, 2024
aeb4efe
try
Universal-Omega Oct 15, 2024
acac92b
Add
Universal-Omega Oct 15, 2024
049b933
Try
Universal-Omega Oct 15, 2024
4f83ce9
Add test
Universal-Omega Oct 15, 2024
4ecd1dd
Remove
Universal-Omega Oct 15, 2024
fa53450
Test
Universal-Omega Oct 15, 2024
f66c4dc
-
Universal-Omega Oct 15, 2024
0bf78d1
Try disable-if
Universal-Omega Oct 15, 2024
afb1169
Try
Universal-Omega Oct 15, 2024
5d6aeac
Try
Universal-Omega Oct 15, 2024
c3f2227
Try
Universal-Omega Oct 15, 2024
4fd67bb
Try
Universal-Omega Oct 15, 2024
118ca98
Try
Universal-Omega Oct 15, 2024
85bef65
Try
Universal-Omega Oct 15, 2024
d59ee3f
Try
Universal-Omega Oct 15, 2024
84b5479
Try
Universal-Omega Oct 15, 2024
1a6a4d6
try
Universal-Omega Oct 15, 2024
d8e8680
Remove
Universal-Omega Oct 15, 2024
35d6979
Add disable-if
Universal-Omega Oct 15, 2024
1e77aef
Fix
Universal-Omega Oct 15, 2024
bbe0961
Don't save showadvanced
Universal-Omega Oct 15, 2024
271a35b
Add disable-if
Universal-Omega Oct 15, 2024
53bab32
Try
Universal-Omega Oct 15, 2024
53b6b23
Try
Universal-Omega Oct 15, 2024
8169dfa
Try
Universal-Omega Oct 15, 2024
6263df1
Test
Universal-Omega Oct 15, 2024
a8284a4
Fix
Universal-Omega Oct 15, 2024
b830444
Fix
Universal-Omega Oct 15, 2024
eea7272
Fix
Universal-Omega Oct 15, 2024
e12aa43
Try
Universal-Omega Oct 15, 2024
ac30f1e
Fix
Universal-Omega Oct 15, 2024
f5d1ba8
Try
Universal-Omega Oct 15, 2024
70da2f8
Remove
Universal-Omega Oct 15, 2024
7d7f78a
Don't save showadvanced
Universal-Omega Oct 15, 2024
803cdf2
Test
Universal-Omega Oct 15, 2024
c30d8a8
test
Universal-Omega Oct 15, 2024
3fb3e6c
Try
Universal-Omega Oct 15, 2024
37ac20a
test
Universal-Omega Oct 15, 2024
0c7876a
Try
Universal-Omega Oct 15, 2024
a309bb1
-
Universal-Omega Oct 15, 2024
7d44310
-
Universal-Omega Oct 15, 2024
83d73cb
Update
Universal-Omega Oct 15, 2024
7d6a232
Update
Universal-Omega Oct 15, 2024
bdf74ad
Fix
Universal-Omega Oct 15, 2024
5482d76
Test
Universal-Omega Oct 15, 2024
9a2aaae
Fix
Universal-Omega Oct 15, 2024
f10f9d8
Remove
Universal-Omega Oct 16, 2024
b949911
Use DetailsWithIconField
Universal-Omega Oct 16, 2024
ba03447
Merge branch 'master' into rw-ui
Universal-Omega Oct 16, 2024
8019af1
Merge branch 'master' into rw-ui
Universal-Omega Oct 16, 2024
b146117
Add some comments
Universal-Omega Oct 17, 2024
ebbdb1e
Use reason
Universal-Omega Oct 17, 2024
28b17a7
Update message
Universal-Omega Oct 17, 2024
e7a57eb
Update
Universal-Omega Oct 22, 2024
dfe1a66
Merge branch 'master' into rw-ui
Universal-Omega Oct 22, 2024
af34e73
Remove dummy configs
Universal-Omega Oct 24, 2024
8b47f8e
Associative arrays
Universal-Omega Oct 24, 2024
06c2ce8
Use key-value
Universal-Omega Oct 24, 2024
a7fbe9c
Remove mainpageroot for now
Universal-Omega Oct 25, 2024
c2b4f83
Add format to config descriptions
Universal-Omega Oct 29, 2024
2ae955e
Add support for localized options
Universal-Omega Oct 29, 2024
4034a02
Add note that value can be a message key
Universal-Omega Oct 29, 2024
869a49b
Use messages
Universal-Omega Oct 29, 2024
84dedbb
Add check if extensions are set
Universal-Omega Oct 29, 2024
da11c21
Merge branch 'master' into rw-ui
Universal-Omega Oct 29, 2024
e548632
Fix
Universal-Omega Oct 29, 2024
8a6d072
Fix
Universal-Omega Oct 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
"ContributionsToolLinks": {
"handler": "Main"
},
"CreateWikiAfterCreationWithExtraData": {
"handler": "RequestWiki"
},
"CreateWikiDeletion": {
"handler": "Main"
},
Expand Down Expand Up @@ -149,7 +152,11 @@
]
},
"RequestWiki": {
"class": "Miraheze\\MirahezeMagic\\HookHandlers\\RequestWiki"
"class": "Miraheze\\MirahezeMagic\\HookHandlers\\RequestWiki",
"factory": "Miraheze\\MirahezeMagic\\HookHandlers\\RequestWiki::factory",
"services": [
"MainConfig"
]
}
},
"config": {
Expand All @@ -161,6 +168,17 @@
"description": "Array. Memcached servers to use for clearing memcached keys when a wiki is deleted or renamed.",
"value": []
},
"MirahezeMagicRequestWikiExtensions": {
"description": "Array. Extensions to allow to select directly from RequestWiki, formatted as display name or message key => extension key (index from $wgManageWikiExtensions).",
"value": []
},
"MirahezeMagicRequestWikiSkins": {
"description": "Array. Skins to allow to be selected as the default skin directly from RequestWiki, formatted as display name or message key => skin key.",
"value": {
"skinname-vector": "vector",
"skinname-vector-2022": "vector-2022"
}
},
"MirahezeReportsBlockAlertKeywords": {
"description": "Array. Words in block reasons which trigger a report being sent to TSPortal.",
"value": []
Expand Down
16 changes: 16 additions & 0 deletions i18n/miraheze/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,27 @@
"protect-level-user": "Allow only logged in users",
"requestimport-text": "Welcome to RequestImport! To get started with your import, please fill out this form so we can review your request. Your wiki request will be reviewed by a Technology team member or Steward, and it can be tracked at the page that will be given when submitting your request.\n\nIf your upload here times out or fails, please create a task on [[Phorge]].\n\nIf you wish to import images as well, please also create a task on [[Phorge]].",
"requestssl-text": "Welcome to RequestSSL! Please read [[Custom domains]] and make sure your domain is pointed correctly before requesting an SSL certificate here and that your wiki is created. Your custom domain request will be reviewed by a Technology team member, and it can be tracked at the page that will be given when submitting your request.\n\nIf you want to use your own SSL certificate provider instead of Let's Encrypt, please create a task on [[Phorge]].\n\nIf there is an error, or if you would like to request a redirect, please create a task on [[Phorge]].",
"requestwiki-label-defaultextensions": "Extensions and skins that should be enabled on your wiki by default:",
"requestwiki-help-defaultextensions": "You will always be able to enable or disable these later with Special:ManageWiki/extensions on your wiki after it has been created.",
"requestwiki-label-category": "How would you like your wiki to be categorized in the [[Special:WikiDiscover|global directory]]?",
"requestwiki-label-defaultskin": "What would you like the default skin of your wiki to be?",
"requestwiki-label-nsfw": "This wiki includes content that is not safe for work (NSFW)",
"requestwiki-help-nsfw": "A wiki is not safe for work (NSFW) if it includes graphic discussion of sex (either text or media content) or is otherwise inappropriate for those under the age of 18.",
"requestwiki-label-nsfwtext": "Please give us more details about the type of NSFW content that your wiki will contain",
"requestwiki-label-source": "This wiki is moving or forking from an existing wiki",
"requestwiki-label-sourceurl": "Enter the full URL of the source wiki (the wiki you are moving or forking from)",
"requestwiki-label-showadvanced": "Show advanced options?",
"requestwiki-label-wddescription": "Enter a short description of your wiki that will appear publicly in the [[Special:WikiDiscover|global directory]]:",
"requestwiki-help-wddescription": "You can change this in Special:ManageWiki after your wiki has been created.",
"requestwiki-advanced": "Advanced configuration",
"requestwiki-configure": "Wiki configuration",
"requestwiki-confirmation": "Confirmation",
"requestwiki-core": "Core settings",
"requestwiki-request-info": "Request information",
"requestwikiqueue-section-advanced": "Advanced configuration",
"requestwikiqueue-section-configure": "Wiki configuration",
"requestwikiqueue-section-core": "Core settings",
"requestwikiqueue-section-request-info": "Request information",
"restriction-delete": "Delete",
"restriction-level-user": "Allow only logged in users",
"right-user": "Edit pages protected as \"{{int:protect-level-user}}\"",
Expand Down
3 changes: 1 addition & 2 deletions i18n/overrides/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"miraheze-createwiki-email-subject": "Your new Miraheze wiki ($1) has been created",
"miraheze-createwiki-error-subdomaintaken": "The subdomain you requested is already taken. There might already be a wiki covering your topic; if that's the case, contribute to that wiki instead (wikis on the same topic are prohibited and deleted upon detection). Select another subdomain and try again.",
"miraheze-createwiki-help-bio": "Content regarding real people is expected to make an effort to limit bias/present a neutral point of view. You must not share personal information without explicit consent. See [[Disclosure of Personal Data on Wikis]]",
"miraheze-createwiki-help-category": "The category helps sorting the wiki on places such as [[Special:WikiDiscover]]. Visit ManageWiki after creation to write a brief description too!",
"miraheze-createwiki-help-reason": "Feel free to expand the box for easier editing! Unfortunately there is no fancy formatting like bold, clickable links etc here.",
"miraheze-createwiki-help-subdomain": "This will be the wiki's URL. Please make sure it is unique to your wiki and not too generic. Your database name will be this with 'wiki' at the end, ie, yoursubdomain -> yoursubdomainwiki. This can be changed later.",
"miraheze-createwiki-label-reason": "You will need to inform us the ''topic'' of your wiki (what is it about?), the ''scope'' of your wiki (what does it include?), and anything else you believe will help. This can include:\n* A link to a public existing community for the wiki if it is a migration, or a link to the content the wiki will be covering.\n* What controversial content may be covered by the wiki, and how you will moderate it to ensure it complies with global policy.\n* If the wiki will cover \"NSFW\" content. There is a section in the Content Policy regarding this.\n* If the wiki is personal (your work, vs documenting something else), made on behalf of an organization, or if it is on behalf of a non-wiki community, like a Discord Server.\n* Share some details if you like! If it's about a game franchise, a specific region, your worldbuilding...\n\nWith this information we will be able to determine if the content is likely to be compatible with Miraheze. More detail is better, as long as it is clear and relevant. This ranges from two sentences to a couple short paragraphs. Structure it how you like.\n\n'''Please do not use ChatGPT or any other AI model:''' They are rarely clear or relevant enough, and increases the chance you will be asked to rephrase or explain in specific.\n\n----\n\nNow, please tell us the topic & scope of your wiki in at least two sentences...",
Expand Down Expand Up @@ -59,7 +58,7 @@
"miraheze-prefs-help-realname": "Real name is optional. If you choose to provide it, this will be used for giving you attribution for your work. Also, by using a wiki hosted by Miraheze, you agree to the <span class=\"plainlinks\">[https://meta.miraheze.org/wiki/Special:MyLanguage/Terms_of_Use Terms of Use]</span> and accept the <span class=\"plainlinks\">[https://meta.miraheze.org/wiki/Special:MyLanguage/Privacy_Policy Privacy Policy]</span>.",
"miraheze-privacypage": "m:Special:MyLanguage/Privacy Policy",
"miraheze-requestwiki-error-invalidcomment": "Your wiki request contains an invalid character. Correct that and try again. If you need help, [[Help center|contact us]].",
"miraheze-requestwiki-info-guidance": "Just a couple sections left! This one is very important.",
"miraheze-requestwiki-info-guidance": "This section is crucial in determining if your wiki request meets the criteria for approval by Wiki Creators. Provide sufficient detail without being overly excessive. This will assist Wiki Creators in processing your request efficiently, increasing both the chances and speed of approval. Thank you!",
"miraheze-requestwiki-info-guidance-post": "You're just about done. Please review to ensure you've completed all sections and provided all relevant details. When you've done so, we'll get back to you as soon as we can. Feel free to look around Meta, meet your fellow wiki operators in the meantime. We like seeing new faces here.",
"miraheze-requestwiki-label-agreement": "'''I have read and accept [[Special:MyLanguage/Content Policy|Content Policy]], [[Special:MyLanguage/Dormancy Policy|Dormancy Policy]], [[Special:MyLanguage/Wiki Governance policy|Wiki Governance Policy]] and [[Special:MyLanguage/Global Conduct Policy|Global Conduct Policy]]''', and by requesting a wiki, I agree to all our [[Special:MyLanguage/Global policies|global policies]].",
"miraheze-requestwiki-success": "Your wiki request ($1) was successfully submitted. Your request will be reviewed by a volunteer wiki creator as soon as possible.",
Expand Down
1 change: 0 additions & 1 deletion includes/HookHandlers/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,6 @@ public function onMessageCacheFetchOverrides( array &$keys ): void {
'createwiki-email-subject',
'createwiki-error-subdomaintaken',
'createwiki-help-bio',
'createwiki-help-category',
'createwiki-help-reason',
'createwiki-help-subdomain',
'createwiki-label-reason',
Expand Down
Loading
Loading