Skip to content

Commit 31cfb70

Browse files
committed
Merge branch 'main' of github.com:openpatch/java-memory-playground
2 parents f0a62ec + 0eb3c98 commit 31cfb70

11 files changed

Lines changed: 68 additions & 52 deletions

File tree

.changeset/bottom-bar-layout.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

.changeset/step-label-wraps.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

.changeset/toolbar-font-size.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

packages/java-memory-playground/CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,48 @@
11
# @openpatch/java-memory-playground
22

3+
## 0.2.3
4+
5+
### Patch Changes
6+
7+
- [`4c2c88a`](https://github.com/openpatch/java-memory-playground/commit/4c2c88a1cc48680c84027b343ef1766bba20284a) Thanks [@mikebarkmin](https://github.com/mikebarkmin)! - Lay the bottom bar out in rows, and make "Your turn" a heading.
8+
9+
Everything was one wrapping row, so on an exercise step the prompt sat between the description and
10+
the buttons — the one place in the row where a call to action reads as a caption. The description
11+
competed with the controls for the same line, and on a narrow canvas the whole thing became a pile.
12+
13+
The bar now has three parts: the prompt as a heading across the top of the card, the step's
14+
description under it, and the controls on their own line. The collector joins the end of that
15+
controls line rather than standing in a group of its own, so a plain diagram is still the single
16+
row it was, and the result of checking an exercise stays beside the button that produced it.
17+
18+
The step bar dissolves into the bottom bar (`display: contents`) instead of being a box inside it,
19+
which is what lets the heading span the full width and the collector share the controls' line. It
20+
still stands on its own for anyone rendering the component outside the bar.
21+
22+
- [`e5e2b33`](https://github.com/openpatch/java-memory-playground/commit/e5e2b336042025104bd1b83d3cce8fe58b0b487f) Thanks [@mikebarkmin](https://github.com/mikebarkmin)! - Show a step's whole label, and the whole result of checking an exercise.
23+
24+
The label was clipped with an ellipsis at 260px. On an exercise step the label is the task, so a
25+
reader was being asked to build something the sentence no longer said — and the result of pressing
26+
Check listed the attributes that were wrong on a single unbreakable line.
27+
28+
Both now wrap. They are also the only two things in the step bar allowed to give up width when the
29+
bar is short of it: a button cannot be read at half a word, but a sentence reads fine over three
30+
lines. The measure is capped so that a long note breaks into lines rather than stretching the bar
31+
across the canvas, and a Java identifier longer than the measure breaks mid-word rather than
32+
hanging out of the bar.
33+
34+
- [`e5e2b33`](https://github.com/openpatch/java-memory-playground/commit/e5e2b336042025104bd1b83d3cce8fe58b0b487f) Thanks [@mikebarkmin](https://github.com/mikebarkmin)! - State the font size of the playground's own controls, so an embedded playground's toolbar is not
35+
resized by its host.
36+
37+
Form controls do not inherit `font-size`, so in a page of its own the buttons and inputs sat at the
38+
browser's ~13px default and the container's 24px — the size the _diagram_ is drawn at — never
39+
reached them. A host page with a normalize stylesheet (`button, input { font-size: 100% }`) makes
40+
them inherit after all, and Save, Download (PNG) and the rest then came out at 24px. In a Hyperbook
41+
the toolbar was roughly twice the width of the diagram beneath it.
42+
43+
The sizes are now written down rather than left to the browser, so they are the same wherever the
44+
playground is embedded. Nothing changes in the standalone app.
45+
346
## 0.2.2
447

548
### Patch Changes

packages/java-memory-playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@java-memory-playground/java-memory-playground",
3-
"version": "0.2.2",
3+
"version": "0.2.3",
44
"author": "Mike Barkmin",
55
"description": "React components for visualizing the Java stack and heap.",
66
"homepage": "https://github.com/openpatch/java-memory-playground#readme",

packages/web-component/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @openpatch/java-memory-playground-web-component
22

3+
## 0.3.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`4c2c88a`](https://github.com/openpatch/java-memory-playground/commit/4c2c88a1cc48680c84027b343ef1766bba20284a), [`e5e2b33`](https://github.com/openpatch/java-memory-playground/commit/e5e2b336042025104bd1b83d3cce8fe58b0b487f), [`e5e2b33`](https://github.com/openpatch/java-memory-playground/commit/e5e2b336042025104bd1b83d3cce8fe58b0b487f)]:
8+
- @java-memory-playground/java-memory-playground@0.2.3
9+
310
## 0.3.1
411

512
### Patch Changes

packages/web-component/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@java-memory-playground/web-component",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"author": "Mike Barkmin",
55
"description": "Java Memory Playground as a framework agnostic web component.",
66
"homepage": "https://github.com/openpatch/java-memory-playground#readme",

platforms/vscode/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Java Memory Playground Studio
22

3+
## 0.1.4
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`4c2c88a`](https://github.com/openpatch/java-memory-playground/commit/4c2c88a1cc48680c84027b343ef1766bba20284a), [`e5e2b33`](https://github.com/openpatch/java-memory-playground/commit/e5e2b336042025104bd1b83d3cce8fe58b0b487f), [`e5e2b33`](https://github.com/openpatch/java-memory-playground/commit/e5e2b336042025104bd1b83d3cce8fe58b0b487f)]:
8+
- @java-memory-playground/java-memory-playground@0.2.3
9+
310
## 0.1.3
411

512
### Patch Changes

platforms/vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "java-memory-playground-studio",
33
"displayName": "Java Memory Playground Studio",
44
"description": "Visual editor for .jmp files — diagrams of the Java stack and heap",
5-
"version": "0.1.3",
5+
"version": "0.1.4",
66
"publisher": "openpatch",
77
"author": "Mike Barkmin",
88
"license": "MIT",

platforms/web/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# web
22

3+
## 0.2.3
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`4c2c88a`](https://github.com/openpatch/java-memory-playground/commit/4c2c88a1cc48680c84027b343ef1766bba20284a), [`e5e2b33`](https://github.com/openpatch/java-memory-playground/commit/e5e2b336042025104bd1b83d3cce8fe58b0b487f), [`e5e2b33`](https://github.com/openpatch/java-memory-playground/commit/e5e2b336042025104bd1b83d3cce8fe58b0b487f)]:
8+
- @java-memory-playground/java-memory-playground@0.2.3
9+
310
## 0.2.2
411

512
### Patch Changes

0 commit comments

Comments
 (0)