Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions RELEASE.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
Release Notes
=============

Version 0.19.1
--------------

- Fix refreshes and deterministic sort order (#1564)
- align items center (#1566)
- add noindex setting (#1559)
- always use dfs_query_then_fetch (#1558)
- updated OLL csv file (#1557)
- input / search input styling updates (#1545)
- Update dependency pytest to v8 (#1548)

Version 0.19.0 (Released September 16, 2024)
--------------

Expand Down
4 changes: 4 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,10 @@
"description": "Shared secret for JWT auth tokens",
"required": false
},
"MITOL_NOINDEX": {
"description": "Prevent search engines from indexing the site",
"required": false
},
"MITOL_SECURE_SSL_REDIRECT": {
"description": "Application-level SSL redirect setting.",
"value": "True",
Expand Down
101 changes: 0 additions & 101 deletions frontends/api/src/generated/v1/api.ts

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions frontends/mit-learn/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<% if (MITOL_NOINDEX) { %>
<meta name="robots" content="noindex" />
<% } %>
<!--
Font files for Adobe Neue Haas Grotesk.
WARNING: This is linked to chudzick@mit.edu's Adobe account.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,6 @@ const SearchDisplay: React.FC<SearchDisplayProps> = ({
max_incompleteness_penalty: searchParams.get(
"max_incompleteness_penalty",
),
use_dfs_query_then_fetch: searchParams.get("use_dfs_query_then_fetch"),
...requestParams,
aggregations: (facetNames || []).concat([
"resource_category",
Expand Down

This file was deleted.

162 changes: 0 additions & 162 deletions frontends/mit-learn/src/page-components/SearchDisplay/SearchInput.tsx

This file was deleted.

45 changes: 16 additions & 29 deletions frontends/mit-learn/src/pages/ChannelPage/ChannelSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,36 +14,25 @@ import type {
} from "@mitodl/course-search-utils"
import { useSearchParams } from "@mitodl/course-search-utils/react-router"
import SearchDisplay from "@/page-components/SearchDisplay/SearchDisplay"
import { SearchInput } from "@/page-components/SearchDisplay/SearchInput"
import { Container, SearchInput, styled, VisuallyHidden } from "ol-components"

import { getFacetManifest } from "@/pages/SearchPage/SearchPage"

import _ from "lodash"
import { styled, VisuallyHidden } from "ol-components"

const SearchInputContainer = styled.div`
padding-bottom: 40px;

${({ theme }) => theme.breakpoints.down("md")} {
padding-bottom: 35px;
}
`

const StyledSearchInput = styled(SearchInput)`
justify-content: center;
${({ theme }) => theme.breakpoints.up("md")} {
.input-field {
height: 40px;
width: 450px;
}

.button-field {
height: 40px;
padding: 12px 16px 12px 12px;
width: 20px;
}
}
`

const SearchInputContainer = styled(Container)(({ theme }) => ({
width: "100%",
display: "flex",
justifyContent: "center",
paddingBottom: "40px",
[theme.breakpoints.down("md")]: {
paddingBottom: "35px",
},
}))

const StyledSearchInput = styled(SearchInput)({
width: "624px",
})

const FACETS_BY_CHANNEL_TYPE: Record<ChannelTypeEnum, string[]> = {
[ChannelTypeEnum.Topic]: [
Expand Down Expand Up @@ -185,16 +174,14 @@ const ChannelSearch: React.FC<ChannelSearchProps> = ({
<SearchInputContainer>
<StyledSearchInput
value={currentText}
size="large"
onChange={(e) => setCurrentText(e.target.value)}
onSubmit={(e) => {
setCurrentTextAndQuery(e.target.value)
}}
onClear={() => {
setCurrentTextAndQuery("")
}}
classNameInput="input-field"
classNameSearch="button-field"
placeholder="Search for courses, programs, and learning materials..."
/>
</SearchInputContainer>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const TopicBox = styled(Link)`
const TopicBoxContent = styled.div`
display: flex;
justify-content: space-between;
align-items: start;
align-items: center;
gap: 10px;
width: 100%;

Expand Down
11 changes: 8 additions & 3 deletions frontends/mit-learn/src/pages/HomePage/HeroSearch.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import React, { useState, useCallback } from "react"
import { useNavigate } from "react-router"
import { Typography, styled, ChipLink, Link } from "ol-components"
import {
Typography,
styled,
ChipLink,
Link,
SearchInput,
SearchInputProps,
} from "ol-components"
import type { ChipLinkProps } from "ol-components"
import { SearchInput, SearchInputProps } from "./SearchInput"
import {
ABOUT,
SEARCH_CERTIFICATE,
Expand Down Expand Up @@ -231,7 +237,6 @@ const HeroSearch: React.FC = () => {
</Typography>
<ControlsContainer>
<SearchInput
placeholder="Search for courses, programs, and learning materials..."
size="hero"
fullWidth
value={searchText}
Expand Down
Loading