157 Commits
Author SHA1 Message Date
Discourse Translator Bot e74f4126d1 I18N: Update translations (#118) 2026-06-01 20:59:47 +02:00
Discourse Translator Bot 0ea590fb55 I18N: Update translations (#117) 2026-04-08 11:35:49 +02:00
Jarek Radosz 45ee34817c DEV: Update linting 2026-03-26 13:41:37 +00:00
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
Discourse Translator Bot 21effd958e I18N: Update translations (#112) 2026-03-20 09:53:21 +01:00
8f2ab219f1 FEATURE: Add decorateCookedSignature plugin API method (#109)
* FEATURE: Add decorateCookedSignature plugin API method

Adds a new plugin API method that allows themes and plugins to
decorate signature content, similar to decorateCookedElement for
posts and decorateChatMessage for chat messages.

Usage:
  api.decorateCookedSignature((element, helper, post) => {
    // modify signature element
  });

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-authored-by: Gabriel Grubba <[email protected]>
2026-03-19 12:58:30 -04:00
Discourse Translator Bot e0d89ab718 I18N: Update translations (#110) 2026-03-19 09:57:56 +01:00
Discourse Translator Bot 4c78362fe8 I18N: Update translations (#108) 2026-03-13 22:01:46 +01:00
Jarek Radosz 5c2e2421e7 DEV: Update linting (#107) 2026-03-13 12:46:37 +00: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 50ef7ff0b3 DEV: Add the d-compat branch workflow (#106) 2026-03-11 22:45:14 +00:00
dependabot[bot] badcb1d339 Bump rack from 3.2.4 to 3.2.5 (#104)
Bumps [rack](https://github.com/rack/rack) from 3.2.4 to 3.2.5.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/v3.2.4...v3.2.5)

---
updated-dependencies:
- dependency-name: rack
  dependency-version: 3.2.5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-17 22:43:38 +00:00
David Taylor 9e311798b6 DEV: Pin version for Discourse < 2026.2.0-latest (#103) 2026-02-11 16:46:22 +01: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
Régis Hanol f23bdbceeb DEV: Modernize signature preferences component (#101)
This updates the signature preferences connector to use modern Ember patterns and the new plugin API.

Changes:
- Convert to Glimmer component with `@service` injection
- Replace classic `<Input>` with native `<input>` and `{{on}}` modifier
- Use new `api.addSaveableCustomFields("profile")` API instead of `modifyClass save()` override
- Remove dead `@showUploadModal` argument from `DEditor`
- Add CSS to hide preview panel and match bio editor width

The `modifyClass` pattern for saving `custom_fields` was broken because `saveAttrNames` is now a getter that returns a fresh array on each call, so pushing to it in `save()` had no effect. The new `addSaveableCustomFields` API uses value transformers to properly add "`custom_fields`" to the save attributes.

cf. https://github.com/discourse/discourse/pull/36757
2025-12-23 18:03:14 +01:00
Sérgio Saquetim bf969e9979 DEV: Remove the legacy widget code (#94)
Remove deprecated discourse.post-stream-widget-overrides and associated legacy widget customizations.

This cleanup reduces technical debt, ensures future maintainability, and aligns with the latest framework improvements.
2025-11-26 15:26:20 -03:00
dependabot[bot] a8a305227d Bump rack from 3.2.2 to 3.2.3 (#99)
Bumps [rack](https://github.com/rack/rack) from 3.2.2 to 3.2.3.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/v3.2.2...v3.2.3)

---
updated-dependencies:
- dependency-name: rack
  dependency-version: 3.2.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-11 00:24:05 +02:00
Jarek Radosz fcbbdf8f3c DEV: Update linting (#98) 2025-10-09 13:40:02 +01: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
Alan Guo Xiang Tan 09488b45f4 DEV: Pin version for Discourse < 3.6.0.beta1-dev (#92) 2025-08-26 17:00:11 +08:00
Sérgio Saquetim 7d6b0623ec DEV: Added compatibility with the Glimmer Post Stream (#91)
- Introduces a new `PostSignature` component to handle user signatures, ensuring compatibility with the Glimmer post stream.
- Updates initializers to integrate the new component and maintain compatibility with existing features.
2025-07-08 17:45:13 -03:00
dependabot[bot] c0d69bd03f Bump rack from 3.1.12 to 3.1.16 (#90)
Bumps [rack](https://github.com/rack/rack) from 3.1.12 to 3.1.16.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/v3.1.12...v3.1.16)

---
updated-dependencies:
- dependency-name: rack
  dependency-version: 3.1.16
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-21 17:55:44 +02:00
Jarek Radosz def8ece32c DEV: Update linting config and run gjs-codemod (#89) 2025-06-05 11:39:33 +01:00
Discourse Translator Bot 98a570abf4 Update translations (#87) 2025-05-07 15:18:09 +02: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
David Taylor 77467c1372 FIX: preferences controller override following core change (#85) 2025-03-26 22:57:27 +00:00
Jarek Radosz f472444ae9 DEV: Update linting (#84) 2025-03-17 11:03:44 +00:00
dependabot[bot] d4c1243fff Bump rack from 3.0.11 to 3.0.12 (#81)
Bumps [rack](https://github.com/rack/rack) from 3.0.11 to 3.0.12.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/commits/v3.0.12)

---
updated-dependencies:
- dependency-name: rack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-13 23:26:41 +00:00
David Taylor 7d731ec462 DEV: Bump dependencies and fix linting (#80) 2025-02-06 17:57:18 +01:00
David Taylor 336631c745 DEV: Pin version for Discourse <3.5.0.beta1-dev (#79) 2025-02-05 20:17:08 +01:00
David Taylor 46f0eec457 DEV: Colocate component templates (#78) 2025-01-09 17:42:56 +01:00
Discourse Translator Bot b58d6d2f60 Update translations (#77) 2024-12-10 20:17:22 +01:00
Discourse Translator Bot 41d4240fca Update translations (#76) 2024-12-06 18:05:21 +01:00
David Taylor cd912aeeb9 DEV: Update linting (#75) 2024-11-28 17:13:47 +01:00
David Taylor 02354a373e DEV: Update linting (#74) 2024-11-20 18:33:54 +01:00
dependabot[bot] 157faf7add Bump cross-spawn from 7.0.3 to 7.0.6 (#73)
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-19 10:56:52 +00:00
David Taylor 4e7410ac2f DEV: Update eslint config (#72) 2024-11-19 11:30:46 +01:00
dependabot[bot] ea0de00103 Bump rexml from 3.3.6 to 3.3.9 (#71)
Bumps [rexml](https://github.com/ruby/rexml) from 3.3.6 to 3.3.9.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.3.6...v3.3.9)

---
updated-dependencies:
- dependency-name: rexml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-28 20:41:55 +01:00
Kelv b13c2f2d63 DEV: Switch to use pnpm (#69) 2024-10-14 13:54:57 +02:00
dependabot[bot] ecadbb0001 Bump micromatch from 4.0.5 to 4.0.8 (#68)
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-01 12:35:55 +02:00
dependabot[bot] c0dfd8a043 Bump rexml from 3.3.3 to 3.3.6 (#67)
Bumps [rexml](https://github.com/ruby/rexml) from 3.3.3 to 3.3.6.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.3.3...v3.3.6)

---
updated-dependencies:
- dependency-name: rexml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-01 12:30:34 +02:00
dependabot[bot] 9d4ae2bb2c Bump rexml from 3.2.8 to 3.3.3 (#66)
Bumps [rexml](https://github.com/ruby/rexml) from 3.2.8 to 3.3.3.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.2.8...v3.3.3)

---
updated-dependencies:
- dependency-name: rexml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-05 13:18:54 +02:00
Natalie Tay f6cf858342 DEV: Pin plugin for Discourse < 3.4.0.beta1-dev (#65) 2024-08-02 17:12:35 +08:00
Discourse Translator Bot e0f24180bb Update translations (#64) 2024-07-31 00:14:58 +02:00
Joffrey JAFFEUX 6cb80325c7 UX: adds a placeholder for signature input (#63)
The placeholder makes it clear the the field expects an URL.

Also removes an un-necessary wrapping div.
2024-07-25 08:54:29 +10:00
dependabot[bot] bb5ff878d3 Bump braces from 3.0.2 to 3.0.3 (#62)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-17 10:47:32 +02:00
Discourse Translator Bot 2771e0c8e9 Update translations (#61) 2024-05-31 12:29:59 +02:00
Loïc Guitaut 7794e0c753 DEV: Update rubocop-discourse to version 3.8.0 (#60) 2024-05-28 11:43:48 +02:00