Commit Graph

370 Commits

Author SHA1 Message Date
18ae8de9e5 FIX: Sanitize tags before creation 2018-10-19 15:43:31 +01:00
27e732a58d FEATURE: allow multiple secrets for Discourse SSO provider
This splits off the logic between SSO keys used incoming vs outgoing, it allows to far better restrict who is allowed to log in using a site.

This allows for better auditing of the SSO provider feature
2018-10-15 16:03:53 +11:00
43512e9865 Merge pull request #6457 from pmusaraj/yarn-manage-test-vendor-dependencies
DEV: Use Yarn managed test vendor dependencies
2018-10-08 09:26:26 +08:00
9bf522f227 FEATURE: Mixed case tagging (#6454)
- By default, behaviour is not changed: tags are made lowercase upon creation and edit.

- If force_lowercase_tags is disabled, then mixed case tags are allowed.

- Tags must remain case-insensitively unique. This is enforced by ActiveRecord and Postgres.

- A migration is added to provide a `UNIQUE` index on `lower(name)`. Migration includes a safety to correct any current tags that do not meet the criteria.

- A `where_name` scope is added to `models/tag.rb`, to allow easy case-insensitive lookups. This is used instead of `Tag.where(name: "blah")`.

- URLs remain lowercase. Mixed case URLs are functional, but have the lowercase equivalent as the canonical.
2018-10-05 10:23:52 +01:00
cd82107976 use yarn to manage test vendor dependencies, upgrade sinon to v6.3.5 2018-10-04 11:06:14 -04:00
cb519a3bec Fix test 2018-10-02 15:20:11 -04:00
719a433c03 FIX: Sync client & server rules regarding tag names. (#6400) 2018-10-01 21:45:44 -07:00
a713c0d366 FIX: ensures onSelect/onDeselect are called
This commit also add a FIX and a test for toolbar-popup-menu-options which had a behavior slightly specific.
2018-09-18 11:31:23 +02:00
2ff2c49908 Revert "FIX: ensures onSelect/onDeselect are called"
This reverts commit 52eed7329429abffefb7df7aac469e188a0ae298.
2018-09-17 22:14:41 +02:00
52eed73294 FIX: ensures onSelect/onDeselect are called 2018-09-17 10:36:14 +02:00
Sam
e15a1e7c38 lint code 2018-09-17 11:10:09 +10:00
03edb31a4d add tag-drop component test 2018-09-17 10:40:47 +10:00
754d5b62a8 makes mini-tag-chooser test use can_create_tag (#6402) 2018-09-14 13:30:55 +02:00
d2ea618af1 adds a test for mini-tag-chooser 2018-09-14 12:13:00 +02:00
38668818a5 FIX: allows forcing unsafe string in select-kit (#6386)
forceEscape will be defaulted to true before next release.
2018-09-12 12:19:04 +02:00
17087eff2a FIX: Reset tags on category change (#6363) 2018-09-05 17:18:52 +02:00
82dcc5cbfa FEATURE: makes reports loadable in bulk (#6309) 2018-08-24 15:28:01 +02:00
599cebf8ad FIX: better message if request for report is rate limited (#6298) 2018-08-22 11:25:12 +02:00
37d4f27c44 FIX: quality/bugfix dashboard/reports pass (#6283) 2018-08-17 16:19:25 +02:00
c301111461 FIX: display select kit body if no choices (#6237) 2018-08-06 11:22:48 -04:00
066010db7d FEATURE: introduces list/compact_list components 2018-08-03 16:41:37 -04:00
2b2a506a7b FIX: makes dashboard more resilient to errors (#6217)
This commit is an attempt to limit cases where the dashboard will generate a full exception page and also make it easier to track the error.
2018-07-31 21:23:28 -04:00
37252c1a5e UI: improves dashboard table reports
- support for avatars
- support for topic/post/user type in reports
- improved totals row UI
- minor css tweaks
2018-07-31 17:35:13 -04:00
04baddf731 DEV: migrate tests to async/await 2018-07-30 12:21:05 +02:00
ad95c24307 FEATURE: displays a notice if report has no data (#6178) 2018-07-25 14:28:41 -04:00
44a5c29d42 Clear old text and URL when showing up the "Insert Hyperink" modal. (#6138) 2018-07-25 17:12:49 +10:00
d16a2c776a DEV: migrate components tests to async/await 2018-07-24 22:41:14 +02:00
1a78e12f4e FEATURE: part 2 of dashboard improvements
- moderation tab
- sorting/pagination
- improved third party reports support
- trending charts
- better perf
- many fixes
- refactoring
- new reports

Co-Authored-By: Simon Cossar <scossar@users.noreply.github.com>
2018-07-19 14:33:11 -04:00
7dce8290ed copyedit on category drop down 2018-06-26 12:43:45 -07:00
d81f8ea378 fix prettier 2018-06-26 15:31:43 +03:00
bfe0178270 FIX: use the correct notification levels titles for PMs 2018-06-26 14:01:52 +02:00
eb9b99e519 FIX: makes select-kit match searches with accents (filter and content) 2018-06-26 12:19:14 +02:00
60ff0e9b8c missing prettified files 2018-06-15 18:42:20 +02:00
03a7d532cf DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
629a2fbc2b add JS tests 2018-06-15 14:04:14 +10:00
1be76d066c FIX: forces boolean when content is only "true" && "false" 2018-05-24 23:41:39 +02:00
db91d71bf1 fix category chooser spec 2018-05-23 21:07:39 +02:00
ba905b24ca FIX: differentiate one/other select-kit maximumLabel/minimumLabel 2018-04-09 09:12:01 +02:00
f0fe16d824 FEATURE: implements minimum selection for select-kit 2018-04-05 16:45:19 +02:00
3287ac77e0 FIX: reverts combobox placeholder and introduces noneLabel
noneLabels works almost like none but instead of actually adding a row in the list, it will only change the text displayed in the header, when there's no selection.
2018-03-29 13:42:00 +02:00
15aa712227 fix category-row regressions 2018-03-27 14:11:05 +02:00
d48542796e FIX: select-kit refactoring
- improve mini-tag-chooser keyboard behavior
- all multil select now respond to select all and left/right arrows
- improve events handling
- many minor tweaks
2018-03-22 11:29:55 +01:00
2b7fb43d84 Fix the build. 2018-03-19 18:47:17 +08:00
97ddaeeae8 FIX: use css instead of js to fix select-kit-collection max-height 2018-02-01 16:56:07 +01:00
41f1e7430c Refactor code; add tests 2018-01-29 17:42:19 -08:00
86e142b39f UX: Copy selected text to the link building modal 2018-01-24 02:02:12 +05:30
3ee7b18886 FIX: disable by default limitMatches 2018-01-11 09:54:39 +01:00
3ec2024466 select-kit refactoring
* improve events naming/handling
* do not explicitly check for true/Fasle
* make sure header is re-computed on toggle
2018-01-11 09:39:51 +01:00
c9921869f1 FIX: adds select-kit api to modify header computed content (#5476)
This api would allow to simply modify header text or icons, eg:

```
      api.modifySelectKit("select-kit")
        .modifyHeaderComputedContent((context, computedContent) => {
          computedContent.title = "Not so evil";
          return computedContent;
        });
```
2018-01-09 10:52:32 +01:00
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