Commit graph

15261 commits

Author SHA1 Message Date
Anton Khorev
5603309026 Decrease new note marker opacity when zoomed out 2025-01-01 02:34:22 +03:00
Anton Khorev
feb7af2020 Let page.load proceed when zoomed out, disabling submit
Note that addNoteButton.hasClass("active") check in page.load is useless because page.unload removes this class.
2025-01-01 02:32:06 +03:00
Anton Khorev
17ab002c04 Remove active class from addNoteButton only in page.unload()
Same reasons as in the previous commit.
2025-01-01 02:13:59 +03:00
Anton Khorev
5542858315 Call removeNewNoteMarker() only from page.unload()
It was also called from noteCreated() but that triggered page.unload() via OSM.router.route().
2025-01-01 02:13:59 +03:00
Anton Khorev
6cc31259e4 Add addNewNoteMarker() and removeNewNoteMarker() functions
This ensures that marker is always added/removed together with its halo.
2025-01-01 02:13:59 +03:00
Anton Khorev
4ea6077ddb Convert newHalo() to addHalo() and removeHalo()
newHalo() wasn't always creating new halos. It had an event type argument that was checked against drag event. Depending on this check, newHalo() could remove the halo.
2025-01-01 01:53:55 +03:00
Anton Khorev
f1835c914c Move new note page.pushstate/popstate next to page.load 2024-12-31 23:47:55 +03:00
Anton Khorev
dc59b37fe1 Add new note marker to root map layer instead of noteLayer
We want the new note marker in the same layer with its halo. Also we don't want to put anything in noteLayer because it clears its contents on certain zoom levels.
2024-12-31 23:47:55 +03:00
Anton Khorev
18f3adbf5d Remove unused return value of addCreatedNoteMarker()
This function adds a marker to notes layer. This controller doesn't need to do anything with markers of existing notes.
2024-12-31 23:46:29 +03:00
Anton Khorev
ae5b7812cc Rename updateMarker() to addCreatedNoteMarker()
This function doesn't update any existing marker.
2024-12-31 23:46:29 +03:00
Anton Khorev
9d8ca8be11 Pass location instead of marker to createNote() 2024-12-31 23:42:40 +03:00
Anton Khorev
954eafd424 Move create note callback to button click handler 2024-12-31 23:37:34 +03:00
Anton Khorev
f169299b53 Don't pass url to createNote() 2024-12-31 23:25:11 +03:00
Anton Khorev
63a4f12550 Pass text instead of form to createNote() 2024-12-31 23:22:59 +03:00
Anton Khorev
fa0c12cdcd Disable new note submit button in click handler 2024-12-31 23:02:47 +03:00
Anton Khorev
c4709e2a05 Rename newNote to newNoteMarker 2024-12-31 22:37:41 +03:00
Tom Hughes
7565f5aa4a Merge remote-tracking branch 'upstream/pull/5440' 2024-12-30 12:40:11 +00:00
Tom Hughes
e0f3030353 Update leaflet-osm to latest upstream version 2024-12-30 12:19:34 +00:00
Tom Hughes
782e619de2 Merge remote-tracking branch 'upstream/pull/5448' 2024-12-29 19:11:13 +00:00
Tom Hughes
bdd36c763d Merge remote-tracking branch 'upstream/pull/5447' 2024-12-29 19:00:23 +00:00
Tom Hughes
2042cb1ac6 Merge remote-tracking branch 'upstream/pull/5446' 2024-12-29 18:55:54 +00:00
Tom Hughes
cffadd7c91 Merge remote-tracking branch 'upstream/pull/5442' 2024-12-29 18:43:29 +00:00
Anton Khorev
c7e038a4d0 Use resourceful routes for web mailboxes 2024-12-29 08:40:39 +03:00
Anton Khorev
fcfb7d4af1 Replace resent confirmation link with button 2024-12-29 06:28:26 +03:00
Anton Khorev
127e376bf0 Move code that runs after user save from save_new_user to create method 2024-12-29 04:43:18 +03:00
Anton Khorev
ef6edfff34 Test signup with confirmation email 2024-12-29 04:09:42 +03:00
Anton Khorev
c883f02161 Add within_content_body system test helper 2024-12-29 03:25:44 +03:00
Anton Khorev
c4e473ed89 Wrap diary entry location coordinates 2024-12-25 00:55:36 +03:00
Anton Khorev
df1c59280f Add revoke all actions to received blocks resource 2024-12-24 08:18:58 +03:00
Anton Khorev
2df389c97e Create received blocks resource 2024-12-24 07:54:50 +03:00
Anton Khorev
7a4115f090 Create issued blocks resource 2024-12-24 07:54:11 +03:00
Anton Khorev
0b755d8630 Create blocks table test helper module 2024-12-24 06:44:35 +03:00
Anton Khorev
3b0748831a Declare new block path on resources 2024-12-24 06:44:35 +03:00
Anton Khorev
1d31573b03 Test active nav tabs on blocks_on/by pages 2024-12-24 06:44:00 +03:00
Tom Hughes
967a901be8 Merge remote-tracking branch 'upstream/pull/5435' 2024-12-23 10:26:39 +00:00
Anton Khorev
5dbf32d945 Remove check_api_readable from api messages controller 2024-12-23 04:10:05 +03:00
Tom Hughes
99af52b478 Merge remote-tracking branch 'upstream/pull/5434' 2024-12-22 11:13:17 +00:00
Anton Khorev
45c90003c6 Use resourceful routes for api messages in/outbox 2024-12-22 07:03:41 +03:00
Anton Khorev
017f7da76f Merge branch 'pull/5428' 2024-12-20 19:06:16 +03:00
Tom Hughes
175bb0d006 Merge remote-tracking branch 'upstream/pull/5429' 2024-12-20 15:51:04 +00:00
Anton Khorev
cdce867183 Merge ApiCapability class into ApiAbility 2024-12-20 18:39:08 +03:00
Tom Hughes
8aeb16a50c Don't map multiple paths in a single route
This is deprecated in rails 8.0 and 8.1 will remove it.
2024-12-20 13:51:53 +00:00
Tom Hughes
e2904daf77 Merge remote-tracking branch 'upstream/pull/5427' 2024-12-20 13:45:23 +00:00
Tom Hughes
b1099e7349 Update stringio 2024-12-20 13:43:30 +00:00
Anton Khorev
6ddd6dedb1 Remove code that added now-unused field_with_errors css class 2024-12-20 16:10:40 +03:00
Tom Hughes
e11ab3c94c Update bundle 2024-12-20 08:58:26 +00:00
Tom Hughes
0b42688ae2 Merge remote-tracking branch 'upstream/pull/5425' 2024-12-20 08:39:16 +00:00
Tom Hughes
e41814d139 Merge remote-tracking branch 'upstream/pull/5424' 2024-12-20 08:38:28 +00:00
Tom Hughes
3510dfc5df Merge remote-tracking branch 'upstream/pull/5423' 2024-12-20 08:37:42 +00:00
Tom Hughes
92242f5297 Merge remote-tracking branch 'upstream/pull/5422' 2024-12-20 08:35:38 +00:00