Page MenuHomePhabricator

Implement a "SiteNotice"
Closed, ResolvedPublicFeature

Assigned To
Authored By
Poslovitch
Jan 9 2024, 12:20 PM
Referenced Files
F57582958: image.png
Oct 2 2024, 2:59 PM
F57568706: image.png
Sep 29 2024, 9:28 AM

Description

MediaWiki provides a "SiteNotice" feature that can be edited and set up by project admins without requiring to change the code.

As we often made use of this feature on Lingua Libre Legacy (to warn about known issues, request answers to surveys or announce some achievements), we should find a way to somehow replicate it.

Textual content should be fetched from https://commons.wikimedia.org/wiki/Commons:Lingua_Libre/SiteNotice.

Installation

Ensure you can :

  • clone the repository
  • find your way in the project's code
  • make minor modification
  • create a PR.
Mission
  • Ask ChatGPT : Using JS, how to fech wikipage raw text content by url.
  • Find the right Wikimedia Codex block for such ribbon.
  • Add JS such as : If (Commons:Lingua_Libre/SiteNotice has content) { style = "display:block" } else { style="display:none" }
|----------------------------------------------|
|  Sitenotice                                  |
|----------------------------------------------|
|                                              |
|                                              |
|                                              |
|                                              |
|            REST OF SITE                      |
|                                              |
|                                              |
|                                              |
|                                              |
|----------------------------------------------|

image.png (1,149×745 px, 244 KB)

Repository access

If you do not have access to Lingualibre Gitlab, please request access to Wikimedia Gitlab : https://phabricator.wikimedia.org/maniphest/task/edit/form/117/
Please also ping @hugolpz.

Event Timeline

@Jatinder190124 hello. Thank you for your enthusiasm.
As of now I assigned one microtask per applicant. We will reassign and look for more microtasks if needed.

Hi @Yug @Poslovitch can I work on this microtask

Hi @Yug @Poslovitch can I work on this

@Aditya hello.
My apologized, we finished the GSoC selection process as mentioned in this other message to you.
So this task is now here as a pure volunteer open source task.

Hello @Yug
I'm still eager to contribute to this task, even though it's now a volunteer opportunity. Can you assign it to me? I'm ready to begin working on it.
Thank you!

Hello @Aditya, you are welcome indeed, we can keep this task for you but I would like to refer to @Poslovitch first. He is our lead volunteer developer.

@Poslovitch, our codebase got PR merged from 3 different applicants these past 2 weeks in order to test their ability to commit. (See T359797 . )
How is the codebase at the moment ? Is this sort of ok (aligned) and we can push forward ? Or is it increasingly messy due to the diversity of coding approaches and we mush slow down a bit ?

Yug triaged this task as Low priority.Jul 16 2024, 8:03 AM

@Aditya hello, some news from our side. GSoC Pushkar is leading the recoding with django, so the codebase is currently unstable.
May I contact you back this Automn, after the GSoC24 ?
We will indeed need occasional open source developer and this Sitenotice is an ideal one to contribute to.

Sure @Yug, I will be available for this once GSoC is finished, thank you for the opportunity.

Yug updated the task description. (Show Details)
Yug removed a subscriber: Poslovitch.

Hello @Aditya , still interested by this task ? The project is less active recently you may install a local of Lingua Libre repository and explore small development. The README.md have been updated as well and @Saltykheera was able to install locally.

Our idea is to have a hand of occasional volunteer developers coding small features, with small workload (ideally 1 to 4hours) so it stays fun for each member of the group. If you are a junior dev you may learn by doing, study Lingua Libre's Django structure, practice coding and Gitlab collaboration, get code review and discuss with pairs on Phabricator or Discord. Maybe coding few unit tests.

My hope is that we can have some fun, learn, grow ourselves while still keeping it chill and low workload.

In parallel Wikimedia France will also lead occasional freelance for coding efforts which are far too big to do as volunteers, like 10 workdays sprints, so the project still moves fast.

On the community and linguistic side we are now pushing toward smaller languages. This coming Django version also allows for low-tech dictionary creations (2025) with minimalist Language 1 word, Language 2 translation and audio. That's something the local communities request a lot and there will be some project in this way, were we will use Vuejs and Wikimedia Codex (CSS+VueJS framework).

Hi @Yug,

Thank you for updating me on the project’s progress. I apologize for the delayed response. I was away from home and without access to my laptop, making it difficult to reply earlier.

I am interested in contributing to the Lingua Libre project. The idea of learning more about the Django structure, coding small features, and practicing Gitlab collaboration sounds great. I would love to explore this further and get involved in areas like unit tests or other small tasks that can help the team.

I am looking forward to installing the repository locally and starting the development work as suggested in the updated README. I will share updates as I make some progress.

Thank you again for keeping me in the loop. I am excited to be part of the project!

@Saltykheera , thanks for this ! Eager to see it live.

I noticed you ensured if the wikipage is empty, the box should be display:none. That's great.

I ticked all the check-boxes in the task description above.

Yug updated the task description. (Show Details)
Yug changed the task status from Open to In Progress.Dec 17 2024, 10:53 AM

@Saltykheera's code is available here. Since we split the project in two, we will implement it in lingualibre.org's /src/app.vue and src/components/RibbonNotice.vue -> src/components/SiteNotice.vue.

This will be done in late January (after current Pushkar's freelance).

@Saltykheera's code have been retrieved and merged into the relevant repository, see lingualibre.org > PR#1 . This ticket was solved by volunteers in parallel to T380121 .