Commit Graph

338 Commits

Author SHA1 Message Date
Thomas Citharel ae027b4e39
Fix GraphQL cache errors because of missing id on some queries
Also moves some queries to cache-and-network policy and improve
typescript a bit

Closes #387

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-21 12:14:53 +02:00
Thomas Citharel a40c9fd4b5
Handle timezone not found in preferences
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-21 09:04:43 +02:00
Thomas Citharel 28887722dc
Add picture to 404 page
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-20 13:29:27 +02:00
Thomas Citharel fb8e94c4e3
Show languages on instance about
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-20 10:36:43 +02:00
Thomas Citharel 23dcb47ce5
Make sure only group moderators can update/delete events, posts
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-20 09:58:17 +02:00
Thomas Citharel 4e02885692
Add title information to post list page
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-20 09:44:02 +02:00
Thomas Citharel 31bc2f7c10
Fix redirection after deleting a post
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-20 09:44:00 +02:00
Thomas Citharel 8c9546ff2a
Improve member management
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-15 14:24:51 +02:00
Thomas Citharel f6480cb37e
Improve dashboard
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-15 11:04:05 +02:00
Thomas Citharel dacec2672b
Fix error message always showed
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-14 19:10:57 +02:00
Thomas Citharel a9c8875f49
Fix title level on homepage
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-14 18:57:05 +02:00
Thomas Citharel f96510a0b2
Couple of i18n and homepage fixes
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-14 12:43:52 +02:00
Thomas Citharel 93cecbe49c
Improve build times
* Fix bulma/buefy being imported many (many !!!) times

* Remove javascript-time-ago because date-fns pretty much does the same
thing

