Skip to content

Commit

Permalink
make the help desk available to regular ce users (#1099)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinaDudnyk authored Nov 4, 2024
1 parent 54dca61 commit 467842d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased


## [0.28.6] - 2024-10-29

### Changed

- added "Help" link to the information panel in the sidebar as the first link

## [0.28.5] - 2024-10-25

### Fixed
Expand Down Expand Up @@ -63,6 +70,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Build to include public files (#1112)
- Persisting choice of tabbed/split view when running `python` code (#1114)


## [0.27.1] - 2024-10-01

### Fixed
Expand Down
5 changes: 5 additions & 0 deletions src/components/Menus/Sidebar/InfoPanel/InfoPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import "../../../../assets/stylesheets/InfoPanel.scss";
const InfoPanel = () => {
const { t } = useTranslation();
const links = [
{
id: "help",
text: t("sidebar.help"),
href: "https://help.editor.raspberrypi.org/hc/en-us",
},
{
id: "feedback",
text: t("sidebar.feedback"),
Expand Down
5 changes: 5 additions & 0 deletions src/components/Menus/Sidebar/InfoPanel/InfoPanel.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ describe("Info panel", () => {
});

test("Links are rendered", () => {
expect(screen.queryByText("sidebar.help")).toBeInTheDocument();
expect(screen.queryByText("sidebar.feedback")).toBeInTheDocument();
expect(screen.queryByText("sidebar.privacy")).toBeInTheDocument();
});
Expand All @@ -43,5 +44,9 @@ describe("Info panel", () => {
"href",
"https://form.raspberrypi.org/f/code-editor-feedback",
);
expect(screen.queryByText("sidebar.help")).toHaveAttribute(
"href",
"https://help.editor.raspberrypi.org/hc/en-us",
);
});
});
1 change: 1 addition & 0 deletions src/utils/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ i18n
"Our Code Editor is a tool to help young people learn to code. We have only included functions that are simple and safe to use. That's why, for example, links to other websites are not allowed.",
instructions: "Project steps",
feedback: "Feedback",
help: "Help",
privacy: "Privacy",
cookies: "Cookies",
accessibility: "Accessibility",
Expand Down

0 comments on commit 467842d

Please sign in to comment.