1
0
mirror of synced 2026-08-05 18:26:57 +00:00

7 Commits

Author SHA1 Message Date
Gabriel Grubba 1f36d20292 FIX: NaN issue and remaining not being tracked (#113)
With https://github.com/discourse/discourse-signatures/pull/105 we had an issue where the character count would show NaN when the signature was empty.

For some reason it was not being auto tracked so when you hit the keys now it should update the UI as expected.
2026-03-20 17:24:56 -03:00
Rafael dos Santos Silva 3af3307708 FEATURE: Add group, category, and display restrictions for signatures (#105)
* FEATURE: Add group, category, and display restrictions for signatures

Adds five new site settings to control signature behavior:

- signatures_allowed_groups: restrict signatures to specific groups
  (server-side enforced in both serializers and user update hook)
- signatures_show_in_categories: limit signature display to specific categories
- signatures_first_post_only: only show signatures on the OP
- signatures_max_length: cap advanced mode signature length
- signatures_max_image_height: constrain signature image height

Also hardens URL validation (HTTP/HTTPS only) and reduces
signature_url max_length from 32KB to 2048.

All defaults are backward-compatible (empty/false = no change).
2026-03-12 15:52:35 -04:00
Jarek Radosz 6bf2d448bc DEV: Update linting and add types (#102)
* DEV: Update linting and add types

* DEV: Update linting and add types
2026-01-28 11:52:21 +00:00
Alan Guo Xiang Tan dd7a67d0e2 DEV: Connecting to external URLs causes tests to hang (#96)
Using an external URL was causing the browser to actually attempt to
connect to it. Sometimes, a response from the external URL will take
more than 30 seconds to return a response causing the page to never fire
the load event before playwright's timeout is reached.
2025-10-02 23:31:32 +08:00
Joffrey JAFFEUX 8a2e7fbbdf DEV: fix flakey spec (#95)
Creating the post ahead of time ensures it's ready when we want to visit it. There's also no need to reload the user as we do a visit which triggers a full page refresh.
2025-09-23 15:52:42 +02:00
Régis Hanol 675089accb FIX: saving preferences wasn't working (#93)
register_editable_user_custom_field is "singular" and only access one
"custom field" as a parameter.

the fix was to call register_editable_user_custom_field for each custom
fields this plugin uses.

also added a bunch of system specs to ensure the basics of the plugin
actually works.

Internal ref - t/161823
2025-09-02 08:30:23 +10:00
Loïc Guitaut 3a2fdda626 DEV: Add system spec to check core features are working fine (#86) 2025-04-09 14:27:17 +02:00