Commit graph

1615 commits

Author SHA1 Message Date
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