Skip to content

Commit 3a21b57

Browse files
sra405create-issue-branch[bot]loiswells97magdalenajadachMagdalena Jadach
authored
Html css v2 (#565)
Closes #538 ~~Notes - will include v1 changes until `html-css-v1` is merged into `main`~~ --------- Co-authored-by: create-issue-branch[bot] <53036503+create-issue-branch[bot]@users.noreply.github.com> Co-authored-by: loiswells97 <[email protected]> Co-authored-by: Lois Wells <[email protected]> Co-authored-by: Lois Wells <[email protected]> Co-authored-by: magdalenajadach <[email protected]> Co-authored-by: Magdalena Jadach <[email protected]> Co-authored-by: Dan Halson <[email protected]> Co-authored-by: Max Elkins <[email protected]> Co-authored-by: danhalson <[email protected]> Co-authored-by: Pete Simonovic <[email protected]> Co-authored-by: PetarSimonovic <[email protected]> Co-authored-by: sra405 <[email protected]> Co-authored-by: Greg Annandale <[email protected]>
1 parent fb1e68e commit 3a21b57

File tree

120 files changed

+2790
-1769
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+2790
-1769
lines changed

.github/workflows/ci-cd.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@ jobs:
1919
with:
2020
node-version: 16
2121
cache: 'yarn'
22+
registry-url: 'https://npm.pkg.github.com'
23+
# Defaults to the user or organization that owns the workflow file
24+
scope: '@RaspberryPiFoundation'
2225

2326
- name: Install code
2427
run: yarn install --frozen-lock-file
28+
env:
29+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2530

2631
- name: eslint
2732
run: yarn lint
@@ -40,9 +45,14 @@ jobs:
4045
with:
4146
node-version: 16
4247
cache: 'yarn'
48+
registry-url: 'https://npm.pkg.github.com'
49+
# Defaults to the user or organization that owns the workflow file
50+
scope: '@RaspberryPiFoundation'
4351

4452
- name: Install code
4553
run: yarn install --frozen-lock-file
54+
env:
55+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4656

4757
- name: Run tests
4858
run: yarn run test --coverage --maxWorkers=4 --reporters=default --reporters=jest-junit --reporters=jest-github-actions-reporter
@@ -65,9 +75,14 @@ jobs:
6575
with:
6676
node-version: 16
6777
cache: 'yarn'
78+
registry-url: 'https://npm.pkg.github.com'
79+
# Defaults to the user or organization that owns the workflow file
80+
scope: '@RaspberryPiFoundation'
6881

6982
- name: Install code
7083
run: yarn install --frozen-lock-file
84+
env:
85+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7186

7287
- name: Cypress run
7388
uses: cypress-io/github-action@v5

.github/workflows/deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,14 @@ jobs:
112112
with:
113113
node-version: 16
114114
cache: 'yarn'
115+
registry-url: 'https://npm.pkg.github.com'
116+
# Defaults to the user or organization that owns the workflow file
117+
scope: '@RaspberryPiFoundation'
115118

116119
- name: Install code
117120
run: yarn install --frozen-lock-file
121+
env:
122+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
118123

119124
- name: Build site and WC bundle
120125
run: |

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
registry=https://registry.yarnpkg.com/
2+
3+
@RaspberryPiFoundation:registry=https://npm.pkg.github.com
4+
always-auth=true

CHANGELOG.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,20 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
88

99
### Added
1010

11+
- Sidebar settings (#585)
12+
- Sidebar info (#566)
13+
- Add Projects Panel to sidebar (#564)
14+
1115
### Fixed
1216

17+
- Minor fixes to the sidebar layout (#602)
18+
- Fixed text wrap in the files section of the Sidebar (#596)
19+
1320
### Changed
1421

22+
- LandingPage and ProjectBar's Save buttons use design-system-react (#579)
23+
- Update colors for buttons (#579)
24+
1525
## [0.17.1] - 2023-07-25
1626

1727
### Fixed
@@ -28,17 +38,30 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
2838
- `hex` attribute for `p5` `Color` class (#574)
2939
- `hex_color` function for `py5`, including imported mode (#574)
3040

41+
### Changed
42+
43+
- Refactored `Header` into new `ProjectBar` component and moved to same level as sidebar (#532)
44+
- `Sidebar` restyling and refactor to better support multiple panels (#501)
45+
- Refactored and restyled project files panel and removed project images (#501)
46+
- Moved project images into own sidebar panel (#567)
47+
- Fix to close `Add File` modal when `Enter` is pressed and file is valid (#509)
48+
- Move eslint config to `.eslintrc.json` with prettier support (#502)
49+
- Add `.editorconfig` (#502)
50+
- Default HTML project improvement (#543)
51+
- Update Beta Banner copy and add a link (#550)
52+
3153
### Fixed
3254

3355
- HTML/CSS minor fixes (#594)
3456
- Color class attributes in `p5` (#574)
3557
- Make `py5` imported mode sketches run when `run_sketch` is commented out (#574)
3658
- Allow output text to be scrollable if overflow-y (#575)
37-
- Landing page design review comments (#560)
3859
- No longer renders a blank page on 401, 403 & 404 for embedded viewer (#534)
3960
- Input modal help text styling in light mode (#519)
4061
- Propagation of key press events in modals (#519)
62+
- Keyboard accessibility of project file opening (#501)
4163
- Quick fix for Editor header on mobile # (#551)
64+
- Landing page design review comments (#560)
4265

4366
### Changed
4467

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM node:16.13.1
22

3-
RUN apt-get update && apt-get install -y sudo curl wget vim git zsh docker.io
3+
RUN apt-get update && apt-get install -y sudo curl wget vim git less zsh nodejs docker.io
44

55
RUN sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
66

README.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ cp .env.webcomponent.example .env.webcomponent
1616
Variables for the web application need to go into the `.env` file.
1717
Variables for the web component can be placed in `.env.webcomponent`.
1818

19-
2019
## Available Scripts
2120

2221
In the project directory, you can run:
@@ -44,7 +43,6 @@ Your app is ready to be deployed!
4443

4544
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
4645

47-
4846
## Testing
4947

5048
Automated unit tests can be run via the `yarn test` command. These unit tests are written using the JavaScript testing framework `Jest` and make use of the tools provided by the [React Testing Library](https://testing-library.com/docs/). Automated accessibility testing for components is available via the `jest-axe` library. This can be achieved using the `haveNoViolations` matcher provided by `jest-axe`, although this does not guarantee that the tested components have no accessibility issues.
@@ -57,35 +55,35 @@ The repo includes the Editor Web Component which shares components with the edit
5755

5856
### Embedding
5957

60-
The web component can be included in a page by using the `<editor-wc>` HTML element. It takes the following attributes
58+
The web component can be included in a page by using the `<editor-wc>` HTML element. It takes the following attributes
6159

62-
* `code`: A preset blob of code to show in the editor pane.
63-
* `sense_hat_always_enabled`: Show the Astro Pi Sense HAT emulator on page load
60+
- `code`: A preset blob of code to show in the editor pane.
61+
- `sense_hat_always_enabled`: Show the Astro Pi Sense HAT emulator on page load
6462

6563
### `yarn start:wc`
6664

67-
Runs the web component in development mode. Open [http://localhost:3001](http://localhost:3001) to view it in the browser.
65+
Runs the web component in development mode. Open [http://localhost:3001](http://localhost:3001) to view it in the browser.
6866

6967
**NB** You need to have the main `yarn start` process running too.
7068

71-
It is possible to add query strings to control how the web component is configured. Any HTML attribute can be set on the query string, including `class`, `style` etc.
69+
It is possible to add query strings to control how the web component is configured. Any HTML attribute can be set on the query string, including `class`, `style` etc.
7270

7371
For example, to load the page with the Sense Hat always showing, add [`?sense_hat_always_enabled` to the URL](http://localhost:3001?sense_hat_always_enabled)
7472

7573
## Deployment
7674

77-
Deployment is managed through Github actions. The UI is deployed to staging and production environments via an S3 bucket. This requires the following environment variables to be set
75+
Deployment is managed through Github actions. The UI is deployed to staging and production environments via an S3 bucket. This requires the following environment variables to be set
7876

79-
* `AWS_ACCESS_KEY_ID`
80-
* `AWS_REGION`
81-
* `AWS_S3_BUCKET`
82-
* `AWS_SECRET_ACCESS_KEY`
77+
- `AWS_ACCESS_KEY_ID`
78+
- `AWS_REGION`
79+
- `AWS_S3_BUCKET`
80+
- `AWS_SECRET_ACCESS_KEY`
8381

84-
Other variables that pertain to the app, rather than its deployment are set with defaults in the [build-and-deploy workflow](./.github/workflows/build-and-deploy.yml). These are also in `.env.example`.
82+
Other variables that pertain to the app, rather than its deployment are set with defaults in the [build-and-deploy workflow](./.github/workflows/build-and-deploy.yml). These are also in `.env.example`.
8583

8684
### Review apps
8785

88-
Currently the build is deployed to both S3 and Heroku. The PR should get updated with the Heroku URL, and the web component demo is at `/web-component.html` on the Heroku review app domain.
86+
Currently the build is deployed to both S3 and Heroku. The PR should get updated with the Heroku URL, and the web component demo is at `/web-component.html` on the Heroku review app domain.
8987

9088
### Release Process
9189

0 commit comments

Comments
 (0)