Skip to content

Commit

Permalink
feat(demo): update demo data json
Browse files Browse the repository at this point in the history
  • Loading branch information
cfu288 committed Feb 1, 2024
1 parent a7d9130 commit 9428a42
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/assets/demo.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,6 @@ export function parseCCDAPlanOfTreatmentSection(
if (!matchingSections) {
return null;
}
console.log(matchingSections?.[0]?.innerHTML);

const section = matchingSections[0];
const titleElement = section?.getElementsByTagName('title')?.[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,4 +245,14 @@ describe('parseCCDAResultsSection', () => {
// expect(e).toBeNull();
// }
// });

// it('minify demo.json', () => {
// const jsonFile = fs.readFileSync('demo.json').toString();
// // write back
// try {
// fs.writeFileSync('demo.new.json', JSON.stringify(JSON.parse(jsonFile)));
// } catch (e) {
// expect(e).toBeNull();
// }
// });
});
2 changes: 1 addition & 1 deletion apps/web/src/pages/MereAITab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ const MessageBubble = memo(function MessageBubble({
</span>
</div>
<p
className={`block whitespace-pre-line text-sm font-normal pt-2.5 ${isAiMessage ? 'text-indigo-900' : 'text-gray-900'}`}
className={`prose block whitespace-pre-line text-sm font-normal pt-2.5 ${isAiMessage ? 'text-indigo-900' : 'text-gray-900'}`}
>
<Markdown
remarkPlugins={[remarkGfm]}
Expand Down

0 comments on commit 9428a42

Please sign in to comment.