Skip to content
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

Non cog diagnosis 2024 s #9

Open
wants to merge 79 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
12442c5
new page
gragragrace Oct 24, 2023
e01ca7c
add hypo
gragragrace Oct 24, 2023
5f9f8e4
context space
gragragrace Oct 24, 2023
db6d9af
RC list
gragragrace Oct 24, 2023
520885e
fixed hypo list
gragragrace Oct 24, 2023
a1ae121
updated context-space
gragragrace Oct 24, 2023
8b7a6fa
create and read
gragragrace Oct 24, 2023
ea855ad
Create orchestration-scripting-interfaces.code-workspace
gragragrace Oct 26, 2023
ddad9cc
minor edits
gragragrace Oct 26, 2023
9204169
minor
gragragrace Oct 26, 2023
096cadf
ostest context
gragragrace Oct 29, 2023
b89b72c
need fix edge case
gragragrace Oct 29, 2023
eecdce2
fixed DTR edge case
gragragrace Oct 29, 2023
646984e
fixed json PRC
gragragrace Oct 29, 2023
dc81c44
my-stuff
NoodleSoup0 Oct 29, 2023
3c18123
add PRC
NoodleSoup0 Oct 29, 2023
4033bdd
add PRC URL
NoodleSoup0 Oct 29, 2023
c18d2ee
fixes
gragragrace Oct 29, 2023
deb95ca
Merge branch 'diagnosis-interface' of https://github.com/NUDelta/orch…
gragragrace Oct 29, 2023
77ec30a
minor naming fix
gragragrace Oct 29, 2023
4c89990
Get project object from OS, populate context space, and update response
gragragrace Nov 5, 2023
565616b
update context, context_lib
gragragrace Nov 5, 2023
0ca3a9f
summary of stories and task
gragragrace Nov 5, 2023
4582c35
save response setup
gragragrace Nov 5, 2023
a522357
update hypothesis list
gragragrace Nov 5, 2023
c713e66
update description
gragragrace Nov 5, 2023
99d5853
delete hypo
gragragrace Nov 5, 2023
d44242d
retrieve slide obj
NoodleSoup0 Nov 6, 2023
086352a
object done, need to see how to add more than one slide for user_stud…
NoodleSoup0 Nov 6, 2023
384bf9d
object done, need to see how to add more than one slide for user_stud…
NoodleSoup0 Nov 6, 2023
1917b55
object done, need to see how to add more than one slide for user_stud…
NoodleSoup0 Nov 6, 2023
c090825
object done, need to see how to add more than one slide for user_stud…
NoodleSoup0 Nov 6, 2023
67de856
fetchactiveissue and createresponse
gragragrace Nov 7, 2023
47ba731
minor fixed for index.tsx
gragragrace Nov 7, 2023
fef2774
comments for linh
gragragrace Nov 8, 2023
9c2d7b5
stuff
NoodleSoup0 Nov 8, 2023
43de298
merge
NoodleSoup0 Nov 8, 2023
976bba3
added PRC-link and DTR Breakdown
NoodleSoup0 Nov 8, 2023
1128d9f
Remove Button
NoodleSoup0 Nov 8, 2023
59509b5
needs formatting for stories and tasks
NoodleSoup0 Nov 8, 2023
3693260
fixed fetch os object error
gragragrace Nov 8, 2023
4bb1b0e
user study
gragragrace Nov 8, 2023
200932c
delete diag.tsx
gragragrace Nov 9, 2023
94f091c
canvas space
gragragrace Nov 12, 2023
5ee54c4
add rc
NoodleSoup0 Nov 12, 2023
248e1d3
Merge branch 'diagnosis-interface' of https://github.com/NUDelta/orch…
NoodleSoup0 Nov 12, 2023
d1f8d1c
minor fix
gragragrace Nov 12, 2023
c76a982
merge
NoodleSoup0 Nov 13, 2023
4936bfb
Merge branch 'diagnosis-interface' of https://github.com/NUDelta/orch…
NoodleSoup0 Nov 13, 2023
682264a
1
gragragrace Nov 13, 2023
d9a8b65
Merge branch 'diagnosis-interface' of https://github.com/NUDelta/orch…
gragragrace Nov 13, 2023
92ae1ff
working merge
gragragrace Nov 13, 2023
928129c
update RC Lib
gragragrace Nov 13, 2023
859b748
P5 setup
gragragrace Nov 13, 2023
2c97623
user study withJonah edits
gragragrace Nov 14, 2023
691fc16
deployment fix
gragragrace Nov 15, 2023
e68c1d7
deployment fix
gragragrace Nov 15, 2023
221c20f
minor fixes
gragragrace Nov 15, 2023
61cc5cb
p5js elements' features
NoodleSoup0 Nov 28, 2023
b5a8fa7
individual points spent & committed
NoodleSoup0 Nov 28, 2023
9ab64cf
usability fixes
gragragrace Nov 28, 2023
d1771f4
updates
gragragrace Nov 29, 2023
ea4f14a
new page view
gragragrace Feb 14, 2024
e1a0a27
added components + clean up files
gragragrace Feb 14, 2024
f19ad50
strategy button + update save functions for initial hunch and game plan
gragragrace Feb 14, 2024
e27eb5b
deployment fix
gragragrace Feb 14, 2024
cdc05c6
package fixes
gragragrace Feb 14, 2024
a72e501
specifying engine for digital ocean; updating packages
kapil1garg Feb 14, 2024
ee74b64
trying again with node engine
kapil1garg Feb 14, 2024
b004ce7
fml its ENGINES not ENGINE
kapil1garg Feb 14, 2024
00cff8b
add context for useability test
NoodleSoup0 Feb 15, 2024
d8d7d93
context space prompt
gragragrace Feb 19, 2024
3303e2a
Revert "context space prompt"
gragragrace Feb 25, 2024
2a508d6
Revert "add context for useability test"
gragragrace Feb 25, 2024
298bc84
weird bug about node version
gragragrace Feb 25, 2024
9a95cb8
deployment fix
gragragrace Feb 26, 2024
405a032
deployment fixes
gragragrace Mar 12, 2024
ebc6847
SRS gap interface structure
gragragrace Apr 24, 2024
3905e21
new SRS model
gragragrace Apr 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
delete hypo
  • Loading branch information
