Ridhwana
ba5c97de50
RFC 50 - Remove old admin routes and related code ( #13579 )
...
* chore: remove current_admin routes file
* feat: move all the admin routes into the admin file
* chore: remove conditionals for the sidebar and tabbed navbar
* remove some more notes where we use the admin_restructure feature flag
* chore: amend the tests now that the old routes and the admin_restructure flag are removed
* chore: remove more references to the admin_restructure flag
* chore: fix the tests
* chore: remove sidebar_spec
* chore: add slash back
* chore: comment it out for now whilst I try and figure out why its not passing
2021-05-03 16:03:38 +02:00
Suzanne Aitchison
4aebfb62f2
Improve keyboard accessibility of comment rate limit and error modals ( #13536 )
...
* add modal code to Forem namespace, use showModal in the rate limit modal generator
* add cypress tests for both modals
* styling tweaks
* tidy up
* make sure modal trap selector is unique to page, update Modal JSDoc
* add additional jest test for focusTrapSelector
2021-05-03 07:14:23 +01:00
Michael Kohl
c5598816ac
[15 minute fix] Remove secondary logo ( #13595 )
2021-05-03 09:35:10 +07:00
Suzanne Aitchison
1868537294
fix some landmark issues in listings ( #13602 )
2021-04-30 18:34:27 +02:00
Jacob Herrington
69f4c039da
Add href for open reports ( #13592 )
2021-04-30 09:07:24 -05:00
Suzanne Aitchison
ce689ab0c7
15 min fix: make sure autocomplete dropdown occupies width ( #13600 )
...
* 15 min fix: make sure dropdown occupies width
* set width instead, with comment to explain
2021-04-30 14:11:31 +01:00
Alex
c88fc5d233
[Search 2.0] Remove remaining search_2 feature flags ( #13591 )
...
* Remove remaining search_2 feature flags
* Fix specs
* Fix more specs
* Remove leftovers
Co-authored-by: rhymes <rhymes@hey.com>
2021-04-30 09:02:35 -04:00
Suzanne Aitchison
2e9ba2334a
15 min fix for chart js errors ( #13598 )
2021-04-30 13:28:20 +01:00
Ridhwana
320eb86dc2
RFC 50: Interaction tweaks (take two) ( #13576 )
...
* feat: add the collapse style css + a script for the intercepting the bootstrap event
* chore: remove old code
* Add some guards for missing elements and simplify show/hide collapse interaction
* Update app/assets/stylesheets/admin.scss
Co-authored-by: rhymes <rhymes@hey.com>
Co-authored-by: rhymes <rhymes@hey.com>
2021-04-30 13:01:55 +02:00
Nick Taylor
aee1d041d6
Fixed aria label for edit menu item of a comment. ( #13594 )
2021-04-30 11:28:47 +02:00
Alex
4fe7e0011e
Use body instead of body_text in serializer ( #13582 )
2021-04-29 12:30:11 -04:00
rhymes
9e4de49b79
[Hotfix] [Search 2.0] Optimize performance of listings and articles and fix bugs ( #13577 )
...
* Add tsvector index on listings
* Fix sorting order when fetching tag flares
* Add published_at as a sorting condition for Homepage::ArticlesQuery
* Re-added param needed by ES, this got lost somewhere down the line
2021-04-29 17:37:59 +02:00
Michael Kohl
3173bb4bc2
Remove <provider>_created_at columns ( #13264 )
...
* Remove <provider>_created_at columns from User
* Update code
* Clean up
* Fix authenticator specs
* Restore old behavior
* Update provider account age logic, again
2021-04-29 10:24:16 -05:00
rhymes
5af33a63dd
[Search 2.0] Remove search_2_listings, search_2_usernames feature flags ( #13578 )
...
* Remove search_2_listings feature flag
* Remove search_2_usernames feature flag
2021-04-29 15:54:21 +02:00
rhymes
c20c4abe3f
[Search 2.0] Use Article.cached_tagged_with* in queries ( #13566 )
...
* Add Symbol to Article.cached_tagged_with* and fix error bug
* Use Article.cached_tagged_with* in search
* Apply PR feedback suggestions
2021-04-29 12:00:49 +02:00
Andrew Bone
59c7e25e22
Remove input scroll from position ( #13569 )
...
* Remove input scroll from position
* Rerun travis
2021-04-29 11:00:37 +02:00
rhymes
fa38e4bf82
[Search 2.0] Remove search_2_tags feature flag ( #13567 )
2021-04-29 08:50:35 +02:00
Alex
11138c4f18
[Search 2.0] Change podcast_episode query ( #13568 )
...
* Change podcast_episode query
* Add the index of all indexes
* Update ATTRIBUTES
2021-04-29 08:49:47 +02:00
Michael Kohl
3837c3a221
Refactor handling of mandatory settings ( #13553 )
...
* Refactor handling of mandatory settings
* Add e2e test
* Rename controller
2021-04-29 09:25:16 +07:00
Ridhwana
b027a0c342
fix: change aria-page to aria-current ( #13558 )
2021-04-28 21:33:29 +02:00
Ridhwana
3a4da2dd5a
RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) ( #13549 )
...
* feat: update the paths in the spec files
* feat: update hardcoded paths with path helpers
* chore: update hardcoded paths to path helpers
* chore: hardcode describe blocks
* chore: oops
* feat: update some more hardcoded to use link_to's
* fix broken tests
* chore: admin_articles path
* chore: oops remove rails helper
* feat: add starting /
* chore: more pre slashes
* chore: add pre slashes
* chore: some small typos
* fix: oops
2021-04-28 21:32:51 +02:00
Vaidehi Joshi
f9a6067662
Do not create mentions when embedded within a comment liquid tag ( #13552 )
...
Fixes https://github.com/forem/forem/issues/13348 .
2021-04-28 08:27:26 -07:00
Jacob Herrington
c6d3628480
Remove empty file from version control ( #13551 )
2021-04-28 10:03:32 -05:00
Tushar Sadhwani
9cc4817e2e
Fix scroll-padding on article anchor links ( #13501 )
2021-04-28 14:30:58 +01:00
Alex
0211a7c341
[Search 2.0] Fix podcast values ( #13550 )
...
* Fix podcast values
* Also select slug from podcast_episodes
2021-04-28 08:58:45 -04:00
rhymes
8762815709
[Search 2.0] Match both word boundaries when filtering tags ( #13554 )
2021-04-28 11:24:45 +02:00
dependabot[bot]
1a48b3151a
Bump cypress from 6.9.1 to 7.2.0 ( #13528 )
...
* Bump cypress from 6.9.1 to 7.2.0
Bumps [cypress](https://github.com/cypress-io/cypress ) from 6.9.1 to 7.2.0.
- [Release notes](https://github.com/cypress-io/cypress/releases )
- [Changelog](https://github.com/cypress-io/cypress/blob/develop/.releaserc.base.js )
- [Commits](https://github.com/cypress-io/cypress/commits/v7.2.0 )
Signed-off-by: dependabot[bot] <support@github.com>
* fix intercept and exception issues causing commentOnArticle specs to fail
* fix a typo while we're here
* stub the minimum search text
* update intercepts on post mention user
* Bump cypress from 6.9.1 to 7.2.0
Bumps [cypress](https://github.com/cypress-io/cypress ) from 6.9.1 to 7.2.0.
- [Release notes](https://github.com/cypress-io/cypress/releases )
- [Changelog](https://github.com/cypress-io/cypress/blob/develop/.releaserc.base.js )
- [Commits](https://github.com/cypress-io/cypress/commits/v7.2.0 )
Signed-off-by: dependabot[bot] <support@github.com>
* fix unhandled exceptions in initScrolling causing tests to abort
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
2021-04-28 10:09:43 +01:00
Michael Kohl
1c7de11bef
Split Settings::UserExperience ( #13495 )
...
* Add Settings::UserExperience
* Add DUS
* Update usage
* Add controller
* Add e2e test
* Fix specs
2021-04-28 13:29:25 +07:00
Jamie Gaskins
d8f7518e5c
Optimize Articles::Suggest query ( #13548 )
2021-04-27 14:30:06 -04:00
rhymes
f48cf141a6
Use regexp operator to avoid matching partial tags ( #13547 )
2021-04-27 20:27:11 +02:00
Alex
315dca98c9
[Search 2.0] Podcasts on search page ( #13475 )
...
* Working MVP
* Add specs
* Add partial index on podcasts.published
* Add tsvector indexes to podcast_episodes
* Filter for reachable PodcastEpisodes
* Fix indentation/formatting
* Add podcast attribute to serializer
2021-04-27 13:29:22 -04:00
rhymes
2ff317687e
[Search 2.0] Articles ( #13540 )
...
* Rename the search scope to reflect its generic usage
* Add and use Search::Postgres::Article
2021-04-27 18:59:01 +02:00
dependabot[bot]
62e150f5af
Bump eslint-config-preact from 1.1.3 to 1.1.4 ( #13516 )
...
* Bump eslint-config-preact from 1.1.3 to 1.1.4
Bumps [eslint-config-preact](https://github.com/preactjs/eslint-config-preact ) from 1.1.3 to 1.1.4.
- [Release notes](https://github.com/preactjs/eslint-config-preact/releases )
- [Commits](https://github.com/preactjs/eslint-config-preact/compare/v1.1.3...v1.1.4 )
Signed-off-by: dependabot[bot] <support@github.com>
* Add missing key prop for elements in iterators where necessary
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
2021-04-27 18:54:43 +02:00
Jamie Gaskins
b167fb7fb1
Optimize GetUserStickies ( #13541 )
2021-04-27 12:47:49 -04:00
rhymes
4ca995e1a1
Serialize tag flares correctly in Homepage::ArticleSerializer ( #13537 )
2021-04-27 16:07:05 +02:00
Andy Zhao
dc30eadad8
Remove unused attributes from markdown parser ( #13484 )
...
* Remove definitely unused attributes
* Refactor and remove unused attributes
* Add parentheses
* Prevent alt tag from having Liquid tags inside
* Add test
* Remove more unused attributes
* Scrub any valid attributes
* Remove unused tags and add more tests
* Remove <i> tag; <em> is used by parser
* Remove <center> b/c it's deprecated though still valid
* <cite> is a safe tag and used by some
* Eh I changed my mind about center lol
* Add underline <u> back in
* Don't allow width changes
* Use frozen constant for regex
* Use #remove over #gsub
2021-04-27 09:33:01 -04:00
Suzanne Aitchison
7c7a0992b7
Reintroduce autocomplete Cypress test, refactor tests in same suite ( #13506 )
...
* reintroduce test, refactor tests
* make sure we always wait for comment box substitution before continuing
2021-04-27 12:01:51 +01:00
Suzanne Aitchison
6f4382719e
add skip link to connect and manage post ( #13503 )
2021-04-27 10:01:24 +01:00
rhymes
8a55c3e888
[Search 2.0] Add query filters for profile, organization and tag index pages ( #13510 )
...
* Re-order test cases to increase tests readability
* Add user_id filter for articles query
* Add organization_id and tags filters
* Add new params to SearchController#feed_content
* Add current_user param so that it can be tested for a small pool of users
2021-04-27 08:49:47 +02:00
Ridhwana
9db98d3031
chore: change aria:true to aria: hidden ( #13515 )
2021-04-26 19:30:04 +02:00
rhymes
23c661bb0a
Cleanup markup of editor guide ( #13491 )
...
* Improve HTML markup
* Implement some a11y changes
* Update app/views/pages/_v1_editor_guide_preamble.html.erb
Co-authored-by: Nick Taylor <nick@forem.com>
Co-authored-by: Nick Taylor <nick@forem.com>
2021-04-26 18:44:18 +02:00
Christian D
842a1cb9de
13230 Fix textarea out of bounds on resize ( #13508 )
2021-04-26 18:39:56 +02:00
Ridhwana
c5bcb4c021
RFC 50: fix some more hardcoded paths ( #13473 )
...
* fix: remove hardcoded paths
* fix: use path helpers
* swap href for link_to
* feat: use path helpers
* feat: use a data path to send through the path that we will be calling
* feat: pass route through to js
* dus index path
* chore: change to use path_helpers
* feat: update DUS controller
* chore: oops remove these paths
2021-04-26 17:49:54 +02:00
Michael Kohl
610f6151e6
Split Settings::Community from SiteConfig ( #13403 )
...
* Add settings_community_contents model
* Add settings_communities model
* Update usage
* Add controller and update code
* Add e2e test
* Add data update script
* Update schema.rb
* Fix specs
* PR feedback
* Remove experience_* from Settings::Community
* Update spec
* Fix spec
2021-04-26 10:46:35 +02:00
Michael Kohl
f2f5e911cf
Add Settings::Mascot ( #13451 )
...
* Add Settings::Mascot
* Add DUS
* Update usage
* Fix e2e test and controller
* Fix specs
* Fix remaining spec
2021-04-26 11:39:19 +07:00
Michael Kohl
62542a35ab
15 minute fix: Remove /partnerships page ✂️ ( #13480 )
...
* Remove partnerships
* Remove dead link
2021-04-26 08:44:53 +07:00
Molly Struve
73973d3941
Refactor:Remove jobs_url and Dispaly Banner ( #13479 )
2021-04-25 12:59:54 -05:00
rhymes
996f6e980f
[Search 2.0] Users ( #13453 )
...
* Add Search::Postgres::User
* Add sorting params
* Use a better algorithm to filter out suspended users
* Add tsvector index on users.name
* Add specs
* Add UserRole spec
* Update spec/services/search/postgres/user_spec.rb
Co-authored-by: Michael Kohl <citizen428@dev.to>
* Fix search with quotes in users's names
Co-authored-by: Michael Kohl <citizen428@dev.to>
2021-04-24 19:06:06 +02:00
rhymes
3292f27d53
Homepage query should not fail for nil article's cached tag list ( #13492 )
2021-04-24 18:36:34 +02:00
Fernando Valverde
affc704c9b
Runtime Banner for Mobile Deep Linking ( #13190 )
...
* First version using custom schemes for iOS
* Starting to take shape with /r/mobile redirect page
* Wording and aasa
* Adds e2e tests
* Trigger CI
* Tweaks to AASA
* Uses external pivot domain to trigger Universal Links
* Add missing external domain deep link
* Fix test by enabling runtime_banner only in E2E tests
* Fix URL encoding mismatch in Cypress test
* banner sttyling
* Cleanup unrelated changes
* Add AASA tests + remove lingering Gemfile.lock changes
* Fix cypress test
* Remove unnecessary window global assignment
* Trigger Travis
* Replace querySelectorAll with querySelector
* Apply suggestions from code review
Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
* Refactor inline comments, extract URL.deep_link logic and other review feedback
* Small tweaks
* Remove untrusted user-provided redirect (CodeQL suggestion)
* Fix failing tests
* Whoops - another test fix
* Use Forem's UDL server
* Extract timeoutDelay and add comment clarifying
* Add target='_blank' to deep link
* Add TODO comment for replacing hardcoded identifiers
* Apply suggestions from code review
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Add a11y attributes
Co-authored-by: Paweł Ludwiczak <ludwiczakpawel@gmail.com>
Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
2021-04-23 15:45:34 -06:00