* Make sure languages are loaded asynchronously

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-14 09:46:33 +02:00
Thomas Citharel 3f2664cf47
Improve edit page on mobile
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-13 17:03:48 +02:00
Thomas Citharel 92bff34df8
Fix AccountSettings for 3rd-party auth
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-13 15:05:32 +02:00
Thomas Citharel 1d82b29d61
Improve UI on home & register pages
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-12 08:50:51 +02:00
Thomas Citharel c296381ed6
[Security] Fix events being editable by other users that organizers
Closes #385

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-09 18:12:35 +02:00
Thomas Citharel 75fc1f125a
Show a proper error message on creating/updating an event
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-09 16:09:45 +02:00
Thomas Citharel 9430f1145f
Fix profiles not administrators able to edit a group
Related to #385

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-09 16:09:44 +02:00
Thomas Citharel e895ba32be
Prevent creating a new event when editing one
Close #381

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-08 16:16:42 +02:00
Thomas Citharel 77970b8091
Improve anonymous participation and confirmation
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-07 17:05:15 +02:00
Thomas Citharel 586d8c440d
Add languages to admin settings
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-07 16:38:24 +02:00
Thomas Citharel 02eac30c9b
Expose more statistics
* differenciate local & all events/comments/groups
* add instance follows/followings

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-07 10:52:29 +02:00
Thomas Citharel 375e6d2bef
[Groups] Allow to promote/demote to moderator
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-06 15:38:53 +02:00
Thomas Citharel 27a75cd0df
Improve some texts on account registration and email notification
settings

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-06 15:36:19 +02:00
Thomas Citharel 641abfd696
Improve profile registration
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-06 09:54:07 +02:00
Thomas Citharel efae6c3510
Specify that only users with account can comment
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-05 16:42:31 +02:00
Thomas Citharel afb7d75307
Fix invitations
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-02 16:19:31 +02:00
Thomas Citharel 5c11bef368
Better handle group invitation
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-02 10:46:58 +02:00
Thomas Citharel d41aa3b2fd
Disallow accessing identity page when logged in
And disallow calls to fetchPerson when not our own profile or unlogged

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-02 09:53:32 +02:00
Thomas Citharel 75b3a52077
Make sure we don't submit the event form twice
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-01 18:25:57 +02:00
Thomas Citharel 331f9bc915
Fix report button showing if anonymous reporting is disabled
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-01 17:51:59 +02:00
spf 7b6bc26212
Little typo 2020-10-01 15:58:37 +02:00
Thomas Citharel 2e67c423db
Fix group event list
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-01 15:57:49 +02:00
Thomas Citharel aced4d039b
Fix posts and rework graphql errors
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-01 15:07:15 +02:00
Thomas Citharel 92367a5f33
Allow to report a group
And multiple group tweaks

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-09-30 15:26:58 +02:00
Thomas Citharel c8449a0693
Move contact to organized by
And minor things

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-09-30 10:45:22 +02:00
Thomas Citharel a600720062
Add local groups as statistics
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-09-30 10:42:19 +02:00
Thomas Citharel 49a5725da3
Improve and activate groups
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-09-29 10:25:00 +02:00
Thomas Citharel 9b726fabb5
Make sure anonymous participation doesn't show up when logged-in
And improve a little typescript usage

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-09-22 15:04:29 +02:00
Thomas Citharel 4e6c37bb75
Fix some CSS issues
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-09-22 12:20:19 +02:00
Thomas Citharel 9b5894866c
Fix number of events per paginated search
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-09-22 12:00:16 +02:00
Thomas Citharel d334f8237f
Add pagination to search
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-09-22 11:45:54 +02:00
Thomas Citharel b0e8a32d2a
Improvements to group page
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-09-21 11:18:49 +02:00
Thomas Citharel 952e592e2c
Show group address in group metadata
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-09-02 10:57:19 +02:00
Thomas Citharel aa7d919c98
Show user connection IP and date in admin
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-08-31 16:57:13 +02:00
Thomas Citharel 5f0497144a
Improve texts
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-08-31 14:25:21 +02:00
Thomas Citharel 9b0b753064
Run Prettier with updated version
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-08-27 15:41:48 +02:00
Thomas Citharel 1984f71cbf
Add group admin profiles
And other fixes

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-08-27 12:12:54 +02:00
Thomas Citharel 4782221ef4
Allow to update a member role
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-08-20 10:54:58 +02:00
Thomas Citharel 2ea6286d3f
Fix account suspension
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-08-18 17:21:58 +02:00
Thomas Citharel 4a87d520b6
Adapt for Buefy 0.9 <b-table> scope changes
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-08-18 15:50:50 +02:00
Thomas Citharel 156eba0551
Improve member adding and excluding flow
Allow to exclude a member

Send emails to the member when it's excluded

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-08-18 14:37:31 +02:00
Thomas Citharel 55003c73ab
Improve group view
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-08-11 14:46:58 +02:00
Thomas Citharel 727814c6a7
Add address to public group page and handle empty collections
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-08-11 11:45:21 +02:00
Thomas Citharel 4b6f698b77
Don't show the delete post button when creating a new post
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-08-11 11:44:07 +02:00
Thomas Citharel 1ed83e463b
Bring back tag search
Closes #369

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-08-10 18:54:25 +02:00
Thomas Citharel 3c077c59ad
Allow to search groups by location
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-08-10 15:40:24 +02:00
Thomas Citharel 3bae65374f
Add group search
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-08-10 15:40:23 +02:00
Thomas Citharel b4f500532f
Allow to filter by begins_on and ends_on. Redirect explore to search
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-08-10 15:40:21 +02:00
Thomas Citharel 2198b2cb87
Allow to filter search by multiple tags
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-08-10 15:40:19 +02:00
Thomas Citharel 3807ab1b63
Allow events to be searched by location and period
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-08-10 15:40:18 +02:00
Thomas Citharel 44c84ab665
Register on %instanceName%, not Mobilizon
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-07-31 11:08:03 +02:00
Thomas Citharel 9c9f1385fb
Introduce group posts
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-07-30 16:55:35 +02:00
Thomas Citharel acb938da74
Fix elements overflowing on map modal
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-07-07 10:54:10 +02:00
Thomas Citharel a768c4906f
Fix event report modal trigger
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-07-07 09:33:34 +02:00
Thomas Citharel ed02ee4e49 Merge branch 'fix-search-result-on-mobile' into 'master'
Fix search results width on mobile

