Commit Graph

550 Commits

Author SHA1 Message Date
Alexander Skvortsov
c1069ff035 Basic validation for tags slugs (#150)
* Co-authored-by  <sychocouldy@gmail.com>
2021-11-06 06:46:17 -04:00
Sami Mazouz
cabe25acb4 perf: Eager load tags state with actor id (#149) 2021-11-02 12:08:15 +01:00
flarum-bot
892259f448 Bundled output for commit 44bdb68ccd
Includes transpiled JS/TS.

[skip ci]
2021-10-20 20:49:41 +00:00
Alexander Skvortsov
44bdb68ccd Comply with bypassTagCounts permission in UI (#148) 2021-10-20 16:48:13 -04:00
flarum-bot
619317d023 Bundled output for commit 3fe2ccc160
Includes transpiled JS/TS.

[skip ci]
2021-10-13 09:02:29 +00:00
David Wheatley
3fe2ccc160 attempt build fix 2021-10-13 10:01:11 +01:00
Daniel Klabbers
f03e666a77 use ^4.46.0 for webpack 2021-10-13 10:30:56 +02:00
Daniel Klabbers
9a339fea6a lock webpack to 4.* 2021-10-13 10:28:53 +02:00
Daniel Klabbers
77f625df34 compiled for v1.1.0 2021-10-13 10:22:20 +02:00
David Wheatley
91c115095b chore: bump bundled extension constraint to core 1.1 2021-10-13 08:05:09 +01:00
flarum-bot
ef2012f6a1 Bundled output for commit 022e480084
Includes transpiled JS/TS.

[skip ci]
2021-10-12 01:27:15 +00:00
Alexander Skvortsov
022e480084 Release v1.1.0 2021-10-11 21:18:24 -04:00
flarum-bot
ebe0f74618 Bundled output for commit 5192276062
Includes transpiled JS/TS.

[skip ci]
2021-10-07 22:34:32 +00:00
Alexander Skvortsov
5192276062 Make clicking edit tag button easier
Currently, tags will be dragged immediately on touch, which makes it very hard to click the edit button, as any non-perfect touch drags the tag. This commit adds a delay on mobile devices only, so that the tag can be both dragged and edited easily.

Closes https://github.com/flarum/core/issues/3098
2021-10-07 18:22:36 -04:00
Sami Mazouz
de6d291a09 fix: $relationsArray can end up containing closures (#146)
* fix: `$relationsArray` can end up containing closures

Not sure I didn't simply unset the first time around..

* Use a new array instead of modifying one
2021-09-29 21:58:32 +01:00
SychO9
ea5ee5a9a3 Merge remote-tracking branch 'origin/1.0.5' 2021-09-20 16:56:28 +01:00
Sami Mazouz
b020db4f46 Fix unauthorized view of restricted tags (#145)
* test: Not allowed to see tags even if included as a relation
* fix: Scope loaded related tags where actor has permission
2021-09-20 16:51:28 +01:00
Sami Mazouz
2f37a8bd58 Fix discussions hidden from all users including admins (#140)
* test: Start by adding tests for this case scenario
* fix: All discussions hidden from everyone when minSecondary > 0 and no secondary tags
* test: Test the scenario for primary tags as well
* fix: Properly fix the general case of more tags required than available
* Adjust to only check with the `viewForum` ability
* Test Cases for private discussions
2021-09-20 16:19:43 +01:00
flarum-bot
ec0184cb66 Bundled output for commit 7bada1f578
Includes transpiled JS/TS.

[skip ci]
2021-09-13 21:30:19 +00:00
Rafael Horvat
7bada1f578 Exported (compat) getSelectableTags utils (#144) 2021-09-13 22:29:08 +01:00
Sami Mazouz
df725cace6 perf: Eager load actor tag states (#143) 2021-08-26 21:57:36 +01:00
Ian Morland
e8111a6f8f Pass filter params (#141)
* Pass  params to getApiDocument

* Reverse arrays
2021-08-26 10:48:12 +01:00
Clark Winkelmann
7a0923dce2 Update nojs view to use slug driver. Fixes #3013 (#142) 2021-08-21 16:30:37 +01:00
flarum-bot
b791263702 Bundled output for commit 12a9d7fd80
Includes transpiled JS/TS.

[skip ci]
2021-08-16 09:19:23 +00:00
Sami Mazouz
12a9d7fd80 [1.x] Custom Colorising with CSS Custom Properties (#139)
* Use css variables for tag labels
* Use css variables for hero
* Fix color when links force override (event posts)
* Use css variables for start discussion button
* Use css variables for tag tiles
* Use css variables for sidenav links
* Use `classList` instead
2021-08-16 10:18:12 +01:00
Sami Mazouz
fb365c98e5 Load parent relation for proper tag listing (#137) 2021-07-15 13:18:17 +01:00
Daniel Klabbers
222a0de3ef fixes flarum/core#2907 discussion shows parent after child due to missing parent include 2021-06-11 00:25:24 +02:00
Daniel Klabbers
a72f0a8851 changelog for v1.0.3 2021-06-11 00:25:24 +02:00
flarum-bot
94eeb34ac0 Bundled output for commit 51790494ce
Includes transpiled JS/TS.

[skip ci]
2021-06-10 22:19:21 +00:00
Daniel Klabbers
51790494ce fixes the parent include for tags when visiting index from any other page 2021-06-11 00:18:17 +02:00
Daniel Klabbers
9627e40e72 changelog for 1.0.2 2021-06-07 12:11:11 +02:00
flarum-bot
7df97be80a Bundled output for commit a0f4dcc62a
Includes transpiled JS/TS.

[skip ci]
2021-06-07 10:09:41 +00:00
SychO9
a0f4dcc62a Fix wrong subtags listing in sidebar 2021-06-07 12:08:40 +02:00
Daniel Klabbers
09e031ae23 changelog for v1.0.1 2021-06-02 08:56:52 +02:00
flarum-bot
a08b3d18e6 Bundled output for commit 3fb216b99e
Includes transpiled JS/TS.

[skip ci]
2021-06-02 06:54:57 +00:00
SychO9
3fb216b99e Load all tags in permission grid 2021-06-02 08:53:59 +02:00
Daniel Klabbers
af7390eb4c fixes flarum/core#2889 locale uses count instead of generated tags 2021-05-27 09:12:44 +02:00
Daniel Klabbers
e982e0206d fix branch alias 2021-05-25 22:53:19 +02:00
Daniel Klabbers
df02f22594 changes for stable 2021-05-25 17:10:18 +02:00
Sami Mazouz
a6695e10cd Check that included array exists (#132) 2021-05-17 16:16:00 -04:00
flarum-bot
95fc846c04 Bundled output for commit 29525daa9b
Includes transpiled JS/TS.

[skip ci]
2021-05-17 04:21:14 +00:00
Alexander Skvortsov
29525daa9b Fix logic for TagListState
This should load in the requested includes, not just parent and lastPostedDiscussion
2021-05-17 00:20:09 -04:00
Alexander Skvortsov
8468a05b87 Unset tags relation after setting (#131)
This ensures that the proper tag values are returned to the API by clearing any cached tags before returning a response. It also makes sure that the listeners to the `DiscussionWasTagged` event won't have old data under `$event->discussion->tags`.

Fixes https://github.com/flarum/core/issues/2514
2021-05-16 23:28:54 -04:00
SychO9
3635dbad19 Fix $tag object getting overriden by last array item 2021-05-16 23:53:34 +01:00
Alexander Skvortsov
bcb5577de5 Bump composer reqs for 1.0.0 2021-05-16 18:29:46 -04:00
SychO9
88f44ca0d0 Use core dev-master for tests 2021-05-15 22:54:01 +01:00
David Wheatley
e15aaf428c Update copyright year 2021-05-15 00:58:11 +01:00
flarum-bot
91891da48b Bundled output for commit 0ec87f5b43
Includes transpiled JS/TS.

[skip ci]
2021-05-13 00:03:13 +00:00
Alexander Skvortsov
0ec87f5b43 Apply fixes from StyleCI 2021-05-13 00:02:06 +00:00
Alexander Skvortsov
f9e8c51e76 Don't add filter q if not defined
Otherwise, the backend controller will think we are searching, not filtering, and fail to apply filters.
2021-05-12 20:01:04 -04:00