Skip to content

Commit

Permalink
remove /featured
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielburnworth committed Nov 15, 2024
1 parent d3d6e4e commit 5e6b049
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 111 deletions.
1 change: 0 additions & 1 deletion app/controllers/dashboard_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class DashboardController < ApplicationController
try_farmbot: "/try_farmbot/index.tsx",
promo: "/promo/index.tsx",
os_download: "/os_download/index.tsx",
featured: "/featured/index.tsx",
terminal: "/terminal/index.tsx",
}.with_indifferent_access

Expand Down
1 change: 0 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@
get "/try_farmbot" => "dashboard#try_farmbot", as: :try_farmbot_main
get "/promo" => "dashboard#promo", as: :promo_main
get "/os" => "dashboard#os_download", as: :os_download
get "/featured" => "dashboard#featured", as: :featured
get "/password_reset/*token" => "dashboard#password_reset", as: :password_reset
get "/tos_update" => "dashboard#tos_update", as: :tos_update
get "/verify/:token" => "dashboard#confirmation_page", as: :confirmation_page
Expand Down
19 changes: 0 additions & 19 deletions frontend/featured/__tests__/content_test.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions frontend/featured/__tests__/index_test.tsx

This file was deleted.

69 changes: 0 additions & 69 deletions frontend/featured/content.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions frontend/featured/index.tsx

This file was deleted.

10 changes: 9 additions & 1 deletion frontend/sequences/panel/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { mapStateToProps } from "../state_to_props";
import { SequencesProps } from "../interfaces";
import { publishAction, SectionHeader } from "../sequence_editor_middle_active";
import { Collapse } from "@blueprintjs/core";
import { FeaturedSequence } from "../../featured/content";
import axios from "axios";
import { API } from "../../api";
import { ColorPicker, Markdown, Popover } from "../../ui";
Expand All @@ -26,6 +25,15 @@ import { Actions } from "../../constants";
import { isMobile } from "../../screen_size";
import { NavigationContext } from "../../routes_helpers";
import { useNavigate } from "react-router-dom";
import { Color } from "farmbot";

interface FeaturedSequence {
id: number;
path: string;
name: string;
description: string;
color: Color;
}

interface DesignerSequenceListState {
featuredList: FeaturedSequence[];
Expand Down
5 changes: 0 additions & 5 deletions spec/controllers/dashboard_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
expect(response.status).to eq(200)
end

it "renders the featured sequences page" do
get :featured
expect(response.status).to eq(200)
end

it "renders the front page" do
get :front_page
expect(response.status).to eq(200)
Expand Down

0 comments on commit 5e6b049

Please sign in to comment.