David Taylor
5605dba85c
DEV: Automatically annotate plugin models alongside core models
2019-05-13 16:37:47 +01:00
Guo Xiang Tan
9059a8ca90
Fix the build.
2019-05-13 10:16:26 +08:00
Sam Saffron
30990006a9
DEV: enable frozen string literal on all files
...
This reduces chances of errors where consumers of strings mutate inputs
and reduces memory usage of the app.
Test suite passes now, but there may be some stuff left, so we will run
a few sites on a branch prior to merging
2019-05-13 09:31:32 +08:00
Guo Xiang Tan
152238b4cf
DEV: Prefer public_send
over send
.
2019-05-07 09:33:21 +08:00
Joffrey JAFFEUX
1d784c7a18
FEATURE: adds support for dates in polls ( #7450 )
2019-04-29 10:01:19 +02:00
Joffrey JAFFEUX
0284910125
Update translations
2019-04-24 15:02:04 +02:00
Robin Ward
21b975e71a
FIX: Broken plugin spec
2019-04-23 15:29:26 -04:00
Neil Lalonde
e7a6f0698d
Update translations
2019-04-05 10:02:54 -04:00
Bianca Nenciu
3cf922a58a
FIX: URL to user profile in poll results. ( #7315 )
2019-04-03 22:17:05 +02:00
Robin Ward
c44371b4ac
FIX: Broken spec
2019-03-28 13:55:04 -04:00
Robin Ward
b58867b6e9
FEATURE: New 'Reviewable' model to make reviewable items generic
...
Includes support for flags, reviewable users and queued posts, with REST API
backwards compatibility.
Co-Authored-By: romanrizzi <romanalejandro@gmail.com>
Co-Authored-By: jjaffeux <j.jaffeux@gmail.com>
2019-03-28 12:45:10 -04:00
Neil Lalonde
4a7e83d880
Update translations
2019-03-28 10:07:51 -04:00
Gerhard Schlager
d43f4206c7
FEATURE: Add Armenian language
2019-03-28 14:24:14 +01:00
Sam Saffron
b5e32cfe2a
DEV: correct spec to test for correct fidelity
...
This is due to 9ebabc1d
2019-03-28 17:45:36 +11:00
Neil Lalonde
9c54447ca7
Update translations
2019-03-11 13:55:45 -04:00
Tim Lange
6420b73c33
FIX: Changed poll age message to upcase ( #7124 )
2019-03-07 11:04:17 +01:00
Kris
be5e889b1b
UX: Poll style fix, button classes
2019-03-06 20:27:40 -05:00
Neil Lalonde
aabc3375c6
Update translations
2019-03-01 11:28:07 -05:00
Régis Hanol
6b006c383b
FIX: polls acceptance tests
2019-02-27 19:16:24 +01:00
Régis Hanol
0a708ba064
FIX: preload poll voters
2019-02-27 17:00:21 +01:00
Joffrey JAFFEUX
5952a6c0ad
DEV: uses find() helper instead of this.$() in js tests ( #7062 )
2019-02-25 16:04:55 +01:00
Sam
79841cf7dd
FEATURE: add missing autocomplete suppressions
...
Following 1f4ace4f
add a couple more autocomplete suppressions (in polls
and invite ui)
2019-02-21 16:37:26 +11:00
Neil Lalonde
55cc5ab4b8
Update translations
2019-02-07 09:49:57 -05:00
Joe
a342d2f150
UX: reduces white-space in polls ( #6956 )
...
* reduces white-space in polls and uses font-size variables
2019-02-05 10:47:22 +01:00
Régis Hanol
f7b7bc8abe
DEV: move 'default_scope' to default sort on 'has_many' relation
2019-01-30 17:45:50 +01:00
Régis Hanol
671ff4243f
FIX: discourse-poll-option test wasn't working
2019-01-24 14:55:36 +01:00
Régis Hanol
cba6bdaf52
UX: use solid circle to indicate selected option in polls
2019-01-24 12:25:37 +01:00
Bianca Nenciu
d589c66f3e
FIX: Fix URL to user profile. ( #6881 )
2019-01-23 18:27:21 +01:00
Joffrey JAFFEUX
80d42b4ea2
icons deprecations fixes ( #6920 )
2019-01-22 12:02:02 +01:00
Gerhard Schlager
90823eaca6
Update translations
2019-01-19 23:41:52 +01:00
Joffrey JAFFEUX
502b1316d0
DEV: s/this._super()/this._super(...arguments) ( #6908 )
2019-01-19 10:05:51 +01:00
Neil Lalonde
81953339f2
Update translations
2019-01-14 12:23:49 -05:00
Joffrey JAFFEUX
1a3655b787
DEV: s/Em/Ember ( #6874 )
2019-01-11 17:54:23 +01:00
Joffrey JAFFEUX
f9648de897
DEV: upgrades from Ember 2.13 to Ember 3.5.1 ( #6808 )
...
Co-Authored-By: Bianca Nenciu <nbianca@users.noreply.github.com>
Co-Authored-By: David Taylor <david@taylorhq.com>
2019-01-10 11:06:01 +01:00
Neil Lalonde
d7656f30c3
Update translations
2019-01-02 12:32:38 -05:00
Régis Hanol
b478984f60
make eslint happy
2018-12-31 12:38:45 +01:00
Bianca Nenciu
e49bcebb35
FIX: Validate poll arguments. ( #6740 )
...
* FIX: Validate number poll.
* FEATURE: Poll's min can be 0.
* FIX: Fix URL to user profile.
2018-12-31 10:48:30 +01:00
Bianca Nenciu
c928386c3e
FIX: Copy old status to new poll. ( #6788 )
2018-12-19 11:29:13 +01:00
Bianca Nenciu
5bda4d26b4
FIX: Rescue errors in job. ( #6745 )
2018-12-17 15:28:57 +01:00
Neil Lalonde
124ae46763
Update translations
2018-12-14 10:34:12 -05:00
Guo Xiang Tan
71ce9ced47
FIX: Incorrect arguments were being passed to Jobs::ClosePoll
.
...
Also fix spec that wasn't testing anything.
2018-12-13 16:46:00 +08:00
Bianca Nenciu
285ff3bfbd
FIX: Show every voter only once. ( #6746 )
...
Each voter is represented by an object and Set does not properly check for equality.
2018-12-11 14:00:28 +01:00
Guo Xiang Tan
dcf9c6da59
DEV: Don't publish post messages to non-human users.
2018-12-06 08:24:13 +08:00
Régis Hanol
aea2d8bbeb
FIX: properly secure poll message bus
...
Co-authored-by: Sam <sam.saffron@gmail.com>
2018-12-05 21:27:49 +01:00
Régis Hanol
f1050350ed
FIX: clamp integers to prevent 'PG::NumericValueOutOfRange' errors
2018-12-04 22:51:56 +01:00
Régis Hanol
3c9c95ac83
Update Rubocop to 0.60
2018-12-04 10:48:16 +01:00
Neil Lalonde
d43d007929
Update translations
2018-11-29 10:51:16 -05:00
Penar Musaraj
03deda2147
Upgrade to FontAwesome 5 (take two) ( #6673 )
...
* Add missing icons to set
* Revert FA5 revert
This reverts commit 42572ff
* use new SVG syntax in locales
* Noscript page changes (remove login button, center "powered by" footer text)
* Cast wider net for SVG icons in settings
- include any _icon setting for SVG registry (offers better support for plugin settings)
- let themes store multiple pipe-delimited icons in a setting
- also replaces broken onebox image icon with SVG reference in cooked post processor
* interpolate icons in locales
* Fix composer whisper icon alignment
* Add support for stacked icons
* SECURITY: enforce hostname to match discourse hostname
This ensures that the hostname rails uses for various helpers always matches
the Discourse hostname
* load SVG sprite with pre-initializers
* FIX: enable caching on SVG sprites
* PERF: use JSONP for SVG sprites so they are served from CDN
This avoids needing to deal with CORS for loading of the SVG
Note, added the svg- prefix to the filename so we can quickly tell in
dev tools what the file is
* Add missing SVG sprite JSONP script to CSP
* Upgrade to FA 5.5.0
* Add support for all FA4.7 icons
- adds complete frontend and backend for renamed FA4.7 icons
- improves performance of SvgSprite.bundle and SvgSprite.all_icons
* Fix group avatar flair preview
- adds an endpoint at /svg-sprites/search/:keyword
- adds frontend ajax call that pulls icon in avatar flair preview even when it is not in subset
* Remove FA 4.7 font files
2018-11-26 16:49:57 -05:00
Régis Hanol
ed400a90fe
FIX: properly migrate polls/votes stored as array
2018-11-24 17:14:03 +01:00
Régis Hanol
5142911012
FIX: auto-closing poll wasn't working
2018-11-23 17:42:57 +01:00
Régis Hanol
f402d0d74f
FIX: couldn't delete users who voted on a poll
2018-11-23 11:45:53 +01:00
Régis Hanol
606faa2ee5
FIX: ensure poll options keep their order
2018-11-23 10:37:05 +01:00
Guo Xiang Tan
439b3fe10a
Fix MigratePollsData
failing when poll-votes have duplicated options.
2018-11-21 10:52:21 +08:00
Régis Hanol
92100f82eb
FIX: properly disable serializable attributes when poll plugin is disabled
2018-11-20 17:28:41 +01:00
Joffrey JAFFEUX
95d8a421be
fixes linting
2018-11-19 16:29:15 +01:00
Régis Hanol
4459665dee
REFACTOR: use tables instead of custom fields for polls ( #6359 )
...
Co-authored-by: Guo Xiang Tan <tgx_world@hotmail.com>
2018-11-19 14:50:00 +01:00
Joe
9c5b5243fc
UX: don't show 0 vote count in crawler or print view
2018-11-15 17:40:01 +08:00
Sam
42572ff138
Revert font awesome 5 changes
...
We are still pushing ahead on this 100% just need a bit longer to prepare
all plugins
2018-11-08 16:12:18 +11:00
Penar Musaraj
005e1ecb9b
FEATURE: Update Font Awesome to v5.4.1 and SVGs ( #6557 )
...
* First take on subsetting svg icons
* FontAwesome 5 svg subset WIP
* Include icons from plugins/badges into svg sprite subset
* add svg icon support to themes
* Add spec for SvgSprite
* Misc. SVG icon fixes
* Use FA5 svgs in local-dates plugin
* CSS adjustments, fix SVG icons in group flair
* Use SVG icons in poll plugin
* Add SVG icons to /wizard
2018-11-07 13:05:43 -05:00
David Taylor
d963f96fa4
Update translations
2018-11-05 11:16:58 +00:00
Sam
29fdb50338
FIX: if poll has not options do not break serializer
...
Note: we have a proper rewrite of this plugin in progress
it will address this issue in a proper way
2018-10-24 10:04:17 +11:00
Guo Xiang Tan
a4aa4a9be4
DEV: Remove the use of mocks in our tests.
2018-10-15 10:38:02 +08:00
Neil Lalonde
af39624d19
Update translations
2018-10-12 10:40:25 -04:00
Penar Musaraj
753d39f30d
Fix NoMethodError in polls#voters
2018-10-09 12:51:49 -04:00
Gerhard Schlager
b0a383561e
FEATURE: Add Lithuanian locale
2018-09-27 05:26:38 +02:00
Neil Lalonde
a147a856f8
Update translations
2018-09-14 11:43:14 -04:00
Neil Lalonde
5a4d6f9656
Update translations
2018-08-30 09:40:31 -04:00
Kris
6ec43f3472
FIX: poll avatar spacing too large
2018-08-29 09:11:03 -04:00
Kris
d6144c6d60
UX: More compact polls on mobile
2018-08-27 16:53:35 -04:00
Neil Lalonde
6d79be29f2
Update translations
2018-08-21 11:28:13 -04:00
Neil Lalonde
0cf98f1ad9
Revert "Update translations"
2018-08-21 11:17:53 -04:00
Neil Lalonde
3c6d5c8241
Update translations
2018-08-21 10:36:59 -04:00
Sam
a71fe16647
workaround, we need another lazy operator here
...
Data can be pretty inconsistent here till our big refactor is done
2018-08-20 10:37:06 +10:00
Sam
eacb2593ee
workaround badly denormalized data in polls
2018-08-17 11:15:29 +10:00
Joffrey JAFFEUX
10a3499d68
uses emoji versions for specs ( #6276 )
2018-08-16 13:45:30 +02:00
Peter Borsa
a6820d8767
Add Hungarian locale ( #6260 )
2018-08-13 01:02:35 +02:00
Neil Lalonde
5c248e3a7a
Update translations
2018-08-07 12:05:45 -04:00
Kris
84d822959a
Reducing some specificity, color fix
2018-08-03 17:44:22 -04:00
Maja Komel
04baddf731
DEV: migrate tests to async/await
2018-07-30 12:21:05 +02:00
Neil Lalonde
58ecc84d61
Update translations, excluding Japanese and config/locales/client.zh_TW.yml due to errors
2018-07-26 13:01:39 -04:00
Gerhard Schlager
d3e04daa95
Add Swahili language
2018-07-16 18:11:38 +02:00
Joe
27c018e75c
FIX: makes large images in polls responsive
2018-07-01 13:20:00 +08:00
Neil Lalonde
6e54af1091
FIX: error if decorateCooked is called without a helper for a post with a poll
2018-06-18 12:35:19 -04:00
Joffrey JAFFEUX
60ff0e9b8c
missing prettified files
2018-06-15 18:42:20 +02:00
Régis Hanol
5d445fb810
FIX: properly handle invalid auto close date for polls
2018-06-12 15:31:09 +02:00
Neil Lalonde
79854198c1
Update translations
2018-06-08 10:27:53 -04:00
Joffrey JAFFEUX
174d392e5a
DEV: adds prettier ( #5956 )
...
Run `prettier --write "app/assets/stylesheets/**/*.scss" "plugins/**/*.scss"` after making sure you installed it with `yarn`
It's recommended to configure your editor to run prettier on file save.
2018-06-08 11:49:31 +02:00
Guo Xiang Tan
3a8f69c3d2
DEV: Assert for 200 response code to avoid changing magic helper in the future.
2018-06-07 16:11:09 +08:00
Sam
e806e6e96f
correct specs
2018-06-07 16:13:15 +10:00
Régis Hanol
f05ca02f13
FIX: unable to add new poll to post with a public poll
2018-06-05 15:49:21 +02:00
Neil Lalonde
dee9af2877
Update translations
2018-05-31 17:03:38 -04:00
Joe
733ffc4bbf
FIX: add classes to input groups and move tips
2018-05-30 21:02:06 +08:00
Joe
ec7f597274
FIX: update poll-builder to new modal design
2018-05-30 21:00:54 +08:00
Joe
47a9b3427b
FIX: input tip causes modal to change width when present
2018-05-30 14:26:06 +08:00
Guo Xiang Tan
c1fb111951
FIX: Show poll options when user is in a PM with a bot.
...
https://meta.discourse.org/t/discobot-dont-take-users-through-the-poll-tutorial-if-its-not-enabled/76604/9
2018-05-30 11:16:20 +08:00
Gerhard Schlager
b7bf0e96aa
Update translations
2018-05-29 22:01:57 +02:00
Gerhard Schlager
864ada835b
FEATURE: Add Bulgarian language
2018-05-29 21:07:17 +02:00
Gerhard Schlager
01b0d9d235
Update translations
2018-05-17 00:08:33 +02:00
Jeff Wong
19605e8b0b
Feature: Hide plugins that ship with core from plugins panel
2018-05-15 15:50:17 -07:00
Régis Hanol
ef87944a34
UX: show close date on automatically closed polls
2018-05-12 02:14:58 +02:00
Guo Xiang Tan
8cf0f51eb2
UX: Display site settings shortcut for poll
and discourse-nginx-performance-report
.
...
https://meta.discourse.org/t/improving-admin-plugins/84585/29?u=tgxworld
2018-05-08 10:34:32 +08:00
Régis Hanol
94163d7f1a
add spec for auto-close polls
2018-05-07 11:31:20 +02:00
Guo Xiang Tan
0d74c30fa7
Remove more uses of rescue nil
.
2018-05-07 11:38:23 +08:00
Gerhard Schlager
7bf01fd769
Update translations
2018-05-04 10:58:21 +02:00
Neil Lalonde
69a3ba0014
Update translations
2018-05-03 15:23:31 -04:00
Jeff Atwood
50a2508604
minor copyedit
2018-05-03 02:31:18 -07:00
Régis Hanol
9ff2d540ba
fix the build
2018-05-03 10:32:01 +02:00
Régis Hanol
ba14c80b9c
FEATURE: automatically close a poll on a given date and time
2018-05-03 02:12:19 +02:00
Neil Lalonde
8babf1c1e1
Update translations
2018-04-24 11:08:45 -04:00
Neil Lalonde
a631c8f09d
Update translations
2018-04-13 10:32:39 -04:00
Guo Xiang Tan
4319273cf5
UX: Split up group form into smaller sections.
2018-04-09 15:14:50 +08:00
Gerhard Schlager
4c53e81c69
Update translations
2018-04-06 14:51:09 +02:00
Gerhard Schlager
37fa843efc
Allow pulling of Urdu translations from Transifex again
...
The translations have been fixed.
2018-03-27 11:56:40 +02:00
Neil Lalonde
cd99ccdbf0
Update translations
2018-03-26 10:58:01 -04:00
Guo Xiang Tan
51657d3426
Allow polls to be added/renamed/removed as long as user can edit posts.
2018-03-14 11:00:57 +08:00
Guo Xiang Tan
b77553a635
FIX: Staff should be able to updates polls when edit window expires.
...
https://meta.discourse.org/t/moderators-cannot-remove-polls-from-posts/81804/7?u=tgxworld
2018-03-08 16:45:06 +08:00
Neil Lalonde
0c8df32903
Update translations, except ur because of errors
2018-03-07 14:11:56 -05:00
Guo Xiang Tan
d02e2cbcca
PERF: Avoid fetching a bunch of ids in polls updater.
2018-03-07 14:18:56 +08:00
Maja Komel
e2a441ade9
Add Slovenian translations
2018-03-06 20:51:41 +01:00
Gerhard Schlager
7a2183e8ab
FEATURE: rake task for merging users
2018-03-01 12:28:12 +01:00
Régis Hanol
10139692b2
forgot the error message
2018-02-27 00:25:15 +01:00
Régis Hanol
dee35b72f2
FIX: must be able to post in a topic in order to vote on a poll
2018-02-27 00:19:44 +01:00
Neil Lalonde
32ad98161f
Update translations
2018-02-15 16:36:03 -05:00
Sam
94b2c70c0d
PERF: remove oga gem
...
oga gem is automatically required by the aws gem
the oga gem retains about 1mb of memory, aws now uses nokogiri
This also removes the html normalize from the pretty text specs that was
a fair bit buggy as the polls test shows.
2018-02-15 14:36:40 +11:00
Neil Lalonde
f7042ecc85
Update translations
2018-01-31 11:19:21 -05:00
Bruno Perel
6750ff6873
(S)CSS cleanup: 0px => O and removal of duplicated properties ( #5526 )
2018-01-25 09:53:36 -05:00
Sam
7e3543d96f
correct plugin specs
2018-01-12 14:42:05 +11:00
Joffrey JAFFEUX
b295c03001
FIX: select single choice as default when building a poll
2018-01-03 09:23:15 +01:00
Joffrey JAFFEUX
315b9d796d
select-kit refactoring
...
* better test helper
* more reliable tests
* more consistent use of data-value/data-name/title/aria-label everywhere: header and rows
2017-12-22 13:08:12 +01:00
Neil Lalonde
7e3c4b4b2f
Update translations
2017-12-20 15:28:29 -05:00
blokovi
0df1c85fd3
FEATURE: Serbian translation ( #5443 )
2017-12-19 12:26:06 +01:00
Joffrey JAFFEUX
c1c31b99ce
Replaces toolbar popup-menu with select-kit
2017-12-13 10:49:32 +01:00
Neil Lalonde
929aa98723
Update translations
2017-12-11 12:01:57 -05:00
Kyle Zhao
c52f747031
FEATURE: Catalan Translations ( #5404 )
2017-12-07 10:36:25 +01:00
Neil Lalonde
978cf9485f
Update translations
2017-12-06 10:25:12 -05:00
Joffrey JAFFEUX
067d454937
FIX: makes sur we have polls before validating
2017-12-05 12:07:21 -05:00
Joffrey JAFFEUX
316d814130
FIX: staff should always be allowed to create polls if they are enabled
2017-12-05 00:03:56 +01:00
Joffrey JAFFEUX
76bc173d47
FEATURE: adds poll_allow_staff_to_create
...
This setting will bypass poll_minimum_trust_level_to_create if set to true
2017-12-04 18:12:17 +01:00
Joffrey JAFFEUX
1e0bfa1d97
FIX: poll new_post_manager spec
2017-12-04 16:12:40 +01:00
Joffrey JAFFEUX
63bab32816
FEATURE: introduces minimum trust level for polls ( #5391 )
...
* FEATURE: introduces minimum trust level for polls
This commit makes `poll_enabled` less misleading and introduces `poll_minimum_trust_level_to_create`. If poll are enabled they will always be cooked, and if you have the required trust level you can create polls. As a side effect, it also fixes a bug where rebaking a post created by staff member when `poll_enabled=false` would end up not cooking it.
It also adds more tests to ensure settings are respected.
* admins should be whitelisted
* checks for admin in post validation
* test for >= instead of == trust level
2017-12-04 14:47:11 +01:00
Neil Lalonde
1603dcf0d1
Update translations
2017-11-30 15:32:15 -05:00
Eric Berry
ab22c8cad4
FIX: Infinite loop when poll step is zero ( #5380 )
...
* Fix infinite loop when poll step is zero
* Add test for step minimum and for breaking test
* Remove trailing spaces (eslint)
* Remove extra space (eslint)
* Removed test call .twice
2017-11-30 17:04:41 +01:00
Joffrey JAFFEUX
9208909b26
tweak icon-library generation
2017-11-23 18:24:26 +01:00
Joffrey JAFFEUX
39f3dbd945
Introduces select-kit
...
* renames `select-box-kit` into `select-kit`
* introduces `single-select` and `multi-select` as base components
* introduces {{search-advanced-category-chooser}} as a better component for selecting category in advanced search
* improves events handling in select-kit
* recreates color selection inputs using {{multi-select}} and a custom {{selected-color}} component
* replaces category-selector by a component using select-kit and based on multi-select
* improves positioning of wrapper
* removes the need for offscreen, and instead use `select-kit-header` as a base focus point for all select-kit based components
* introduces a formal plugin api for select-kit based components
* introduces a formal pattern for loading and updating select-kit based components:
```
computeValue()
computeContent()
mutateValue()
```
2017-11-21 11:53:09 +01:00
Angus McLeod
c8a6e5cbb3
If there is a specific error it should be shown to the user ( #5323 )
...
e.g. post_is_deleted, or topic_must_be_open_to_vote
2017-11-17 12:12:13 +01:00
Neil Lalonde
13c91fc7ec
Update translations
2017-11-13 15:02:53 -05:00
Neil Lalonde
d2d272c5f1
Update translations
2017-09-28 13:37:19 -04:00
Guo Xiang Tan
77d4c4d8dc
Fix all the errors to get our tests green on Rails 5.1.
2017-09-25 13:48:58 +08:00
Neil Lalonde
346442134e
Update translations
2017-09-14 11:02:39 -04:00
Robin Ward
e41a828774
Update translations
2017-08-31 14:50:40 -04:00