Commit graph

95 commits

Author SHA1 Message Date
Anton Khorev
f4d84c4806 Add links to diaries in preferred languages 2024-01-03 13:10:08 +03:00
Anton Khorev
3776adcfc0 Add login notice for note discussions 2023-12-31 05:13:30 +03:00
Gregory Igelmund
9aed404888
test/system/messages_test.rb: Rename NoteCommentsTest -> MessagesTest 2023-12-29 09:42:18 -05:00
Tom Hughes
b2c5461fed Merge remote-tracking branch 'upstream/pull/4437' 2023-12-28 18:35:18 +00:00
Anton Khorev
333cce15c8 Add missing locale string for /oauth2/authorized_applications 2023-12-27 05:30:07 +03:00
Anton Khorev
d1763dd526 Fix messages heading update when message is deleted 2023-12-26 04:46:35 +03:00
Gregory Igelmund
d0ec5d1437 Add tests & factories for UserMute feature 2023-12-19 12:57:47 -05:00
Anton Khorev
14bd660114 Disable delete account button if there are recent changesets 2023-11-22 17:37:04 +03:00
Tom Hughes
e8af4b85bf Fix new rubocop warnings 2023-09-26 18:42:57 +01:00
Andy Allan
9bb8dd739a Use data attributes to pass alternative button labels
This allows the text to be defined in the html partials, instead
of looking up the i18n via javascript.
2023-02-01 17:24:47 +00:00
Andy Allan
9748ce301c Move browse#note to notes#show
This allows a more resourceful routing approach.
2023-02-01 17:13:41 +00:00
Tom Hughes
4704059096 Update tests for changes in osm-community-index 2023-01-14 15:12:23 +00:00
Andy Allan
6f471c72c9 Wait for the button to be disabled, before checking the tooltip behaviour
Rather than sleeping for a fixed period, we can use Capybara's built-in
ability to wait for elements to be present. Since we're only changing
the state of existing elements though, we need to wait for their
"disabled" property to be set.

Fixes some timing-related problems with the test suite.
2022-12-21 17:08:51 +00:00
Andy Allan
ace8e9a9c3 Fix redirection to wiki when terms are declined
Adds missing test to pick this up.

Fixes #3826.
2022-12-21 15:39:23 +00:00
Andy Allan
4ab134d869 Use fallbacks for OCI resource names
This uses the fallbacks for OCI translations. For example, if a
local chapter doesn't have an explicitly translated name, it will
use a template for osm-lc resources and fill in the appropriate
translated community name.

Fixes #3814
2022-12-14 14:54:01 +00:00
Tom Hughes
e2f071869f Increase delay to improve test reliability 2022-12-09 15:43:23 +00:00
Tom Hughes
6ffe31795b Make tooltip tests more robust 2022-11-30 12:58:13 +00:00
Tom Hughes
152414861c Merge remote-tracking branch 'upstream/pull/3688' 2022-11-30 12:19:57 +00:00
Tom Hughes
8cef62cd2c Merge remote-tracking branch 'upstream/pull/3301' 2022-11-22 18:47:24 +00:00
Anton Khorev
34a8d08209 Merge changeset <ol>s on Load more 2022-10-26 15:02:49 +03:00
Anton Khorev
15d2efe2df Display icon for current note only if this icon is defined 2022-10-09 08:03:14 +03:00
Anton Khorev
809a8b3db0 Remove note from edit link when it's not a current object 2022-10-05 22:58:33 +03:00
Anton Khorev
cf3fa3bb2d Use jquery interface for enabling/disabling tooltips 2022-09-23 13:34:40 +03:00
Anton Khorev
9657b92fad Merge branch 'master' into tooltips-enable-disable 2022-09-23 12:43:31 +03:00
Anton Khorev
84c8289e06 Fix zoom level related tooltip for Edit button 2022-09-13 05:26:49 +03:00
Anton Khorev
e8f2af833a Fix zoom level related tooltips for layer checkboxes 2022-09-13 04:20:57 +03:00
Anton Khorev
e409e83b48 Merge tooltip fixes/tests 2022-09-13 01:52:23 +03:00
Adam Hoyle
7e5cbe87ed Merge branch 'master' into feature/add-communities-page
# Conflicts:
#	Gemfile.lock
#	package.json
#	yarn.lock
2022-09-10 16:13:17 +01:00
Anton Khorev
1fc2a70c17 Rewrite bbox only in place history atom links 2022-09-07 22:13:57 +03:00
Tom Hughes
cd5b793dca Redirect to open issues when an issue is reassigned 2022-08-26 13:49:09 +01:00
Andy Allan
a0d0dee886 Return to issue index if you can't view reassigned issue
Fixes #3652
2022-08-24 14:05:19 +01:00
Andy Allan
68776e378c Fix remaining tooltips, and add tests
These were broken during the upgrade to bootstrap 5

