No description
Find a file
Ridhwana ccacf0bc3a
Refactor the home feed + add user tag filtering on in-feed billboards (#19600)
* feat: fix of there is no article

* feat: set the feed order in a data structure rather than in a view

* feat: update yarn.lock

* feat: push the items to the array

* feat: update feed to only show billboards if we have the correct length of items in the feed

* fix: organizedFeedItems.legth

* feat: rename 'featured' to 'image'

* feat: rename 'featured' to 'image'

* feat: rename 'featured' to 'image'

* feat: add some utilities for the feed that we can use in the FeedTest

* feat/WIP: the setup for the feed tests and a first working test

* test: imageItem

* fix: the podcasts can be passed through as an array of objects in the feedItems so that they can be grouped in one card

* feat: remove podcastEpisode state and the attribute in the object

* fix: check that the items exist before trying to slice them

* feat: setup the userdata and the podcast data in the test

* whoops - commit the podcast episodes

* feat: write soem more tests for the feed and including the podcasts

* feat: add some more tests

* feat: add more billboards tests to chcek the order of stuff

* feat: set the timeframe not empty

* feat: update the logic for organizaed feed by inserting the last on first

* doc: jsdoc for functions

* refactor: break the code up into smaller functions

* refactor: make the code more readable and easier to follow

* refactor: pull function out into a utlity

* feat: add specs to utility

* feat: chcek if pinned post

* test the latest timeframe correctly

* chore: update var name

* move the podcast items out of the object clause

* feat: update text

* feat: add a pack file that duplicates initializeDisplayAdVisibility

* feat: create callbacks that will help us to determine when the feed has been rendered so that we can observe the dsplay ads accordingly

* chore: rename to billboards instead of display ad

* feat: abstract out a function that will work for any tagged resource and also limit the article tags within a scope of the article_id

* feat: update the spec for the previous changes

* feat: write tests for the user_tags

* feat: add user_tags to for_display adn the query

* feat: add user_tags to the endpoint where we query the tags to send it through to for_display

* feat: pass through the suer tags to the async request

* feat: update the user_tags fiter query + tests

* feat: update the admin view to show targeted tags on the new feed option billboards too

* feat: add tests for targeted tags field on admin

* refactor: consolidate all of the options into one

* feat: move comment close to attribute

* feat: use a helper method

* feat: include helper on ads query

* feat: move the query from the frontend to live on the backend

* feat: first pass at some error handling whilst maintaining the order of the items

* test: for feed error

* feat: abstract out some code

* update the feed items for errors

* chore: comment

* feat: update the variable names

* feat: update honeybadger message

* feat: update the name of the variable

* refactor: do not conflate the duty of the untagged_ads

* refactor: rename the variables + add note for clarity

* fix: update var
2023-07-06 16:47:08 +02:00
.buildkite Removes this dupe container block since we are going to run this pipeline (#11506) 2020-11-19 15:05:49 -06:00
.gems Bugfix for #7663 and refactor of container setup (#7747) 2020-05-28 12:11:51 -05:00
.github Add retry to codecov upload (#19679) 2023-07-03 16:40:51 -04:00
.husky [15 min fix] Updated husky package and configuration/pre-commit hook (#14346) 2021-07-27 15:39:00 -04:00
.vscode Stop recommending deprecated plugins (#17870) 2022-06-10 09:33:44 -05:00
.yarn/releases Update yarn from 1.22.5 to 1.22.18 (#16938) 2022-03-21 10:53:24 -04:00
app Refactor the home feed + add user tag filtering on in-feed billboards (#19600) 2023-07-06 16:47:08 +02:00
bin Fix comment moderation's UI bugs (#19554) 2023-06-23 09:56:24 -04:00
config Admin comments page with flag and quality reaction details. (#19647) 2023-07-05 22:05:35 +05:30
cypress Refactor the home feed + add user tag filtering on in-feed billboards (#19600) 2023-07-06 16:47:08 +02:00
datadog Declare DD_VERSION in prerun.sh 2nd try (#13258) 2021-04-05 17:10:46 -04:00
db Add index to billboard placement area (#19648) 2023-06-29 12:14:38 -04:00
lib Update onboarding suggested tag logic (#19477) 2023-05-23 17:22:27 +02:00
log Initial commit 2018-02-28 16:11:08 -05:00
public Change copy in ai-plugin (#19451) 2023-05-10 11:59:18 -03:00
scripts devxp: Base the application container images off new Ruby base image. (#19633) 2023-06-29 10:50:26 -07:00
spec Refactor the home feed + add user tag filtering on in-feed billboards (#19600) 2023-07-06 16:47:08 +02:00
swagger/v1 Follow-ups for suggested organizations follows during onboarding (#19619) 2023-06-29 11:49:01 +02:00
uffizzi devxp: Base the application container images off new Ruby base image. (#19633) 2023-06-29 10:50:26 -07:00
vendor [ruby] Update counter_culture 3.3.0 → 3.3.1 (patch) (#19684) 2023-07-05 16:31:11 -04:00
.dockerignore Remove docs from repo ✂✂✂ (#14579) 2021-08-23 17:23:42 -04:00
.editorconfig Export articles/posts (#576) 2018-11-21 11:13:36 -05:00
.env.test symlink .env_sample as .env.test (#16939) 2022-03-22 09:32:50 -05:00
.env_sample Add Google Analytics 4 Support (#18124) 2022-07-21 09:26:13 -05:00
.erb-lint.yml Upgrade Rails to 6.1.3.1 (#11333) 2021-04-05 10:39:48 -04:00
.eslintignore Remove non application files from frontend code coverage (#11752) 2020-12-04 20:00:20 -05:00
.eslintrc.js Bump eslint from 7.32.0 to 8.6.0 (#15926) 2022-01-05 13:47:40 -05:00
.gitattributes Configured the repository to handle line endings (#16234) 2022-01-21 08:57:05 -05:00
.gitignore Implement code coverage for Cypress (#19250) 2023-03-29 15:37:50 -04:00
.gitpod.dockerfile Update to node version 16 (#15522) 2022-01-03 10:23:07 -06:00
.gitpod.yml Command update for gp cli in gitpod.yml (#18208) 2022-08-09 11:36:07 -06:00
.lintstagedrc.js Keep rubocop's usage consistent (#19293) 2023-04-06 07:53:59 -04:00
.nvmrc Update to node version 16 (#15522) 2022-01-03 10:23:07 -06:00
.prettierignore Use yarn 1.21.1 (#5786) 2020-02-05 17:04:06 -05:00
.prettierrc.json Extracting prettier config (#10847) 2020-10-14 22:28:31 -04:00
.rspec Update .rspec (#18925) 2023-01-06 10:02:30 -05:00
.rubocop.yml Add organizations to onboarding follow suggestions (#19564) 2023-06-09 10:32:03 +02:00
.rubocop_todo.yml ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
.ruby-version Upgrade to Ruby 3.0.2 (#12103) 2021-08-25 14:26:33 -04:00
.simplecov [CI] Move code-coverage upload into isolated process (#19532) 2023-05-26 09:09:39 -04:00
.slugignore Remove CodeClimate (#18867) 2022-12-19 12:22:19 -05:00
.solargraph.yml Improving Solargraph options (#16899) 2022-03-17 16:47:55 -04:00
.yardopts Adds Ruby source code documentation to docs.dev.to (#2656) 2019-05-02 13:50:58 -04:00
.yarnclean Use Github action for CI (#18617) 2022-10-27 09:51:27 -04:00
.yarnrc Update yarn from 1.22.5 to 1.22.18 (#16938) 2022-03-21 10:53:24 -04:00
babel.config.js Fix broken cypress code coverage (#19282) 2023-03-30 12:36:12 -04:00
CHANGELOG.md Add support for versioned releases (#13750) 2021-07-28 10:10:33 -04:00
CODE_OF_CONDUCT.md Replace ban/banned with suspend/suspended in user facing text (#5816) [deploy] 2020-02-10 10:12:53 -05:00
codecov.yml [CI] Move code-coverage upload into isolated process (#19532) 2023-05-26 09:09:39 -04:00
config.ru Upgrade Rails to 6.1.3.1 (#11333) 2021-04-05 10:39:48 -04:00
container-compose.yml Add healthchecks to container-compose.yml (#19283) 2023-04-14 11:27:05 -04:00
Containerfile devxp: Base the application container images off new Ruby base image. (#19633) 2023-06-29 10:50:26 -07:00
Containerfile.base devxp: Replace forem/ruby image with open-source Debian-based analogue. (#19632) 2023-06-28 10:44:56 -07:00
customJsDomEnvironment.js Bump jest from 27.5.1 to 28.1.0 (#17612) 2022-05-10 07:27:36 -04:00
cypress.config.js Address flaky specs (#19188) 2023-03-02 09:40:06 -05:00
cypress.dev.config.js Bump cypress and @knapsack-pro/cypress (#18025) 2022-07-06 17:53:13 -04:00
docker-compose.yml Add a minimal test database setup to the docker-compose file (#16305) 2022-01-31 09:22:38 -06:00
Dockerfile Bugfix for #7663 and refactor of container setup (#7747) 2020-05-28 12:11:51 -05:00
empty-module.js Initial commit 2018-02-28 16:11:08 -05:00
Gemfile 🚨 [security] [ruby] Update rails 7.0.4.3 → 7.0.5.1 (patch) (#19642) 2023-06-27 14:21:57 -04:00
Gemfile.lock [ruby] Update counter_culture 3.3.0 → 3.3.1 (patch) (#19684) 2023-07-05 16:31:11 -04:00
gitpod-init.sh Made GitHub CLI install permanent in Gitpod (#14787) 2021-09-21 15:27:39 -04:00
Guardfile Rubocop fixes (#18461) 2022-09-16 15:25:48 +03:00
jest.config.js Implement code coverage for Cypress (#19250) 2023-03-29 15:37:50 -04:00
jsconfig.json Reworked some webpack aliases as prework for #16174. (#16412) 2022-02-04 06:34:37 -05:00
LICENSE.md Ran all markdown files through prettier to fix a handful. (#4599) 2019-10-28 08:20:53 -04:00
package.json [js] Update @cypress/code-coverage 3.10.0 → 3.10.7 (patch) (#19690) 2023-07-06 08:02:26 -04:00
postcss.config.js Fix yarn postcss (#18711) 2022-11-11 08:57:11 -06:00
Procfile remove rake jobs:work references from code (#6082) [deploy] 2020-02-14 15:18:08 -05:00
Procfile.dev Adapt dev env to run on a remote box (#8232) 2020-06-18 13:01:49 +02:00
Procfile.dev-hot Initial commit 2018-02-28 16:11:08 -05:00
Rakefile Remove fix-db-schema-conflicts gem (#12432) 2021-01-26 10:52:38 -05:00
README.md add duke to list of core contributors (#19308) 2023-04-10 09:51:07 -04:00
release-tasks.sh Remove Elasticsearch ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ (#13606) 2021-05-03 11:09:45 -04:00
SECURITY.md [deploy] 🚀 Feature: Chat channel membership manager component (#8945) 2020-07-20 08:08:31 -04:00
svgo.config.js svgo: update configuration for 2.4 syntax (#14524) 2021-08-17 18:54:10 +02:00
testSetup.js Follow all suggested users by default when onboarding (#19435) 2023-05-09 17:04:10 +01:00
yarn.lock [js] Update @cypress/code-coverage 3.10.0 → 3.10.7 (patch) (#19690) 2023-07-06 08:02:26 -04:00


Forem 🌱

For Empowering Community

Build Status GitHub commit activity GitHub issues ready for dev GitPod badge

Welcome to the Forem codebase, the platform that powers dev.to. We are so excited to have you. With your help, we can build out Forems usability, scalability, and stability to better serve our communities.

What is Forem?

Forem is open source software for building communities. Communities for your peers, customers, fanbases, families, friends, and any other time and space where people need to come together to be part of a collective. See our announcement post for a high-level overview of what Forem is.

dev.to (or just DEV) is hosted by Forem. It is a community of software developers who write articles, take part in discussions, and build their professional profiles. We value supportive and constructive dialogue in the pursuit of great code and career growth for all members. The ecosystem spans from beginner to advanced developers, and all are welcome to find their place within our community. ❤️

Table of Contents

Community

For a place to have open discussions on features, voice your ideas, or get help with general questions please visit our community at forem.dev.

Contributing

We encourage you to contribute to Forem! Please check out the Contributing to Forem guide for guidelines about how to proceed.

Getting Started

This section provides a high-level quick start guide. If you're looking for a more thorough installation guide (for example with macOS, you'll want to refer to our complete Developer Documentation.

We run on a Rails backend, and we are currently transitioning to a Preact-first frontend.

A more complete overview of our stack is available in our docs.

To launch Forem in Gitpod, navigate to https://gitpod.io/#https://github.com/{your_github_username}/forem.

Prerequisites

Local

Containers

Linux

OS X

Installation Documentation

Please see our installation guides, such as the one for macOS.

Developer Documentation

Check out our dedicated docs page for more technical documentation.

Core team

Vulnerability disclosure

Forem is the open source software which powers DEV.

We welcome security research on DEV under the terms of our vulnerability disclosure policy.

Acknowledgements

Thank you to the Twemoji project for the usage of their emojis.

Thank you to Uffizzi for providing ephemeral environments to preview pull requests.

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Please see the LICENSE file in our repository for the full text.

Like many open source projects, we require that contributors provide us with a Contributor License Agreement (CLA). By submitting code to the Forem project, you are granting us a right to use that code under the terms of the CLA.

Our version of the CLA was adapted from the Microsoft Contributor License Agreement, which they generously made available to the public domain under Creative Commons CC0 1.0 Universal.

Any questions, please refer to our license FAQ doc or email yo@dev.to.


Sloan, the sloth mascot
Happy Coding ❤️

⬆ Back to Top