See merge request framasoft/mobilizon!509
2020-07-06 18:58:56 +02:00
Thomas Citharel f90aa92ebb Merge branch 'fix-my-events-pagination' into 'master'
Fix MyEvents pagination

See merge request framasoft/mobilizon!508
2020-07-06 18:46:31 +02:00
Thomas Citharel 7167d64e1c
Fix search results width on mobile
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-07-06 18:36:51 +02:00
Thomas Citharel 300fd8b729
Fix MyEvents pagination
And reverse order for past events so that it's coherent

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-07-06 17:35:03 +02:00
Thomas Citharel 69841cbb45
Fix 3rd-party auth issues
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-07-06 17:33:40 +02:00
Thomas Citharel 9a080c1f10
Introduce support for 3rd-party auth (OAuth2 & LDAP)
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-07-06 15:42:59 +02:00
Thomas Citharel c3f73f4f87
Rename conversation strings to discussion
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-26 12:08:07 +02:00
Thomas Citharel 39c03301c9
Allow to properly move group resources
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-26 11:48:05 +02:00
Thomas Citharel 04f037a20b
Fix event deletion from homepage
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-25 14:09:01 +02:00
Thomas Citharel c5255d9f82
Run prettier on files
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-25 12:30:29 +02:00
Thomas Citharel 6797075461
Fix settings menu
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-25 12:30:29 +02:00
Thomas Citharel 703de9c638
Improve color palette
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-24 10:05:22 +02:00
Thomas Citharel 4fc8816a1f
Fix redirection after event deletion
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-23 17:20:21 +02:00
Thomas Citharel e856566361
Improve public comments display
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-23 17:20:09 +02:00
Thomas Citharel 4d216f2406
Add content formatting on instance long description
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-23 11:14:07 +02:00
Thomas Citharel a5ccb79a51
Fix settings menu allowing showing everything for everyone
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-23 10:35:16 +02:00
Thomas Citharel f5241954bd
Improve Terms of Service
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-23 10:35:15 +02:00
Thomas Citharel de2a4746f8
UI fixes for moderation section
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-18 16:57:11 +02:00
Thomas Citharel e030eab93d
Fix event stats participants / going incoherent
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-18 16:24:00 +02:00
Thomas Citharel 0658651d7f
Login UI improvements
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-18 16:01:14 +02:00
Thomas Citharel b61d12b5fd
Participation panel revamp and fixes
Apollo is a pain in the ass with pagination & filters, so this removes
the tabs system and uses a <select> to filter instead

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-18 15:52:19 +02:00
Thomas Citharel 8676582080
Fixup
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-17 16:45:52 +02:00
Thomas Citharel b5f295c5d9
UI improvements
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-17 15:55:21 +02:00
Thomas Citharel 5cb3f478ae
Allow to change language
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-16 18:00:27 +02:00
Thomas Citharel 08b4fb9b08
Stop using metadata for sharing text
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-16 16:22:36 +02:00
Thomas Citharel 260b9592f5
Improve notification settings
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-16 16:15:38 +02:00
Thomas Citharel ba08d2d515
Improve popovers
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-16 12:03:54 +02:00
Thomas Citharel d020b645f6
Fix event places left indicator
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-16 11:10:06 +02:00
Thomas Citharel ef6a1a21ac
Even more fixes
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-15 19:41:11 +02:00
Thomas Citharel 918dc6f10b
Multiples fixes
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-15 18:12:49 +02:00
Thomas Citharel 47297127a2
Improve comment section
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-15 16:50:01 +02:00
Thomas Citharel 97197e3811
Improve registration page and add a rules option
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-15 11:01:49 +02:00
Thomas Citharel beb35a09c6
Introduce basic user and profile management
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-12 19:16:40 +02:00
Thomas Citharel da4ea84baf
Multiple fixes
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-11 11:45:52 +02:00