Skip to content

Commit

Permalink
docs: DOC-1122 Tip for past release notes (#2483)
Browse files Browse the repository at this point in the history
* docs: DOC-1122

* save

* chore: added releasenotes component

* save

* save

* chore: test preview

* save

* docs: update

* docs: change the width of the dropdown

* chore: best CSS ever

* chore: fixed styling

* chore: save colors

* chore: fixed styling

* tests: changes

* chore: fixed browser scope

* chore: fixed browser scope leak

* save

* chore: fixed eslint

---------

Co-authored-by: addetz <[email protected]>
  • Loading branch information
karl-cardenas-coding and addetz authored Mar 28, 2024
1 parent d93d689 commit f48bf6a
Show file tree
Hide file tree
Showing 10 changed files with 431 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/docs-content/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ sidebar_custom_props:
tags: ["release-notes"]
---

<ReleaseNotesVersions />

## Feb 26, 2024 - Release 4.2.13

### Bug Fixes
Expand Down
229 changes: 229 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"prism-react-renderer": "^2.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-select": "^5.8.0",
"sass": "^1.64.1"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.dropdownContainer {
display: flex;
justify-content: center;
}

.dropdownContainer > div:first-child {
width: 50%;

@media (max-width: 768px) {
width: 100%;
}
}
25 changes: 25 additions & 0 deletions src/components/ReleaseNotesVersions/ReleaseNotesVersions.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import React from "react";
import { render, screen, logRoles } from "@testing-library/react";
import ReleaseNotesVersions from "./ReleaseNotesVersions";

// These test are pretty much useless.
// The only real purpose they show is catching simple issues, or component signature changes.

jest.mock("./ReleaseNotesVersions", () => {
return jest.fn(() => {
return <div data-testid="mock-rl-note-admn"></div>;
});
});
// Mock any other dependencies here

describe("ReleaseNotesVersions", () => {
it("renders without crashing", () => {
render(<ReleaseNotesVersions />);
expect(screen.getByTestId("mock-rl-note-admn")).toBeVisible();
expect(screen.getByTestId("mock-rl-note-admn")).toBeInTheDocument();
});
});

afterEach(() => {
jest.clearAllMocks();
});
Loading

0 comments on commit f48bf6a

Please sign in to comment.