Skip to content

Commit 0c821d5

Browse files
ahtesham-quraishAhtesham Quraish
andauthored
fix: change mit log link to home and termsof services (#3021)
* fix: change mit log link to home and termsof services --------- Co-authored-by: Ahtesham Quraish <ahtesham.quraish@192.168.10.4>
1 parent c1e3c4b commit 0c821d5

4 files changed

Lines changed: 29 additions & 35 deletions

File tree

frontends/main/src/app-pages/TermsPage/TermsPage.tsx

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ const TermsPage: React.FC = () => {
104104
</Link>{" "}
105105
prior to registering for a {SITE_NAME} account or using any portion
106106
of the {SITE_NAME} website ("Site"), including accessing any
107-
Offering.
107+
Offering. Please be advised that certain Offerings may have other
108+
terms associated with its service. To the extent those terms differ
109+
from these TOS, the Offering-specific terms shall govern.
108110
</BodyText>
109111
<BodyText variant="body1">
110112
These TOS, the Privacy Policy, and the Honor Code are agreements
@@ -230,19 +232,22 @@ const TermsPage: React.FC = () => {
230232
content posted to the Site or through any Offering contained on the
231233
Site, including but not limited to texts, exams, video, images, and
232234
other instructional materials provided in connection with the
233-
modules / courses offered on the Site, as well as User Postings
234-
posted by other users.
235+
modules / courses offered on the Site, as well as outputs generated
236+
by the Site’s AI tools and User Postings posted by other users.
235237
</BodyText>
236238
<BodyText variant="body1">
237-
Unless otherwise indicated, all content on the Site and in the
238-
various Offerings is protected by United States and foreign
239-
copyright laws, and you may engage only in personal, noncommercial
240-
use of the Site Content. You may not otherwise reproduce,
241-
retransmit, distribute, display, publish, commercially exploit or
242-
otherwise make available any content in print, electronic, or any
243-
other medium. You may not record any portion of any module / course.
244-
Any additional presentation of any module / course or of materials
245-
derived from any module / course is also strictly prohibited.
239+
Unless otherwise indicated or as provided for in a specific
240+
Offering, all content on the Site and in the various Offerings is
241+
protected by United States and foreign copyright laws, and you may
242+
engage only in personal, noncommercial use of the Site Content. You
243+
may not otherwise reproduce, retransmit, distribute, display,
244+
publish, commercially exploit or otherwise make available any
245+
content in print, electronic, or any other medium or use any Site
246+
Content for developing, training, or improving artificial
247+
intelligence systems or large language models. You may not record
248+
any portion of any module / course. Any additional presentation of
249+
any module / course or of materials derived from any module / course
250+
is also strictly prohibited.
246251
</BodyText>
247252
<BodyText variant="body1">
248253
Certain reference documents, digital textbooks, figures,
@@ -681,10 +686,11 @@ const TermsPage: React.FC = () => {
681686
Entire Agreement.
682687
</BodyText>
683688
<BodyText variant="body1">
684-
These TOS, the Honor Code, and the Privacy Policy together
685-
constitute the entire agreement between you and {SITE_NAME} with
686-
respect to your use of the Site and its Offerings, superseding any
687-
prior agreements between you and MIT regarding your use of the Site.
689+
These TOS, the Honor Code, any Offering-specific terms of service,
690+
and the Privacy Policy together constitute the entire agreement
691+
between you and {SITE_NAME} with respect to your use of the Site and
692+
its Offerings, superseding any prior agreements between you and MIT
693+
regarding your use of the Site.
688694
</BodyText>
689695
<BodyText variant="body1" style={{ fontWeight: "bold" }}>
690696
Waiver and Severability of TOS.
@@ -715,7 +721,7 @@ const TermsPage: React.FC = () => {
715721
inconvenience of forum).
716722
</BodyText>
717723
<BodyText variant="body1">
718-
These terms of service were last updated on June 9, 2025.
724+
These terms of service were last updated on March 9, 2026.
719725
</BodyText>
720726
</BodyContainer>
721727
</PageContainer>

frontends/main/src/components/MITLogoLink/MITLogoLink.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import learnLogo from "@/public/images/mit-learn-logo.svg"
77
import { styled } from "ol-components"
88

99
interface Props {
10-
logo: "mit_white" | "mit_black" | "learn" | "learn_authenticated"
10+
logo: "mit_white" | "mit_black" | "learn"
1111
className?: string
1212
}
1313

@@ -27,10 +27,6 @@ const linkProps = {
2727
href: "/",
2828
title: "MIT Learn Homepage",
2929
},
30-
learn_authenticated: {
31-
href: "/dashboard",
32-
title: "Your MIT Learning Journey",
33-
},
3430
mit_black: {
3531
href: "https://mit.edu/",
3632
title: "MIT Homepage",
@@ -46,9 +42,6 @@ const imageProps = {
4642
learn: {
4743
src: learnLogo,
4844
},
49-
learn_authenticated: {
50-
src: learnLogo,
51-
},
5245
mit_black: {
5346
src: mitLogoBlack,
5447
},

frontends/main/src/page-components/Header/Header.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ describe("Header", () => {
2424
})
2525
})
2626

27-
it("Includes a link to the Dashboard for authenticated user", async () => {
27+
it("Includes a link to the Homepage for authenticated user", async () => {
2828
setMockResponse.get(urls.userMe.get(), { is_authenticated: true })
2929
renderWithProviders(<Header />)
3030
const header = screen.getByRole("banner")
3131
const links = await within(header).findAllByRole("link", {
32-
name: "Your MIT Learning Journey",
32+
name: "MIT Learn Homepage",
3333
})
3434
links.forEach((link) => {
35-
expect(link).toHaveAttribute("href", "/dashboard")
35+
expect(link).toHaveAttribute("href", "/")
3636
})
3737
})
3838
})

frontends/main/src/page-components/Header/Header.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@ const Header: FunctionComponent = () => {
282282
const [drawerOpen, toggleDrawer] = useToggle(false)
283283
const desktopTrigger = React.useRef<HTMLButtonElement>(null)
284284
const mobileTrigger = React.useRef<HTMLButtonElement>(null)
285-
const { data: user } = useUserMe()
286285
const drawerToggleEvent = drawerOpen
287286
? PostHogEvents.ClosedNavDrawer
288287
: PostHogEvents.OpenedNavDrawer
@@ -301,9 +300,7 @@ const Header: FunctionComponent = () => {
301300
<Bar position="fixed">
302301
<StyledToolbar variant="dense">
303302
<DesktopOnly>
304-
<StyledMITLogoLink
305-
logo={user?.is_authenticated ? "learn_authenticated" : "learn"}
306-
/>
303+
<StyledMITLogoLink logo="learn" />
307304
<LeftSpacer />
308305
<MenuButton
309306
ref={desktopTrigger}
@@ -314,9 +311,7 @@ const Header: FunctionComponent = () => {
314311
<MobileOnly>
315312
<MenuButton ref={mobileTrigger} onClick={menuClick} />
316313
<LeftSpacer />
317-
<StyledMITLogoLink
318-
logo={user?.is_authenticated ? "learn_authenticated" : "learn"}
319-
/>
314+
<StyledMITLogoLink logo="learn" />
320315
</MobileOnly>
321316
<Spacer />
322317
<UserView />

0 commit comments

Comments
 (0)