Fixes #3632
2022-08-03 15:20:50 +01:00
Anton Khorev
31a39d3479 Fix zoom level related tooltips except for layer checkboxes 2022-07-29 18:07:32 +03:00
Anton Khorev
cbb8772685 Fix map key tooltip 2022-07-28 22:15:08 +03:00
Anton Khorev
9936b00d82 Wrap issue report rich text in div 2022-06-09 19:20:02 +01:00
Harry Wood
9401e451d1 Format report text with kramdown
Pass the text of reports ('details' field) through the RichText formatter to give us kramdown formatting support.
2022-04-29 01:31:39 +01:00
Harry Wood
db16445fc0 Add test of individual issue view with report
Add a test covering viewing an individual issue, a view which includes text of a report.
2022-04-29 01:29:44 +01:00
Andy Allan
819e5ecf94 Add system tests for communities page 2022-04-27 17:14:31 +01:00
Tom Hughes
03cad948e3 Fix new rubocop warnings 2022-03-15 19:24:09 +00:00
Andy Allan
6c1d73a509 Allow users to delete their own accounts
This PR allows users to delete their own accounts. The logic implemented matches
that currently used by the admins when they manually close accounts, although
there is room to be more complex in future e.g. completely removing accounts
with no content.

The error handling has been slightly adapted for namespaced controllers, by
anchoring the controller name with a leading forward slash.
2022-02-09 16:15:24 +00:00
Andy Allan
2731e7244a Add extra user transitions needed by the administrators 2022-02-02 16:37:50 +00:00
Andy Allan
1a11c4dc19 Use a state machine for user status
The user status is a bit complex, since there are various states and
not all transitions between them make sense.

Using AASM means that we can name and restrict the transitions, which
hopefully makes them easier to reason about.
2022-01-12 18:16:14 +00:00
Andy Allan
2f6a87e443 Use assert_link instead of assert page.has_link?
This leads to better error messages if the test fails
2022-01-06 15:04:03 +00:00
Andy Allan
d257c21740 Use assert_content instead of assert page.has_content?
The assert_content comes from capybara, and gives a much more helpful
error message if the test fails.
2022-01-06 13:16:47 +00:00
Andy Allan
4bed9c12a0 Fix display of suspension message when a user is suspended mid-session
Without the ability defined, the user is still logged out, but then
the deny_access check redirects to the login page. The re-login attempt
would then fail anyway, with an error message, but let's fix the abilities
and use the intended page.
2022-01-05 18:21:42 +00:00
Andy Allan
710bf75411 Rename file so that it's included in test runs 2021-09-16 18:04:37 +01:00
Andy Allan
95d406937e
Merge pull request #3268 from tomhughes/capitalisation
Improve capitalisation of page titles
2021-07-28 11:06:47 +01:00
Andy Allan
baee0b9a90 Enable test for showing flash message in the new language 2021-07-28 09:38:24 +01:00
Tom Hughes
abd98757b6 Improve capitalisation of page titles 2021-07-22 19:00:08 +01:00
Tom Hughes
f1935b1c57 Merge remote-tracking branch 'upstream/pull/3257' 2021-07-21 19:24:31 +01:00