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

Instructions tabs #1167

Open
wants to merge 14 commits into
base: feat/editable-instructions
Choose a base branch
from
Open

Instructions tabs #1167

wants to merge 14 commits into from

Conversation

conorriches
Copy link
Member

@conorriches conorriches commented Jan 16, 2025

image

@conorriches conorriches changed the base branch from main to feat/editable-instructions January 16, 2025 14:35
loiswells97 and others added 3 commits January 16, 2025 16:38
## What's Changed?

- Includes instructions in the project download if there are any
- Adds a list of reserved file names which includes `INSTRUCTIONS.md` to
prevent clashes

Closes
RaspberryPiFoundation/digital-editor-issues#374
@conorriches conorriches changed the title 368/tabs Instructions tabs Jan 16, 2025
conorriches and others added 6 commits January 16, 2025 17:55
## What's Changed?

- Includes instructions in the project download if there are any
- Adds a list of reserved file names which includes `INSTRUCTIONS.md` to
prevent clashes

Closes
RaspberryPiFoundation/digital-editor-issues#374
## What's Changed?

- Includes instructions in the project download if there are any
- Adds a list of reserved file names which includes `INSTRUCTIONS.md` to
prevent clashes

Closes
RaspberryPiFoundation/digital-editor-issues#374
@conorriches conorriches temporarily deployed to previews/1167/merge January 16, 2025 18:00 — with GitHub Actions Inactive
@conorriches conorriches temporarily deployed to previews/1167/merge January 16, 2025 18:02 — with GitHub Actions Inactive
@conorriches conorriches marked this pull request as ready for review January 16, 2025 18:07
@conorriches conorriches temporarily deployed to previews/1167/merge January 16, 2025 18:09 — with GitHub Actions Inactive
@conorriches conorriches temporarily deployed to previews/1167/merge January 16, 2025 18:10 — with GitHub Actions Inactive
@conorriches conorriches self-assigned this Jan 20, 2025
Comment on lines +137 to +161
<Tabs
onSelect={(index) => {
setInstructionsTab(index);
}}
>
<TabList>
<Tab>{t("instructionsPanel.edit")}</Tab>
<Tab>{t("instructionsPanel.view")}</Tab>
</TabList>
<TabPanel>
<textarea
data-testid="instructionTextarea"
value={project.instructions}
onChange={onChange}
></textarea>
</TabPanel>
<TabPanel>
<>
<div
className="project-instructions"
ref={stepContent}
></div>
</>
</TabPanel>
</Tabs>
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think it's worth having a couple of tests for these changes?

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.

2 participants