Commit graph

6190 commits

Author SHA1 Message Date
Kanahia
5686135ce5
Merge branch 'main' into main 2024-08-03 16:06:18 +05:30
translatewiki.net
ba6c8fe8d0
Localisation updates from https://translatewiki.net. 2024-08-01 14:01:42 +02:00
Kanahia
6258163631 Fixed unit tests 2024-08-01 11:48:03 +05:30
Kanahia
7c79e46440 Fixed unit tests 2024-08-01 11:14:37 +05:30
Kanahia
fb80b3a96c Made minor changes 2024-08-01 11:08:43 +05:30
translatewiki.net
dbfe3b50f9
Localisation updates from https://translatewiki.net. 2024-07-29 14:02:27 +02:00
Kanahia
4f7cbfc741 Temporary commit - Added jcenter 2024-07-28 18:32:23 +05:30
Kanahia
6d87282e8a Replaced Temporary commit 2024-07-28 18:18:11 +05:30
Kanahia
3fcfb20f0e Temporary commit - only for testing 2024-07-28 18:13:31 +05:30
Kanahia
20810b9e49 Merge remote-tracking branch 'origin/main' 2024-07-28 16:50:56 +05:30
Kanahia
efbea393e2 Updated javadocs 2024-07-28 16:50:44 +05:30
Kanahia
4985462c14
Merge branch 'commons-app:main' into main 2024-07-28 14:25:46 +05:30
Kanahia
a51affe899 Merge remote-tracking branch 'origin/main' 2024-07-28 14:24:01 +05:30
Kanahia
6fed9f4ed7 Fixed issue with pin loading on the first launch 2024-07-28 14:23:45 +05:30
translatewiki.net
59da70aca1
Localisation updates from https://translatewiki.net. 2024-07-25 14:01:45 +02:00
translatewiki.net
d2d8eb9153
Localisation updates from https://translatewiki.net. 2024-07-22 14:01:59 +02:00
Kaartic Sivaraam
7d9f8d27bc
menu: rename menu as "User profile" (#5771)
As suggested by @whym on #5754, the name "User page" is ambiguous with
the on-wiki user page. We actually show the leaderboard when the menu
is clicked on. So, rename the menu as "User profile" instead.

Ref: https://github.com/commons-app/apps-android-commons/issues/5754#issuecomment-2196796213
2024-07-20 23:19:16 +10:00
Matija Nalis
7f6b45aeb6
Update allowed recent years to include 2020s (#5761)
* document regex due to #47

* also count 2020s as "recent years"

* clarify that not all years are ignored

* clarify "year" is current year

* original logic fix
from https://github.com/commons-app/apps-android-commons/pull/5761#pullrequestreview-2144120347

* better variale name for ".*0s.*"
as that regex will match e.g. `1920s` and `80s` too, so the original `is20xxsYear` would be confusing name for it

* consolidate duplicated code to spammyCategory

* clarify regexes via variables

* spammyCategory should always be skipped

* return is simple now, so we can get rid of extra val oldDecade

* fix curYearInString

* some clarification comments

* refactor: rename containsYear to isSpammyCategory

This is done as the name containsYear is ambiguous.
It not just checks for year to identify spammy categories.

* refactor: rename containsYear to isSpammyCategory (take 2)

 A continuation of fe74c77ab (refactor: rename containsYear
 to isSpammyCategory, 2024-07-17)

---------

Co-authored-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
2024-07-20 23:16:20 +10:00
Amir E. Aharoni
34addbe33a
Remove unnecessary double quotes from a message (#5777) 2024-07-18 11:47:03 +09:00
Kaartic Sivaraam
5be76044b1
wikidata-feedback: avoid sentence lego (#5775)
Fixes #5763
2024-07-17 16:22:41 +09:00
translatewiki.net
73e9ed8e26
Localisation updates from https://translatewiki.net. 2024-07-15 14:02:06 +02:00
Kanahia
67a2eb4ca7
Merge branch 'main' into main 2024-07-12 17:44:09 +05:30
translatewiki.net
4d8a7dc138
Localisation updates from https://translatewiki.net. 2024-07-11 14:02:14 +02:00
Kanahia
2251c62355 Fixed the bug 2024-07-10 17:23:48 +05:30
Kanahia
5caa0bca91 Fixed unit test 2024-07-10 12:04:54 +05:30
Kanahia
97019c9272 Fixed unit test 2024-07-08 21:42:05 +05:30
Kanahia
c2e14b7099 Fixed conflicts 2024-07-08 21:36:48 +05:30
Kanahia
c314327483
Merge branch 'main' into main 2024-07-08 21:21:29 +05:30
Kanahia
0478a9b2ea Fixed tests 2024-07-08 21:18:07 +05:30
Amir E. Aharoni
5bcbaa1beb
Improve the messages about being in a different place (#5764)
Remove parentheses and comma splice,
and replace them with more straightforward grammar.
2024-07-08 23:16:26 +09:00
translatewiki.net
018a924c53
Localisation updates from https://translatewiki.net. 2024-07-08 14:02:00 +02:00
Kanahia
3779cfb6a5
Added Wikitalk Page (#5740)
* Added wikitalk page and improved bottomsheet for landscape mode

* Improved wikitalk page

* Fixed italics

* Fixed little bug

* Improved the wiki talk page

* .

* changed commons url to wikidata url

* changed commons url to wikidata url + 1

* fixed bookmark issue

* Added kdoc and javadoc

---------

Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com>
2024-07-08 15:13:57 +09:00
Kanahia
a28117397d Changed primary key from location to entity id 2024-07-08 06:56:09 +05:30
Kanahia
438aa3b41b Factorized methods 2024-07-07 07:47:28 +05:30
Kaartic Sivaraam
36905711d0 Version v5.0.2 2024-07-07 01:05:55 +05:30
translatewiki.net
05ffd123e4
Localisation updates from https://translatewiki.net. 2024-07-04 14:01:57 +02:00
translatewiki.net
923acd802c
Localisation updates from https://translatewiki.net. 2024-07-01 14:01:39 +02:00
Kanahia
cfb1575c41 Fixed unit test 2024-06-30 13:35:49 +05:30
Kanahia
411ef31c5e Implemented caching of places 2024-06-30 13:24:05 +05:30
Kanahia
a11003a2fb Removed search this area button 2024-06-29 05:55:56 +05:30
translatewiki.net
f8e1030164
Localisation updates from https://translatewiki.net. 2024-06-27 14:01:37 +02:00
translatewiki.net
63ec5c8433
Localisation updates from https://translatewiki.net. 2024-06-20 14:01:59 +02:00
Kaartic Sivaraam
69cd9c94d1
Make sure to clear cookies on logout (#5727)
* Ensure to clear the cookies when logging out

It turns out that we failed to clear the cookies from the cookie JAR
when logging the user out. As a consequence, the cookie were retained
and it was possible to edit depictions as the previous user even without
logging in to the app (using the retained cookies).

Make sure we properly clear the cookies when we log the user out.

As an aside, the fact that the edit button shouldn't have been shown
is a different issue being tracked in #5726

* session: reuse removeAccount method for log out

The removeAccount method takes care of invoking the non-deprecated
API in applicable API levels. The logout method did not do such a
thing. Avoid redundancy, and reuse the removeAccount method for
logging out.
2024-06-18 22:31:34 +02:00
Kaartic Sivaraam
1808699e89
Make new feedback to be added as a new section to the end of the page (#5753)
* feedback: add the feedback as a new section at end of the page

Addresses feedback on #5542. For auto-archiving of section
to work properly on our feedback page, the new sections need to
be created at the end of the page rather than at the top.

So, adjust the feedback addition logic to make it such that the
feedback is appended to the bottom of the page.

* Replace lambda with a method reference

* feedback: replace edit summary with something more relevant

The summary of the feedback page was unhelpful. Make it more helpful by
using a more helpful summary that at least mentions the version of the
app for which the feedback is posted.

* test: try to fix test case related to feedback change
2024-06-18 21:40:30 +02:00
translatewiki.net
0e39d93721
Localisation updates from https://translatewiki.net. 2024-06-17 14:02:06 +02:00
Adam English
c2ac0f659a
Add code on line 340. Replace the 'Add location' button with 'Edit location' button when user clicks yes in similar image dialog (#5756)
Co-authored-by: starrain <zxyadelaide@gmail.com>
2024-06-15 22:17:28 +02:00
translatewiki.net
68df749ad2
Localisation updates from https://translatewiki.net. 2024-06-13 14:02:35 +02:00
Kanahia
ef8f73adcc Improved pin clicking 2024-06-13 10:28:32 +05:30
Kanahia
e71c3f8e4c Merge branch 'commons-app-main' 2024-06-13 08:39:19 +05:30
Kanahia
f25caa15c6 merged pr 2024-06-13 08:38:28 +05:30