gragragrace committed Nov 5, 2023
commit 99d5853198da4796fb878303f73af0609cf2db9c
25 changes: 16 additions & 9 deletions components/Hypothesis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,30 @@ import styles from './Hypothesis.module.css';
interface HypothesisProps {
hypoData: { title: string; content: string };
setHypoContent: (content: string) => void;
onDelete: () => void;
}

const Hypothesis: React.FC<HypothesisProps> = ({ hypoData, setHypoContent }) => {
const Hypothesis: React.FC<HypothesisProps> = ({ hypoData, setHypoContent, onDelete}) => {

const handleHypoChange = (event: React.ChangeEvent<HTMLTextAreaElement>) => {
setHypoContent(event.target.value);
};

return (
<div className={styles.hypo_container}>
<h2 className="text-lg font-semibold mb-2">{hypoData.title}</h2>
<textarea
className={styles.hypo_textbox}
value={hypoData.content}
onChange={handleHypoChange}
/>
</div>
<div className={styles.hypo_container} style={{ position: 'relative' }}>
<h2 className="text-lg font-semibold mb-2">{hypoData.title}</h2>
<button
onClick={onDelete}
className="absolute top-4 right-4 text-black bg-transparent border-none cursor-pointer"
>
</button>
<textarea
className={styles.hypo_textbox}
value={hypoData.content}
onChange={handleHypoChange}
/>
</div>
);
};

Expand Down
32 changes: 20 additions & 12 deletions components/HypothesisList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ import React, { useState } from 'react';
import Hypothesis from './Hypothesis';

const HypothesisList: React.FC = ({items, hypos, setHypos}) => {
// const [hypotheses, setHypotheses] = useState([
// { title: 'First Hunch', content: 'fill in your first hunch here!' },
// ]);

const addHypothesis = () => {
const newHypothesis = { title: 'Updated hypothesis', content: 'fill in your updated hypothesis' };
setHypos([newHypothesis, ...hypos]);
Expand All @@ -17,6 +13,12 @@ const HypothesisList: React.FC = ({items, hypos, setHypos}) => {
setHypos(newHypotheses);
};

const deleteHypothesis = (index: number) => {
const newHypos = [...hypos];
newHypos.splice(index, 1); // Remove the hypothesis at the specified index
setHypos(newHypos);
};

const [popupVisible, setPopupVisible] = useState(false);
const togglePopup = () => {
setPopupVisible(!popupVisible);
Expand All @@ -28,16 +30,22 @@ const HypothesisList: React.FC = ({items, hypos, setHypos}) => {

return (
<div className="p-2">
<button onClick={addHypothesis} className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full float-right">
<button
onClick={addHypothesis}
className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full absolute right-4"
>
Add New Hypothesis
</button>
{hypos.map((hypoData, index) => (
<Hypothesis
key={index}
hypoData={hypoData}
setHypoContent={(content) => updateHypothesis(index, content)}
/>
))}
<div className="mt-12">
{hypos.map((hypoData, index) => (
<Hypothesis
key={index}
hypoData={hypoData}
setHypoContent={(content) => updateHypothesis(index, content)}
onDelete={() => deleteHypothesis(index)}
/>
))}
</div>
<button
className={`fixed left-4 bottom-4 p-2 bg-blue-500 text-white rounded cursor-pointer ${
popupVisible ? 'hidden' : ''
Expand Down
2 changes: 1 addition & 1 deletion pages/response.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const Home: NextPage = ({sigName, projName, description, gen_context, detector,
return (
<div className={styles.container}>
<div className={styles.column1}>
<button onClick={updateResponse}>Save Page</button>
{/* <button onClick={updateResponse}>Save Page</button> */}
<Sidebar
content={problemContent}
setContent={setProblemContent}
Expand Down