20 Commits
Author SHA1 Message Date
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
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
David Taylor 77467c1372 FIX: preferences controller override following core change (#85) 2025-03-26 22:57:27 +00:00
Jarek Radosz a5606e0d4c DEV: Update linting (#55) 2024-01-16 17:48:38 +01:00
Jarek Radosz 18b047121b DEV: General cleanup (#28)
Drop es6 suffix, fix Ember global usage, fix typos, update deps, add prettierrc, remove an obsolete codepath, fix pluginId.
2022-04-06 12:19:24 +02:00
Penar Musaraj 8df68d2a7b DEV: Fix JS linting (#22) 2022-01-19 17:30:13 -05:00
Penar Musaraj a4cfe14e81 DEV: Fix linting (#21) 2022-01-19 13:09:21 -05:00
communiteqandRichard e5147551f0 Add 'signatures_visible_by_default' setting (#17)
Co-authored-by: Richard <[email protected]>
2022-01-19 11:04:31 -03:00
Joffrey JAFFEUX a3433abfef DEV: apply coding standards (#6) 2020-09-04 14:37:08 +02:00
Penar Musaraj 59bdc29622 Fix linting issue due to core Prettier update 2019-06-26 11:24:42 -04:00
David Taylor 3146fb48de DEV: Apply prettier 2018-10-22 19:49:33 +01:00
Rafael dos Santos Silva dc1092f336 FEATURE: 2.0
- Cook on advanced mode is server side and properly cached now

- Remove deprecated dependencies on client-side code

Attention: Users on advanced mode from previous versions should re-enter
their signatures.
2017-07-24 21:18:11 -03:00
Robin Ward f162247512 FIX: for Ember 2.x support 2016-11-29 17:15:45 -05:00
Rafael dos Santos Silva 26716933e4 FIX: Fix signature position after VDom migration 2016-08-10 18:33:44 -03:00
Rafael dos Santos Silva eba16235ab FIX: Fix advanced mode for Discourse 1.6 2016-08-10 18:33:00 -03:00
Rafael dos Santos Silva 319230e703 1.0.0 Version
This version adds advanced mode, and some little refactors
2016-04-08 17:30:39 -04:00
Robin Ward 852e898c39 I changed the decorateWidget API slightly, sorry! 2016-02-22 11:18:23 -05:00
Robin Ward 89f6cf5bc4 Upgrade Plugin to new API 2016-02-19 14:47:56 -05:00
Rafael dos Santos Silva 65d24d2b98 FIX: Forgot needed files in previous commit 2015-12-07 21:54:05 -02:00