Commit Graph

5223 Commits

Author SHA1 Message Date
Karina Kwiatek 82dc0ce63f
Merge pull request #1088 from Retrospring/precache-subscriptions
Refactor subscriptions
2023-05-07 10:06:58 +02:00
Karina Kwiatek 142a31f655 Set `subscribed_answer_ids` in answerbox when user is not set 2023-05-05 16:01:48 +02:00
Karina Kwiatek 4221f8cee9 Fix incorrect user being notified and mutes not being respected 2023-05-05 16:01:48 +02:00
Karina Kwiatek bbc0afe292 Move subscribed answer IDs to an ivar 2023-05-05 16:01:46 +02:00
Karina Kwiatek 9c4b2e452a Prevent error when no one is subscribed 2023-05-05 16:01:40 +02:00
Karina Kwiatek b93058b11d Fix remaining lint errors 2023-05-05 16:01:40 +02:00
Karina Kwiatek fb83f48adf Fix lint errors 2023-05-05 16:01:40 +02:00
Karina Kwiatek 36d59d100e Remove unused `destruct_by` method 2023-05-05 16:01:40 +02:00
Karina Kwiatek f73fc87991 Simplify `notify` and `denotify` methods 2023-05-05 16:01:40 +02:00
Karina Kwiatek 0132d7b251 Remove usages of `is_active` 2023-05-05 16:01:40 +02:00
Karina Kwiatek 51638d2eb2 Remove `subscriptions.is_active` column 2023-05-05 16:01:40 +02:00
Karina Kwiatek 0a97a86d73 Pass `subscribed_answer_ids` into `answerbox` in Turbo Stream 2023-05-05 16:01:40 +02:00
Karina Kwiatek 6fc4049f6c Pass answer list method into `paginate_answers` 2023-05-05 16:01:40 +02:00
Karina Kwiatek d77919ee01 Don't check for user sign in when fetching subscriptions in timeline 2023-05-05 16:01:40 +02:00
Karina Kwiatek 904eab8daa Remove now unused `is_subscribed` method 2023-05-05 16:01:40 +02:00
Karina Kwiatek 0771c689ea Clean up marking notifications as read when viewing an answer 2023-05-05 16:01:40 +02:00
Karina Kwiatek d7997db492 Check subscription in `answer/show` 2023-05-05 16:01:40 +02:00
Karina Kwiatek 7aed99d187 Appease the dog overlords 2023-05-05 16:01:38 +02:00
Karina Kwiatek 2604e6b240 Prefetch subscriptions 2023-05-05 16:01:21 +02:00
Karina Kwiatek 57ed3008d3 Fix "Content missing" on "Show all notifications" 2023-05-05 15:59:45 +02:00
Karina Kwiatek a3dbad5265 Fix lint errors in `NotificationController#index` tests 2023-05-05 15:59:45 +02:00
Karina Kwiatek b5a72be288 Add test for marking all notifications as read 2023-05-05 15:59:45 +02:00
Karina Kwiatek 0db44949e6 Move `NotificationsController#index` test into their own `describe` block 2023-05-05 15:59:45 +02:00
Karina Kwiatek 80d8bebe57 Appease the dog overlords 2023-05-05 15:59:43 +02:00
Karina Kwiatek c9c458252b Add functionality for marking all notifications as read 2023-05-05 15:59:25 +02:00
dependabot[bot] 2ec52210f4
Merge pull request #1194 from Retrospring/dependabot/npm_and_yarn/stylelint-scss-5.0.0 2023-05-01 12:21:12 +00:00
dependabot[bot] 5fd76bd73f
Merge pull request #1192 from Retrospring/dependabot/npm_and_yarn/sass-1.62.1 2023-05-01 12:20:45 +00:00
dependabot[bot] b855aa59d3
Merge pull request #1190 from Retrospring/dependabot/bundler/better_errors-2.10.0 2023-05-01 10:22:40 +00:00
dependabot[bot] 4506d9d0fc
Bump better_errors from 2.9.1 to 2.10.0
Bumps [better_errors](https://github.com/BetterErrors/better_errors) from 2.9.1 to 2.10.0.
- [Release notes](https://github.com/BetterErrors/better_errors/releases)
- [Commits](https://github.com/BetterErrors/better_errors/compare/v2.9.1...v2.10.0)

---
updated-dependencies:
- dependency-name: better_errors
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 10:18:34 +00:00
dependabot[bot] 0aced83ebe
Merge pull request #1191 from Retrospring/dependabot/bundler/json-schema-4.0.0 2023-05-01 10:05:57 +00:00
dependabot[bot] 1300511c45
Merge pull request #1193 from Retrospring/dependabot/bundler/pg-1.5.3 2023-05-01 10:04:08 +00:00
dependabot[bot] 0cc6d80ce0
Merge pull request #1189 from Retrospring/dependabot/bundler/active_model_otp-2.3.2 2023-05-01 10:03:44 +00:00
dependabot[bot] 11e9853890
Bump stylelint-scss from 4.6.0 to 5.0.0
Bumps [stylelint-scss](https://github.com/stylelint-scss/stylelint-scss) from 4.6.0 to 5.0.0.
- [Release notes](https://github.com/stylelint-scss/stylelint-scss/releases)
- [Changelog](https://github.com/stylelint-scss/stylelint-scss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stylelint-scss/stylelint-scss/compare/v4.6.0...v5.0.0)

---
updated-dependencies:
- dependency-name: stylelint-scss
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 10:00:21 +00:00
dependabot[bot] 18a20c4e7b
Bump pg from 1.4.6 to 1.5.3
Bumps [pg](https://github.com/ged/ruby-pg) from 1.4.6 to 1.5.3.
- [Release notes](https://github.com/ged/ruby-pg/releases)
- [Changelog](https://github.com/ged/ruby-pg/blob/master/History.md)
- [Commits](https://github.com/ged/ruby-pg/compare/v1.4.6...v1.5.3)

---
updated-dependencies:
- dependency-name: pg
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 10:00:11 +00:00
dependabot[bot] 283484177f
Bump sass from 1.62.0 to 1.62.1
Bumps [sass](https://github.com/sass/dart-sass) from 1.62.0 to 1.62.1.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.62.0...1.62.1)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 09:59:41 +00:00
dependabot[bot] f38d2782cd
Bump json-schema from 3.0.0 to 4.0.0
Bumps [json-schema](https://github.com/voxpupuli/json-schema) from 3.0.0 to 4.0.0.
- [Release notes](https://github.com/voxpupuli/json-schema/releases)
- [Changelog](https://github.com/voxpupuli/json-schema/blob/master/CHANGELOG.md)
- [Commits](https://github.com/voxpupuli/json-schema/compare/v3.0.0...v4.0.0)

---
updated-dependencies:
- dependency-name: json-schema
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 09:58:13 +00:00
dependabot[bot] 2666d17501
Bump active_model_otp from 2.3.1 to 2.3.2
Bumps [active_model_otp](https://github.com/heapsource/active_model_otp) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/heapsource/active_model_otp/releases)
- [Commits](https://github.com/heapsource/active_model_otp/compare/v2.3.1...v2.3.2)

---
updated-dependencies:
- dependency-name: active_model_otp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 09:57:08 +00:00
Karina Kwiatek b801af9465
Merge pull request #1061 from Retrospring/feature/hotkey
Keyboard shortcuts
2023-04-29 16:26:55 +02:00
Karina Kwiatek 2afb10ab81 Move keyboard shortcuts menu entry out of canny if clause 2023-04-29 14:55:07 +02:00
Karina Kwiatek 55090a42f8
Merge pull request #1148 from Retrospring/moar-metrics
metrics: add counter for created/destroyed users
2023-04-29 09:54:53 +02:00
Karina Kwiatek 79e742ce1e Remove debug 2023-04-29 09:34:28 +02:00
Karina Kwiatek 655b822e54 Add Stimulus controller for handling hotkeys 2023-04-29 09:34:28 +02:00
Karina Kwiatek f7b9d90e28 Appease the dog overlords 2023-04-29 09:34:28 +02:00
Karina Kwiatek 9a7dedcafc Ensure bottom of page is visible while navigating 2023-04-29 09:34:28 +02:00
Karina Kwiatek 1aed44dd3d Apply hotkeys on user profiles 2023-04-29 09:34:28 +02:00
Karina Kwiatek e307204375 Navigate between traversable elements regardless of parent element 2023-04-29 09:34:28 +02:00
Karina Kwiatek 0eb9a4d089 Add hotkey for loading more entries 2023-04-29 09:34:28 +02:00
Karina Kwiatek b22fc0bd16 Apply hotkeys on question pages 2023-04-29 09:34:28 +02:00
Karina Kwiatek d684e8d782 Add shortcut for viewing answer page 2023-04-29 09:34:28 +02:00
Karina Kwiatek cc73f84152 Change smile hotkey to `s` 2023-04-29 09:34:28 +02:00