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

Added Wikitalk Page #5740

Merged
merged 14 commits into from
Jul 8, 2024
Merged

Added Wikitalk Page #5740

merged 14 commits into from
Jul 8, 2024

Conversation

kanahia1
Copy link
Contributor

Description (required)

Fixes #2425

What changes did you make and why?

Tests performed (required)

Tested prodDebug on Samsung S21 FE with API level 33.

Progress

  • Improved BottomSheet in the Nearby for the Lanscape Mode
Screen_Recording_20240523_161256_Commons.mp4
  • Added Wikitalk page

WhatsApp Image 2024-05-23 at 20 17 11_342c1e41


Keeping this PR as draft until I am able to solve the problem for creating/editing page.

@nicolas-raoul
Copy link
Member

The UI looks good to me so far. 🙂

@kanahia1
Copy link
Contributor Author

Finally I am successful in creating pages

WhatsApp Image 2024-05-30 at 13 35 32_464bb46e

https://commons.m.wikimedia.org/wiki/Talk:Q65994945

Since we can also add subject, Should we also add option for the subject? Currently I am taking only description as input (e.g This is demo text) and subject is hardcoded (e.g For Testing Purpose)

@nicolas-raoul
Copy link
Member

For the title I would suggest a hard-coded English-language-only ==Please fix this item==.

The body of the message could be something like:

Someone using the [[Commons:Mobile_app|Commons Android app]] went to this item's geographical location (123.43124,98.97789) and noted the following problem(s):
* <nowiki>_Is at a different place._</nowiki>

Details: <nowiki>_It has moved to across the street blabla._</nowiki>

Please anyone fix the item accordingly, then reply to mark this section as fixed. Thanks a lot for your cooperation!

~~~~

Indicating the current location of the item is useful because it may change in the future, making it difficult to understand what is being talked about (for instance what is the initial side of the street).

@kanahia1 kanahia1 marked this pull request as ready for review May 31, 2024 07:16
@kanahia1
Copy link
Contributor Author

Hello @nicolas-raoul, I have successfully created the wikitalk page and here is design I have came up with for the page https://commons.m.wikimedia.org/wiki/Talk:Q73763141 (created/edited using the app)

WhatsApp Image 2024-05-31 at 12 45 53_82f0a294

I am looking for more suggestions for the design

@nicolas-raoul
Copy link
Member

Sorry my mistake please put the italics outside of the nowiki tags not inside.

The tildes signature was not recognized it seems. Not a big issue.

@nicolas-raoul
Copy link
Member

Would you mind posting a screencast showing the whole use of the feature as implemented now?

@kanahia1
Copy link
Contributor Author

I have fixed the italics and here's video for editing/creating

WhatsApp.Video.2024-05-31.at.13.49.07_e50e0d57.mp4

@nicolas-raoul
Copy link
Member

I think that checkboxes like in the issue description would lead to more helpful feedback:

Write something about the "GS1 Japan" item. It will be publicly visible. 

☐ "GS1 Japan" does not exist anymore, no picture can ever be taken of it. 
☑ "GS1 Japan" is at a different place (please specify the correct place below, if possible tell us the correct latitude/longitude). 
☐ Other problem or information (please explain below).

 --------------------------------------------------------------
 blabla
 -------------------------------------------------------------- 

Current talk page content would come after this.
Actually, showing talk page content in the app itself is not required (and impossible to do perfectly due to complex wikicode such as transclusions), a web link to the talk page is enough. 🙂

@nicolas-raoul
Copy link
Member

The section posted to the talk page would include the English text for each selected checkbox, plus the comment if there is one.

@kanahia1
Copy link
Contributor Author

Got it 😄 Will share the commit asap

@kanahia1
Copy link
Contributor Author

kanahia1 commented Jun 1, 2024

Hello @nicolas-raoul, I have implemented new page. And here's video demonstration

WhatsApp.Video.2024-06-01.at.08.10.31_1a8189df.mp4

@nicolas-raoul
Copy link
Member

Looks great!
I am getting a crash though, screencast on Zulip.

@nicolas-raoul
Copy link
Member

Great but I noticed an issue: The server to edit is Wikidata server, not Commons server. 🙂

@nicolas-raoul
Copy link
Member

For instance, your Abaspura edit should be made here:
https://www.wikidata.org/w/index.php?title=Talk:Q4663549&action=edit&redlink=1
not at https://commons.wikimedia.org/wiki/Talk:Q4663549 which is not the talk page of a real item or anything on that wiki.

Copy link
Collaborator

@RitikaPahwa4444 RitikaPahwa4444 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! The last option, that is, "Other problem or information (please explain below)" has an edit text field but I'm able to send the talk without any comment. How about making it mandatory?

@nicolas-raoul
Copy link
Member

+1 on making the text field mandatory if the third checkbox is enabled.

By the way, it looks like a bookmark is set to any item I open the dialog for. Is that intended? Screencast on Zulip.

@kanahia1
Copy link
Contributor Author

kanahia1 commented Jun 1, 2024

Also I have changed the url now the edit is made a wikidata url 🎉
https://m.wikidata.org/wiki/Talk:Q16640641

@nicolas-raoul
Copy link
Member

Working great, thanks! https://www.wikidata.org/wiki/Talk:Q65225721
How about coming back after the Wikidata edit is made, rather than staying on the "Write something about the [...] item" activity? Otherwise people may not see the toast, and post twice.

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, a bit of polishing still needed before merging. :-)

android:required="false" />
</application>

</manifest>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change required?

@@ -230,6 +247,14 @@ public PageEditClient provideCommonsPageEditClient(@Named(NAMED_COMMONS_CSRF) Cs
return new PageEditClient(csrfTokenClient, pageEditInterface);
}

@Named("wikidata-page-edit")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kdoc

@@ -674,26 +681,40 @@ private void initBottomSheets() {
bottomSheetListBehavior.setState(BottomSheetBehavior.STATE_HIDDEN);
}

private int getSpanCount() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

javadoc

@@ -818,4 +818,6 @@ Upload your first media by tapping on the add button.</string>
</plurals>
<string name="multiple_files_depiction">Please remember that all images in a multi-upload get the same categories and depictions. If the images do not share depictions and categories, please perform several separate uploads.</string>
<string name="multiple_files_depiction_header">Note about multi-uploads</string>
<string name="nearby_wikitalk">wikitalk</string>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the tooltip right? How about "Report a problem about this item to Wikidata"?

@kanahia1
Copy link
Contributor Author

kanahia1 commented Jul 8, 2024

@nicolas-raoul, I am sorry 😞 I totally forgot about the reviews. I have made all the suggested changes in the newer commit c0b2fc7

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic, thanks a lot for taking care of this! 🙂

@nicolas-raoul nicolas-raoul merged commit 3779cfb into commons-app:main Jul 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feedback about a Wikidata item: Does not exist, Is at other location, other problem
3 participants