-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add categoriser to fixtures in tests, fix streaming bugs (WIP) #323
Draft
stefl
wants to merge
121
commits into
fix/dropdown_sections
Choose a base branch
from
fix/no_live_openai
base: fix/dropdown_sections
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 1 commit
Commits
Show all changes
121 commits
Select commit
Hold shift + click to select a range
8a49562
feat: add categoriser to fixtures in tests, fix streaming bugs
stefl 09b96c9
Typescript import issue using @utils
stefl 4c346d0
chore: add expired exports cron job to public routes (#358)
JBR90 fba6c1c
Merge pull request #360 from oaknational/rc-20241111-1
mikeritson-oak 4a9d4fb
build(release v1.14.2): See CHANGE_LOG.md
semantic-release-bot 854950d
feat: prisma health check - AI-625 (#356)
JBR90 d0fe2d0
feat: add additional materials button - AI-539 [migration] (#255)
JBR90 646b419
Merge pull request #363 from oaknational/main
mikeritson-oak 713f18c
build(release v1.15.0): See CHANGE_LOG.md
semantic-release-bot 1d4995e
feat: add FeatureFlagProvider (#353)
codeincontext 05ccce6
feat: link to hubspot form from requests for full access and higher r…
JBR90 33df453
test: add storybook stories for public pages (#365)
codeincontext 72d381f
test: add stories for header and footer (#368)
codeincontext c1eff88
fix: add types for SVG imports, remove unused (#318)
stefl a78bcd0
chore: remove example_lesson.json (#366)
JBR90 2085398
Merge pull request #370 from oaknational/rc-20241118-1
mikeritson-oak 00b681b
chore: camel case imports in a single file (#309)
stefl 937194e
build(release v1.16.0): See CHANGE_LOG.md
semantic-release-bot a128d8c
Merge remote-tracking branch 'origin/production'
actions-user 8162e39
refactor: adjust all dialogs to use oak components (#335)
tomwisecodes 27cb19b
test: stories for aila routes (#371)
codeincontext ba5618e
chore: change text to sentence case - AI-237 (#355)
JBR90 3e18b44
fix: streaming JSON types and error reporting tests (#315)
stefl 75e64b9
refactor: add more granular logging to cron job (#373)
JBR90 20f956e
fix: handle aborts and add logging to the stream handler (#350)
stefl d992b6c
chore: experimental properties on lesson plan [AI-608] (#362)
mantagen 03df2c3
test: stories for dialogs (#372)
codeincontext 964f2b8
Merge pull request #374 from oaknational/rc-20241120-1
mikeritson-oak ee17558
build(release v1.16.1): See CHANGE_LOG.md
semantic-release-bot 1cc8ce5
Merge remote-tracking branch 'origin/production'
actions-user c298b10
fix: hook error on sign-in page (#208)
stefl 871c23f
fix: add missing dependencies to Analytics Provider (#306)
stefl cf48fdf
test: stories for right hand side of lesson planner (#377)
codeincontext 81fc31c
fix(sec): bump next to 14.2.18 (#242)
johnrobeds 3b529a9
Merge pull request #380 from oaknational/rc-20241125-1
mikeritson-oak 58cedeb
build(release v1.16.2): See CHANGE_LOG.md
semantic-release-bot cd88576
fix: assert readonly props (#381)
stefl 69b2371
feat: move delete all button and restyle side menu (#375)
tomwisecodes 6af7fad
chore: add rag table migrations (#385)
mantagen 610d8c8
fix: svg clip-rule should be clipRule in JSX (#382)
stefl ec4ce6e
fix: minor linting (#384)
stefl 844ed48
chore: copy updates for help page - AI-492 (#367)
JBR90 015cd25
fix: minor sonar issues (#390)
stefl 7b4d5bc
fix: readonly props for icons.tsx (#389)
stefl 02cc4db
chore: add Jest code coverage to Sonar, fix minor Sonar errors (#387)
stefl b40def9
fix: prefer nullish coalescing (#391)
stefl 4cb2e45
refactor: cron job gd exports error after update (#378)
JBR90 d2177d5
fix: add linting command to db package (#392)
stefl fb0258e
fix: high and medium severity bugs on sonar cloud - AI-637 (#379)
JBR90 202a21f
fix: address sonar major issues (#393)
stefl 9700214
fix: icons in dialogs (#398)
tomwisecodes f6262f2
fix: help page cloudflare email (#399)
codeincontext daa7efe
fix: sonar maintain linting #3 (#403)
stefl 391b67c
fix: help page cloudflare email (#399)
codeincontext ac72713
fix: revert tabindex change (#404)
stefl 7ec8444
chore: add check for cyclic dependencies (#396)
stefl 1ed9d60
fix: sonar maintain linting #2 (#395)
stefl f4d95fc
fix: sonar maintain linting #1 (#394)
stefl 7e45ac1
Merge pull request #388 from oaknational/rc-20241126-1
mikeritson-oak c373a6e
build(release v1.17.0): See CHANGE_LOG.md
semantic-release-bot 044ac16
Merge remote-tracking branch 'origin/production'
actions-user 65d1c5f
fix: intentionality of async / promise code for question generation (…
stefl dbe04fd
chore: maths rec-sys feature flag, fixes, and images in exports [AI-6…
mantagen 60ee010
fix: memoize the sidebar context provider's value (#408)
stefl eca0019
fix: sonar maintain issues #4 (#405)
stefl abda175
fix: do not define components inline (#413)
stefl 91e2291
test: stories for supplementary chat messages (#401)
codeincontext 65f4a4a
test: add stories for chat messages and parts (#407)
codeincontext 44b5961
fix: do not use array index for key / use void for onSubmit (#409)
stefl 628f9b1
chore: remove old migration scripts (#412)
stefl 5f749f4
fix: sonar minors #5 (#414)
stefl abbff85
fix: more flexible and efficient solution for images in docs (#411)
mantagen c27c76d
Merge pull request #416 from oaknational/rc-20241202-1
mikeritson-oak b5060c7
build(release v1.17.1): See CHANGE_LOG.md
semantic-release-bot 122bc4e
Merge remote-tracking branch 'origin/production'
actions-user 701ff65
chore: set sonar languages (#415)
JBR90 00767a0
feat: test coverage (#406)
JBR90 7539661
fix: moderation persist scores [AI-696] (#418)
mantagen e36841e
test: add stories for onboarding (#423)
codeincontext edce949
test: add story for chat lhs header (#420)
codeincontext d40af98
test: chat quick buttons stories (#417)
codeincontext e6a0afb
test: add chat panel stories (#421)
codeincontext 1f4aa9d
fix: upgrade typescript + prettier + eslint with a single shared lint…
stefl a0cb485
feat: report google drive storage quota (#425)
JBR90 34774b5
fix: update eslint config and lint errors (#422)
JBR90 af9645d
chore: remove stories files from code duplication calculations (#426)
stefl b7972ba
chore: add additional logging to the aila package (#430)
stefl c1c812f
chore: use LessonPlanSectionWhileStreaming type (#434)
stefl a8ada5d
fix: temporarily disable no unsafe rules (#429)
stefl f011694
test: add responsive modes to chromatic (#427)
codeincontext 1200b1f
test: mobile snapshots for page stories (#436)
codeincontext 53fc941
test: add stories for chat header (#437)
codeincontext 071d2d1
test: remove legacy chromatic mode and use desktop as default (#439)
codeincontext 56f6d23
Merge pull request #428 from oaknational/rc-20241206-1
mikeritson-oak a0d7c11
build: fix release config cjs
codeincontext 8c0fa5e
Merge pull request #442 from oaknational/rc-20241126-1
oak-machine-user 09646c7
build(release v1.18.0): See CHANGE_LOG.md
semantic-release-bot 8b4e32a
Merge remote-tracking branch 'origin/production'
actions-user c91c5fb
chore: specify types for useProgressForDownloads (#433)
stefl 35141b3
fix: remove key from chat provider (#431)
stefl 392b422
chore: add dependency cruiser (#438)
stefl 0e43509
chore: reinstate react hooks linting, fix linting issues (#441)
stefl 4955a1e
fix: improve chances of showing 5 relevant plans (#444)
mantagen 7c24485
fix: posthog consistent event properties (#440)
mantagen 35e25fc
test: storybook decorators (#443)
codeincontext 125a274
Merge pull request #453 from oaknational/rc-20241216-2
mikeritson-oak bf3c502
build(release v1.18.1): See CHANGE_LOG.md
semantic-release-bot b114694
chore: update posthog (#454)
codeincontext 61ccbb6
chore: update posthog (#454)
codeincontext dea3106
fix: sonar duplication (#397)
JBR90 9dee4ad
feat: soft delete (#383)
tomwisecodes 0e8e48a
Merge pull request #455 from oaknational/rc-20241216-3
oak-machine-user 82d4c37
build(release v1.18.2): See CHANGE_LOG.md
semantic-release-bot a842173
Merge remote-tracking branch 'origin/production'
actions-user 36a533d
test: use tighter "satisfies" typing in storybook (#456)
codeincontext 4f2211e
Merge pull request #458 from oaknational/rc-20241218-1
mikeritson-oak a0999c1
build(release v1.19.0): See CHANGE_LOG.md
semantic-release-bot 8c07138
Merge branch 'main' into fix/no_live_openai
JBR90 2f255b3
feat: react scan (#445)
JBR90 d4b3d82
fix: missing object fixture in replay
JBR90 392317f
Merge branch 'main' into fix/no_live_openai
JBR90 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ export const defaultConfig: Config = { | |
prisma: globalPrisma, | ||
createAila: async (options) => { | ||
const webActionsPlugin = createWebActionsPlugin(globalPrisma); | ||
return new Aila({ | ||
const createdAila = new Aila({ | ||
...options, | ||
plugins: [...(options.plugins || []), webActionsPlugin], | ||
prisma: options.prisma ?? globalPrisma, | ||
|
@@ -26,5 +26,7 @@ export const defaultConfig: Config = { | |
userId: undefined, | ||
}, | ||
}); | ||
await createdAila.initialise(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure that the Aila instance is initialised |
||
return createdAila; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass in the categoriser at initialisation, in the same way we do with the other features