Commit Graph

1671 Commits

Author SHA1 Message Date
Andreas Nedbal a1ba1a8082
Apply review suggestion from @raccube
Co-authored-by: Karina Kwiatek <6197148+raccube@users.noreply.github.com>
2021-12-26 23:41:23 +01:00
Andreas Nedbal 5fcf24646e Open share widgets in new tab 2021-12-26 23:28:46 +01:00
Andreas Nedbal 21c4e0662f Make the share event work on any answer
...not just the initially loaded set
2021-12-26 23:01:16 +01:00
Andreas Nedbal 08a0f2e1ca Don't include `Rails.application.routes.url_helpers` in `SocialHelper::`
It badly trips up things
2021-12-26 22:40:27 +01:00
Andreas Nedbal 7be52bb7f2 Include Rails URL helpers in `Services::Twitter` 2021-12-26 22:17:53 +01:00
Andreas Nedbal b630baa870 Hide any element with `ab-share` as a name 2021-12-26 22:07:17 +01:00
Andreas Nedbal fa37f5c857 Add share links to answerboxes 2021-12-26 22:06:52 +01:00
Andreas Nedbal ed64a0990e Move tumblr post formatting into a separate helper class 2021-12-26 22:04:46 +01:00
Andreas Nedbal b64b039d21 Move tweet formatting into a separate helper class 2021-12-26 22:04:16 +01:00
Karina Kwiatek 3e7c6d8d95 Fix ShareWorker retries failing 2021-12-25 23:22:52 +01:00
Karina Kwiatek 0f654a4d7d
Merge pull request #226 from Retrospring/refactor/user-typescript
Port User functionality to TypeScript
2021-12-25 22:44:26 +01:00
Karina Kwiatek 053ebafbc5
Merge pull request #213 from Retrospring/refactor/profile
Move profile fields to seperate table
2021-12-25 22:44:10 +01:00
Karina Kwiatek 7f26c1fef3 Ensure elipsis character always gets added for long questions/answers 2021-12-25 22:08:06 +01:00
Karina Kwiatek f28f714457 Allow retries for ShareWorker 2021-12-25 13:40:21 +01:00
Karina Kwiatek 61c8208e26 Ensure tweets fit twitter's length limit 2021-12-25 13:39:35 +01:00
Andreas Nedbal 8b583e103a Fix lint nits 2021-12-25 04:05:03 +01:00
Andreas Nedbal d27665471e Remove legacy user CoffeeScript 2021-12-25 03:34:24 +01:00
Andreas Nedbal 1bc52786ad Port reporting users from CoffeeScript to TypeScript 2021-12-25 03:34:02 +01:00
Andreas Nedbal 2cc8a33d5b Port (un)following from CoffeeScript to TypeScript 2021-12-25 03:33:33 +01:00
Andreas Nedbal cf8d6b0884 Setup user features in TypeScript 2021-12-25 03:33:09 +01:00
Andreas Nedbal 3b5e963da5 Add `$.on` vanilla JS substitute 2021-12-25 03:31:30 +01:00
Andreas Nedbal 89127aa313 Add aliases for common module locations 2021-12-25 00:02:52 +01:00
Karina Kwiatek 842f51d745 Replace remaining usages of `user.display_name` 2021-12-23 22:01:56 +01:00
Karina Kwiatek df606a768e Update usage of `display_name` in shared sidebar 2021-12-23 21:49:42 +01:00
Karina Kwiatek c995ead1e0 Add accept attribute to file inputs 2021-12-22 16:38:37 +01:00
Karina Kwiatek 8302f1b396 Update exporter for carrierwave & profile fields 2021-12-22 00:25:32 +01:00
Karina Kwiatek 8fa4feb469 Add endpoint for updating profile 2021-12-22 00:03:19 +01:00
Karina Kwiatek 00496a1596 Update remaining references to profile fields 2021-12-22 00:03:19 +01:00
Karina Kwiatek ab720f3f55 Update references to profile fields 2021-12-22 00:03:18 +01:00
Karina Kwiatek ff410773dd Create Profile model 2021-12-22 00:03:18 +01:00
Andreas Nedbal 58588d22b1 use .where.not instead of in-query condition for user confirm date 2021-10-03 20:49:33 +02:00
Andreas Nedbal 6639f6646a only count active users on about page 2021-10-03 20:40:25 +02:00
Karina Kwiatek adf9301971
Merge pull request #201 from Retrospring/fix/tablet-ask-fab
Fix ask fab not being visible at tablet size
2021-09-24 00:42:38 +02:00
Karina Kwiatek 3a8d207b70 Fix ask fab not being visible at tablet size 2021-09-24 00:06:23 +02:00
Karina Kwiatek ab83ee197e Remove quotes in rails admin option 2021-08-30 00:21:34 +02:00
Karina Kwiatek 0c8f2ef1e7 Use `break-word` instead of `break-all`
This will prevent words being broken mid-word
2021-08-13 19:55:52 +02:00
Karina Kwiatek 89ce3e6e53
Merge pull request #184 from Retrospring/mobile-layout
Adjust site layout to be nicer to use on smaller screens
2021-08-13 12:11:38 +02:00
Karina Kwiatek d81641ac18 Add theme model spec 2021-08-13 01:23:07 +02:00
Karina Kwiatek bd5995ef65 Add specs for `nav_entry` helper 2021-08-13 00:53:11 +02:00
Karina Kwiatek c5414ae156 Fix unreadable text on unread inbox entries 2021-08-12 23:17:47 +02:00
Karina Kwiatek d76af263ce Style and position badges on mobile nav 2021-08-12 21:56:28 +02:00
Karina Kwiatek 7869177527 Prevent text overflow in notification cards 2021-08-12 15:41:03 +02:00
Karina Kwiatek 72e9ca61aa
Merge pull request #187 from Retrospring/fix/question-link-visibility
Show question link for answered questions with only one answer
2021-08-12 15:40:09 +02:00
Karina Kwiatek c33c4bb4ed Give the mobile nav icon row the full viewport width 2021-08-12 13:30:19 +02:00
Karina Kwiatek ec2332818c Show mobile nav bar badges as pills 2021-08-12 13:29:50 +02:00
Karina Kwiatek da70238667 Fix linter errors 2021-08-12 01:18:10 +02:00
Karina Kwiatek 78d67d2f49 Tell Sass to use CSS `max()` function 2021-08-12 01:17:25 +02:00
Karina Kwiatek 31bcc33850 Set the correct theme-color when top navigation is being used 2021-08-12 00:38:03 +02:00
Karina Kwiatek aeb924cab9 Use correct body padding when not logged in to allow for top navigation bar 2021-08-12 00:37:59 +02:00
Karina Kwiatek d86bf2bf9d Use notification_count helper to get notification count for icon badge 2021-08-12 00:37:47 +02:00
Karina Kwiatek 38bd282b38 Make notification icon show notification count badge 2021-08-12 00:37:47 +02:00
Karina Kwiatek 31a8bf6f00 Add mobile user menu 2021-08-12 00:37:47 +02:00
Karina Kwiatek e895dedd14 Make navbar icons larger 2021-08-12 00:37:47 +02:00
Karina Kwiatek 0886daa62d Remove icon from brand in desktop navbar 2021-08-12 00:37:47 +02:00
Karina Kwiatek b93d0402f8 Use unquote to prevent sass from erroring on env(safe-area-inset-bottom) 2021-08-12 00:37:47 +02:00
Karina Kwiatek d27ae910c2 Adjust theme-color for mobile layout 2021-08-12 00:37:47 +02:00
Karina Kwiatek e213041d47 Add mobile navigation bar 2021-08-12 00:37:47 +02:00
Karina Kwiatek be1afe01e9 Fill horizontal space on medium-sized viewports
This removes the horrible side margins on portrait tablets
2021-08-12 00:37:41 +02:00
Karina Kwiatek f94519ccfc
Merge pull request #186 from Retrospring/fix/line-overflow
Prevent line overflow in comments and question headers
2021-08-11 23:08:08 +02:00
Karina Kwiatek 680a5f4c6a
Merge pull request #189 from Retrospring/fix/list-selector-text-colour
Fix list group text not being visible when the selected item is a link
2021-08-11 23:07:55 +02:00
Karina Kwiatek b60529dcf1
Merge pull request #190 from Retrospring/feature/inbox-actions
Add report and rails admin buttons to inbox entries
2021-08-11 22:56:31 +02:00
Karina Kwiatek c90daf1756 Skip inbox entry actions menu if it's be empty 2021-08-11 22:38:53 +02:00
Karina Kwiatek 649bacfc45 Move report and rails admin buttons to a dropdown menu in the card header 2021-08-11 22:35:07 +02:00
Karina Kwiatek 77ec8e2f4b Add report button to answerboxes 2021-08-11 22:11:23 +02:00
Karina Kwiatek 7f7213578b Fix list group text not being visible when the selected item is a link 2021-08-11 21:33:38 +02:00
Karina Kwiatek 6b32bddc76 Order relationships by their creation date
Closes #115
2021-08-11 17:09:04 +02:00
Karina Kwiatek 56786ebb38 Add direct field to questions
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2021-08-11 16:56:58 +02:00
Karina Kwiatek 5e7042ad6c Show question link for answered questions with only one answer
Closes #43
2021-08-11 14:44:41 +02:00
Karina Kwiatek 9de72ea46e Prevent long words/links overflowing in questions and comments
This is not a problem in answers.
Closes #111
2021-08-11 14:37:12 +02:00
Karina Kwiatek 466f435116 Add rails admin link to inbox entries 2021-08-11 13:31:33 +02:00
Karina Kwiatek 11e8555dae
Merge pull request #183 from Retrospring/feature/web-share
Add share buttons to answers using Web Share API
2021-08-10 20:26:47 +02:00
Karina Kwiatek aa9fc54ad2 Ensure answerboxes on profiles can properly attach sharing functionality 2021-08-10 18:07:33 +02:00
Karina Kwiatek 016f369ba2 Address review comments 2021-08-10 17:11:59 +02:00
Karina Kwiatek b4f87a288a Invert answerbox action CSS to be mobile first 2021-08-10 13:21:32 +02:00
Karina Kwiatek a246083b15 Refactor sharing using feature pattern 2021-08-10 13:21:28 +02:00
Karina Kwiatek 86d179d590
Merge branch 'master' into feature/opengraph 2021-08-08 14:24:05 +02:00
Karina Kwiatek d08d0156dc Move graph helpers to separate module 2021-08-06 22:24:21 +02:00
Karina Kwiatek 7249e45989 Add tests for user_twitter_card and answer_opengraph 2021-08-06 21:38:51 +02:00
Karina Kwiatek 5b087cde3c Use :ruby filter in user/show 2021-08-06 13:52:11 +02:00
Karina Kwiatek 3570171b25 Create rails_admin_path_for_resource helper 2021-08-06 13:38:24 +02:00
Karina Kwiatek cf4d6bd100 Add OpenGraph metadata on user profiles and answers 2021-08-06 13:24:04 +02:00
Karina Kwiatek 8f23088244 Lint: Add missing space to attributes 2021-08-06 11:04:57 +02:00
Karina Kwiatek 4b52f900f2 Use expression substitution for rails admin links 2021-08-06 10:38:00 +02:00
Karina Kwiatek 08822b0f05 Move answerbox actions on to seperate row on mobile 2021-08-06 01:09:28 +02:00
Karina Kwiatek faaab47859 Add links for jumping to rails admin on answers, questions and profiles 2021-08-05 18:31:35 +02:00
Karina Kwiatek a13322dcee Add share option to answers 2021-08-05 18:30:44 +02:00
Karina Kwiatek ba709cdcf6 Update theme-color meta value to match the current page's theme 2021-06-19 21:37:04 +02:00
Erik ff6f619756
Fix services integration after omniauth bump (#173) 2021-04-25 21:56:37 +02:00
Karina Kwiatek 86c940c226 Ensure minicolors overrides apply 2021-04-05 09:00:03 +02:00
Karina Kwiatek 1eb256ee88 Apply theme colours to turbolinks progress bar 2021-04-05 09:00:03 +02:00
Dominik M. Kwiatek 45cb0cab26
Disable 00_rails.ts initalizer (#171)
* Disable 00_rails.ts initalizer

* Update Gemfile.lock

Dealing with mimemagic
2021-04-03 18:58:45 +02:00
Andreas Nedbal 327c76fdb3 don't use the wrong theme color value 2021-02-27 23:32:05 +01:00
Andreas Nedbal c68e62efb3 Fix theme page not working 2021-02-27 21:43:43 +01:00
Andreas Nedbal fbac1f004a Fix pagination being broken on navigation 2021-02-27 21:11:04 +01:00
Andreas Nedbal 6f37a0f0c3 disable loading BS in the TS context (for now) 2021-02-27 20:44:38 +01:00
Andreas Nedbal abf772448e open sesame (or, "I brought back tooltips") 2021-02-26 22:50:49 +01:00
Andreas Nedbal 3dc7bc9567 add bootstrap import to main file and use proper turbolinks event 2021-02-26 22:41:46 +01:00
Andreas Nedbal 17a177cc4b
fix JS errors that impede executing the rest of the JS (#170) 2021-02-26 21:43:31 +01:00
Andreas Nedbal 9d9216d726 Apply review suggestion by @raccube
Co-authored-by: Dominik M. Kwiatek <6197148+raccube@users.noreply.github.com>
2020-12-26 21:59:53 +01:00
Andreas Nedbal 9fceedc5b4 Add initializers for some Typescript functionality 2020-12-26 21:59:53 +01:00
Andreas Nedbal 24f197a064 Move legacy javascript folder out of packs/ 2020-12-26 21:59:53 +01:00
Andreas Nedbal 51678e5e34 Add Typescript support 2020-12-26 21:59:53 +01:00
Andreas Nedbal 1221a82557 Fix HAML lint 2020-12-25 18:22:03 +01:00
Andreas Nedbal 0867a19b11 Remove i18n script include 2020-12-25 18:22:03 +01:00
Andreas Nedbal 9237d9b314 Fix sprockets crashing because of removed gems 2020-12-25 18:22:03 +01:00
Andreas Nedbal e0c2f834d8 Import sweetalert 2020-12-25 18:22:03 +01:00
Andreas Nedbal 3347dbb923 Import missing file 2020-12-25 18:22:03 +01:00
Andreas Nedbal fcb8aae897 Remove bootstrapped example files 2020-12-25 18:22:03 +01:00
Andreas Nedbal 70cd2e7d53 Add back the datetimepicker for moderation purposes 2020-12-25 18:22:03 +01:00
Andreas Nedbal 61f60717fc Set up i18n-js to work with Webpacker 2020-12-25 18:22:03 +01:00
Andreas Nedbal aac98bd3b2 Move Bootstrap initialization into own file 2020-12-25 18:22:03 +01:00
Andreas Nedbal 5d2ad96f42 WIP: Handle CoffeeScript with Webpacker 2020-12-25 18:22:03 +01:00
Andreas Nedbal 059471e5cf Initial Webpacker setup 2020-12-25 18:22:03 +01:00
Dominik Kwiatek 3db3ccfc41 Fix incorrectly updated conditions 2020-11-17 21:57:19 +01:00
Dominik Kwiatek cddb50cc22 Update dependencies and fix new lint warnings 2020-11-16 18:18:42 +01:00
Dominik Kwiatek 277799ff4b Remove `TotpRecoveryCode.remove_all_for(user)` method 2020-11-15 22:09:27 +01:00
Dominik Kwiatek 2e6f49819a Address @nilsding's review comments 2020-11-15 22:08:18 +01:00
Dominik Kwiatek f031143b45 Fix linter errors 2020-11-15 21:35:50 +01:00
Dominik Kwiatek aeb1396422 Add tests for recovery codes 2020-11-15 10:21:06 +01:00
Dominik Kwiatek d7cac67c22 Create print view for recovery codes 2020-11-15 10:20:55 +01:00
Dominik Kwiatek c7463df4d4 Fix lint errors 2020-11-01 19:10:59 +01:00
Dominik Kwiatek e16896fac1 Provide the user a way to generate new codes. 2020-11-01 18:52:42 +01:00
Dominik Kwiatek 61d82bdbec Display count of remaining recovery codes 2020-11-01 18:41:37 +01:00
Dominik Kwiatek 5eb4f32660 Clean up after TOTP is disabled. 2020-11-01 18:31:20 +01:00
Dominik Kwiatek 5dd920eba2 Allow recovery codes to be used to sign in in place of a OTP 2020-11-01 18:29:11 +01:00
Dominik Kwiatek b4f479a00f Generate recovery keys on TOTP setup 2020-11-01 17:55:31 +01:00
Dominik M. Kwiatek ab03fadaef
Merge pull request #147 from Retrospring/feature/2fa
Implement Two Factor Authentication
2020-10-24 00:30:13 +02:00
Dominik Kwiatek d20f527d8c Add drift period 2020-10-24 00:24:04 +02:00
Dominik Kwiatek ee4b7e2cb1 Auto focus OTP validation field on setup page 2020-10-24 00:13:26 +02:00
Dominik Kwiatek 37d2b43023 Apply styling to OTP attempt field 2020-10-24 00:13:14 +02:00
Dominik Kwiatek 0f80bcef14 Remove I18n. prefix 2020-10-23 21:01:00 +02:00
Dominik Kwiatek 702156258c Remove user/sessions#two_factor_entry 2020-10-23 21:00:06 +02:00
Dominik Kwiatek 66cccbb5d6 Use the same string for 2FA failures 2020-10-23 20:58:42 +02:00
Dominik Kwiatek d7a1750694 Implement @nilsding's review changes 2020-10-23 20:45:06 +02:00
Dominik Kwiatek 0f98d7bad8 Fix list styling on Comment Smiles modal 2020-10-21 20:43:58 +02:00
Dominik Kwiatek d89d7a0e7f Add trailing new line to settings partials 2020-10-21 13:59:13 +02:00
Dominik Kwiatek 68b1bbb908 Fix bad refactor 2020-10-21 13:55:55 +02:00
Dominik Kwiatek d3cc421225 Rename settings partials to match naming conventions 2020-10-21 13:49:12 +02:00
Dominik Kwiatek 556050aa66 Add tests for security settings page 2020-10-21 13:44:00 +02:00
Dominik Kwiatek 3211f8f59b Make OTP secret longer 2020-10-19 20:25:18 +02:00
Dominik Kwiatek ea99805da1 Fix remaining lint warnings 2020-10-19 15:55:00 +02:00
Dominik Kwiatek dc88ac3f06 haml-lint fixes 2020-10-19 15:02:04 +02:00
Dominik Kwiatek 70b8053d15 Add F-Droid & GitHub links for Android TOTP App 2020-10-19 14:56:30 +02:00
Dominik Kwiatek 433f1d45e5 Use controller for setting up QR Code 2020-10-19 14:56:13 +02:00
Dominik Kwiatek 00da21a13d Redirect away from two factor entry page if no target user is set in session 2020-10-19 12:20:44 +02:00
Dominik Kwiatek 5447e905c0 Shorten 2FA setup OTP validation field 2020-10-18 20:49:30 +02:00
Dominik Kwiatek d550e6d4c7 Add help text and confirmation for disabling 2FA 2020-10-18 20:49:11 +02:00
Dominik Kwiatek 4ce5dfc92a Fix detaching, improve UI for attaching 2FA 2020-10-18 19:48:12 +02:00
Dominik Kwiatek 25410e111d Fix OTP auth triggering for users who haven't set it up
I thought I could be clever by using a null secret key as an indicator of it being disabled
2020-10-18 11:39:28 +02:00
Dominik Kwiatek 141ff59f63 Implement Two Factor Authentication 2020-10-18 10:39:46 +02:00