Skip to content

Propositional Logic Response Area#7

Open
ashwin6-dev wants to merge 15 commits intolambda-feedback:mainfrom
ashwin6-dev:main
Open

Propositional Logic Response Area#7
ashwin6-dev wants to merge 15 commits intolambda-feedback:mainfrom
ashwin6-dev:main

Conversation

@ashwin6-dev
Copy link

@ashwin6-dev ashwin6-dev commented Mar 2, 2026

Check README.md within the PropositionalLogic folder for a short description of what this response area contains.

Key External Changes

Some changes were made outside the PropositionalLogic folder.

src/externals/styles/fonts.tsx - was externals/styles/fonts.tsx (1:37): "Roboto" is not exported by "node_modules/next/font/google/index.js" error with the original file. Current file injects Google Fonts CSS at runtime.

src/sandbox-component.tsx - added a query client provider wrapper. Had a Error: No QueryClient set, use QueryClientProvider to set one in the brower console otherwise. I think this is due to the fact this response area uses OmniInput.

OmniInput Preview Issue To Look At

Currently, preview doesn't show anything. I changed the backend to return a fixed dummy value for now, but still the preview doesn't show anything, which makes me believe there is an issue in the frontend.

When hand drawing the input, there is a console error saying Input processing error (draw): TypeError: fetchData(...) is not a function. Typing the input doesn't have this error, but still the preview is empty.

In externals/api/fetcher.ts, fetchData returns null, which I think is the issue, but I do not know how I should go from there.

Other response areas that use OmniInput display previews fine in the sandbox.

@m-messer m-messer requested review from estifraca and m-messer March 2, 2026 14:28
Copy link
Member

@m-messer m-messer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your work on this! I've add a few minor comments, and there is a little git cleanup that would be helpful to sort.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be commited as a change?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this file be commited?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this workaround necessary? This would be good to feedback.


const stored = raw as Partial<PersistedAnswer>

// let parsedTruthTable: PropositionalLogicAnswerSchema['truthTable'] = undefined
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to remove commented out code

return validated.data
}
} catch {
// corrupted JSON -> ignore
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great comment!

export const PROPOSITIONAL_LOGIC_SYMBOLS: PropositionalLogicSymbol[] = [
{ label: '¬', value: '¬', title: 'Not' },
{ label: '∧', value: '∧', title: 'And' },
{ label: '∨', value: '∨', title: 'Or' },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about XOR?

{ value: '⊥', label: '⊥ (false)' },
]

const SYMBOLS = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already defined in the Symbols file? Remove and import?

import { SandboxResponseAreaTub } from './types/Sandbox/index'

// Create a QueryClient instance
const queryClient = new QueryClient({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the query client used for?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not be commited. Should use yarn instead of NPM to setup

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, this should be using yarn instead of NPM

HongleiGu added a commit to HongleiGu/FSA-response-area-sandbox that referenced this pull request Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants