Commit Graph

584 Commits

Author SHA1 Message Date
Daniel Klabbers
3c79517fbf fix: missing import for post filterer 2022-02-06 22:44:44 +01:00
flarum-bot
fe4812ceb8 Bundled output for commit eed25d18cb
Includes transpiled JS/TS.

[skip ci]
2022-02-02 19:04:10 +00:00
Rafał Całka
eed25d18cb feat: use ColorPreviewInput in the EditTagModal (#157) 2022-02-02 14:02:20 -05:00
Daniel Klabbers
08aec419d2 Release v1.2 2022-01-20 12:01:02 +01:00
flarum-bot
44414c227e Bundled output for commit b363cd18c2
Includes transpiled JS/TS.

[skip ci]
2022-01-20 09:00:38 +00:00
Alexander Skvortsov
b363cd18c2 chore: flarum-cli audit infra --fix 2022-01-20 03:59:33 -05:00
Alexander Skvortsov
714a74518e Some fixes to tag metadata calculations (#154)
* If a discussion doesn't exist, it can't be the last posted discussion

This fixes some rare errors where deleting the only post in the last posted discussion of a tag triggers a DB integrity exception.

* Decrement tag's discussion count when deleting a post deletes an unhidden discussion.

Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
2022-01-13 16:41:37 -05:00
flarum-bot
13f5f3ff7f Bundled output for commit 73cae9bcdc
Includes transpiled JS/TS.

[skip ci]
2021-12-23 00:47:21 +00:00
Sami Mazouz
73cae9bcdc feat: Improve UX with bypass tag requirements (#153) 2021-12-22 19:46:04 -05:00
flarum-bot
d47f2bfc53 Bundled output for commit f47f3f601d
Includes transpiled JS/TS.

[skip ci]
2021-12-14 18:20:22 +00:00
Alexander Skvortsov
f47f3f601d Don't load discussions on admin (#152)
Fixes https://github.com/flarum/core/issues/3201
2021-12-14 13:19:08 -05:00
Sami Mazouz
f7777ff9e3 perf: Fix eager loading of tag state relation in other endpoints (#151) 2021-12-13 11:34:51 +01:00
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