Skip to content

Commit

Permalink
Merge branch 'main' into feat/ingest-publish-rag
Browse files Browse the repository at this point in the history
  • Loading branch information
mantagen committed Nov 26, 2024
2 parents 05ba3c5 + 69b2371 commit f33933b
Show file tree
Hide file tree
Showing 158 changed files with 2,968 additions and 1,238 deletions.
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"eyfs",
"firstname",
"fkey",
"flagbuttonformitem",
"fontsource",
"gdrive",
"Geist",
Expand Down Expand Up @@ -146,6 +147,7 @@
"transpiles",
"trivago",
"trpc",
"TSES",
"Turbopack",
"turborepo",
"uidotdev",
Expand Down
18 changes: 18 additions & 0 deletions CHANGE_LOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
## [1.16.2](https://github.com/oaknational/oak-ai-lesson-assistant/compare/v1.16.1...v1.16.2) (2024-11-25)


### Bug Fixes

* add missing dependencies to Analytics Provider ([#306](https://github.com/oaknational/oak-ai-lesson-assistant/issues/306)) ([871c23f](https://github.com/oaknational/oak-ai-lesson-assistant/commit/871c23f4af0374d98428305fd388400ebb08b035))
* handle aborts and add logging to the stream handler ([#350](https://github.com/oaknational/oak-ai-lesson-assistant/issues/350)) ([20f956e](https://github.com/oaknational/oak-ai-lesson-assistant/commit/20f956e35299ed8f465a8265d7aa52c7f18ac830))
* hook error on sign-in page ([#208](https://github.com/oaknational/oak-ai-lesson-assistant/issues/208)) ([c298b10](https://github.com/oaknational/oak-ai-lesson-assistant/commit/c298b1051cab04643f04f6526b1dd0d835321c7e))
* **sec:** bump next to 14.2.18 ([#242](https://github.com/oaknational/oak-ai-lesson-assistant/issues/242)) ([81fc31c](https://github.com/oaknational/oak-ai-lesson-assistant/commit/81fc31cddb3771b2ace860ee23b17448b22af7fb))

## [1.16.1](https://github.com/oaknational/oak-ai-lesson-assistant/compare/v1.16.0...v1.16.1) (2024-11-21)


### Bug Fixes

* add types for SVG imports, remove unused ([#318](https://github.com/oaknational/oak-ai-lesson-assistant/issues/318)) ([c1eff88](https://github.com/oaknational/oak-ai-lesson-assistant/commit/c1eff88efad2496ac0d82a8b8c03d38adf61e8ed))
* streaming JSON types and error reporting tests ([#315](https://github.com/oaknational/oak-ai-lesson-assistant/issues/315)) ([3e18b44](https://github.com/oaknational/oak-ai-lesson-assistant/commit/3e18b446a58f44222919fa4712379785500b903d))

# [1.16.0](https://github.com/oaknational/oak-ai-lesson-assistant/compare/v1.15.0...v1.16.0) (2024-11-18)


Expand Down
1 change: 1 addition & 0 deletions apps/nextjs/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
module.exports = {
extends: ["../../.eslintrc.cjs", "next", "plugin:storybook/recommended"],
rules: {
"react/prefer-read-only-props": "error",
"no-restricted-imports": [
"error",
{
Expand Down
1 change: 0 additions & 1 deletion apps/nextjs/.storybook/decorators/RadixThemeDecorator.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react";

import { Theme } from "@radix-ui/themes";
import "@radix-ui/themes/styles.css";

export const RadixThemeDecorator = (Story: React.ComponentType) => (
<Theme>
Expand Down
2 changes: 1 addition & 1 deletion apps/nextjs/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const config: StorybookConfig = {
name: getAbsolutePath("@storybook/nextjs"),
options: {},
},
staticDirs: ["../public"],
staticDirs: ["../public", "./public"],
typescript: {
check: false,
checkOptions: {},
Expand Down
1 change: 1 addition & 0 deletions apps/nextjs/.storybook/preview.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@import "../src/app/globals.css";
@import "../src/app/theme-config.css";
@import "../../../node_modules/@radix-ui/themes/styles.css";
18 changes: 12 additions & 6 deletions apps/nextjs/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ import "@fontsource/lexend/800.css";
import "@fontsource/lexend/900.css";
import { OakThemeProvider, oakDefaultTheme } from "@oaknational/oak-components";
import type { Preview, Decorator } from "@storybook/react";
import { initialize as initializeMsw, mswLoader } from "msw-storybook-addon";

import { TooltipProvider } from "../src/components/AppComponents/Chat/ui/tooltip";
import { DialogProvider } from "../src/components/AppComponents/DialogContext";
import { AnalyticsProvider } from "../src/mocks/analytics/provider";
import { ClerkDecorator } from "../src/mocks/clerk/ClerkDecorator";
import { TRPCReactProvider } from "../src/utils/trpc";
import { RadixThemeDecorator } from "./decorators/RadixThemeDecorator";
import "./preview.css";

initializeMsw();

const preview: Preview = {
parameters: {
controls: {
Expand All @@ -25,7 +29,7 @@ const preview: Preview = {
},
},
},
tags: ["autodocs"],
loaders: [mswLoader],
};

// Providers not currently used
Expand All @@ -44,11 +48,13 @@ export const decorators: Decorator[] = [
{/* TODO: Mock tRPC calls with MSW */}
<TRPCReactProvider>
<AnalyticsProvider>
<OakThemeProvider theme={oakDefaultTheme}>
<TooltipProvider>
<Story />
</TooltipProvider>
</OakThemeProvider>
<DialogProvider>
<OakThemeProvider theme={oakDefaultTheme}>
<TooltipProvider>
<Story />
</TooltipProvider>
</OakThemeProvider>
</DialogProvider>
</AnalyticsProvider>
</TRPCReactProvider>
</>
Expand Down
Loading

0 comments on commit f33933b

Please sign in to comment.