Page MenuHomePhabricator

Proof of concept: Add author form
Open, Needs TriagePublicFeature

Assigned To
None
Authored By
Pepe_piton
Oct 16 2025, 7:05 PM
Referenced Files
Restricted File
Oct 24 2025, 3:08 PM
Restricted File
Oct 24 2025, 3:08 PM
Restricted File
Oct 24 2025, 3:04 PM
Restricted File
Oct 24 2025, 3:04 PM
Restricted File
Oct 24 2025, 3:04 PM
Restricted File
Oct 24 2025, 3:04 PM
Restricted File
Oct 23 2025, 12:21 AM
Restricted File
Oct 23 2025, 12:06 AM

Description

Feature summary: Create a new page in Paulina, add-author.html, similar to the one created in task T407385, but this time containing a basic web form for creating a new author's item. The form must contain the input fields corresponding to the author page (e. g.: https://paulina.toolforge.org/author/Q1779 )

For now, there's no need to add an action attribute to the form or make the form submission affect the Paulina website. This is a proof of concept.

Benefits: One of the ways the Wikidata editing feature will be implemented in Paulina is by allowing the creation of new Wikidata items about authors. This will require a simple, easy-to-use form. This task provides the basic structure of the form.

Event Timeline

Pepe_piton renamed this task from Proof of concept: Add author to Proof of concept: Add author form.Oct 16 2025, 7:05 PM
Pepe_piton moved this task from Backlog to To do on the Tool-paulina board.

Hello @Pepe_piton, this is a great idea, I have gone through the auth details page and also implemented the proof of concept for that and I have created a merge request at https://gitlab.wikimedia.org/toolforge-repos/paulina/-/merge_requests/103

As requested, this is a proof of concept with:
✅ No form action attribute (no actual submission)
✅ Placeholder alerts for form submission
✅ All fields properly mapped to author page structure
✅ Ready for future backend integration

Some enhancements can be done as well for fields such Country; here we can provide a list of countries to select from thereby enhancing the user experience.

Thanks

Regards
Lionel Afanyu

Hi @Pepe_piton @Nat_WDU
I have fixed this issue. Also added the add-author route to the app.py file.
Here is the link to my MR: https://gitlab.wikimedia.org/toolforge-repos/paulina/-/merge_requests/104

hello, @Pepe_piton and @Nat_WDU
my attempt related this issue:-https://gitlab.wikimedia.org/toolforge-repos/paulina/-/merge_requests/125
Changes made:

  • Added new template file add-author.html
  • Created Flask route /add-author in app.py
  • Added input fields for author details such as:
    1. Name
    2. Occupation
    3. Gender
    4. Place of birth
    5. Country of birth
    6. External links (Wikidata, Wikipedia, etc.)
  • Added reset and submit buttons
  • Included image field to allow authors to upload or link profile images.

Please check my work and share feedback so I can improve.

Hello, @Pepe_piton and @Nat_WDU.
I have worked on this task: Here is the MR link with implementation details: https://gitlab.wikimedia.org/toolforge-repos/paulina/-/merge_requests/127

{F66969431}
This merge request introduces a new “Add Author” form that allows users to easily add new authors to the system.
Key changes:
Created a dedicated form component for adding authors
Implemented input fields for name, email, and biography, etc
Added client-side validation for required fields
A responsive design connected to a separate CSS file.
Integrated the form with the existing backend API
Updated UI to match project styling guidelines

Here is the notification message displayed after the form was successfully submitted:
{F66969226}
I will be waiting for your correction and suggestions if there is any, Thanks

Hello @Pepe_piton @Nat_WDU
I worked on creating a proof-of-concept “Add Author” form for the Paulina tool.

Structure.

The new page (add-author.html) extends layout.html and includes fields that correspond to the Author details page (e.g., full name, gender, ethnicity, nationality, date of birth, place of birth, occupation, and short biography).

I also added:

A file upload field for author images with a live preview feature.

Simple form validation and a toast notification confirming successful validation.

A small script to reset the form after submission for better user experience.

A responsive design connected to a separate CSS file.

Merge Request: https://gitlab.wikimedia.org/toolforge-repos/paulina/-/merge_requests/133

Hello @Pepe_piton @Nat_WDU,

I have created my version of this task, which can be seen at this link: https://gitlab.wikimedia.org/toolforge-repos/paulina/-/merge_requests/137

Features Implemented:

  • Users can create new author entries by filling out a form with biographical fields matching Paulina's author page structure.
  • Image upload system allows users to add author portraits via URL (Wikimedia Commons) with an instant preview of image.
  • Living author checkbox automatically disables death-related fields to prevent invalid data entry
  • Live preview modal displays exactly how the entry will appear on Paulina before submission.
  • 3-step progress indicator guides users through the creation workflow: Basic Information → Details → Preview

Hi everyone!

@Pepe_piton and @Nat_WDU :
Please find attached my Merge Request for this task.

Best regards,
Farmata.

Hello, @Afanyulionel let me ask you a tricky question... how would a Paulina user obtain the Wikidata link to a new author? Let me know if you spot why it would not be ok to ask for this field.

@Nat_WDU I had submitted my MR link but found some responsiveness issues with it. fixing them and reattaching the MR asap!

Hello @Nat_WDU, Just a heads-up — I pushed a few changes I was working on to my MR in case you’ve already reviewed it. Thanks!

@Nat_WDU I removed the external links section and its related JavaScript logic after thinking it through. You raised a good point; if I understand correctly, a Paulina user wouldn’t have a straightforward way to obtain the Wikidata link for a new author.

Hello, @Afanyulionel let me ask you a tricky question... how would a Paulina user obtain the Wikidata link to a new author? Let me know if you spot why it would not be ok to ask for this field.

Hello @Nat_WDU , thanks for the feedback. The field in question here should be the country list selection I guess. If we store the author in the dataabase, we can query it using same as using the route /author/<author_data>. Please let me know if I am missing something here.

Regards,
Lionel

Hello, @Afanyulionel let me ask you a tricky question... how would a Paulina user obtain the Wikidata link to a new author? Let me know if you spot why it would not be ok to ask for this field.

Oups… I think made the same mistake as @Afanyulionel … Correct me if I’m wrong but the Wikidata author item wouldn’t exist as we are creating it using this form (and submitting it using a POST method to the Wikidata Rest API…)