Skip to content

Commit e2802d3

Browse files
author
BF6 Portal Developer
committed
Fix Collections UX + Portal export (still 1.3.0)
1 parent 6590b54 commit e2802d3

19 files changed

+1052
-36
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ This project follows a pragmatic changelog style (human-written notes) rather th
1616
- **UI clutter removed:** removed the unused Live Diagnostics overlay and the floating Code Preview button (Code Preview is now a normal header button).
1717
- **Collections UX:** COLLECTIONS toolbox category now dynamically lists existing collections and includes a “Convert selection to collection” action.
1818
- **Collections visuals:** collection call/definition blocks are taller (easier to spot in large workspaces).
19+
- **Collections help:** right-click Help now includes local documentation for Collections blocks.
20+
- **Collections navigation polish:** jump-to-definition is centered and context-menu labels include the collection name.
1921
- **Variables toolbox:** restored a working VARIABLES category (manage/create button + existing variables listed as pre-filled GET/SET blocks).
2022
- **Selection Lists:** regenerated `selection-lists.md` so `widget 1` uses the base enum name (no `Item` suffix).
2123
- **Selection Lists dropdowns:** runtime lookups are now case-insensitive and support alias mapping for mismatched enum names.
@@ -34,6 +36,10 @@ This project follows a pragmatic changelog style (human-written notes) rather th
3436
- **Presets/imports:** ensure critical Portal structural types (like `modBlock` with a `RULES` statement) are defined before loading templates.
3537
- **Version label:** app version now resolves in both dev and packaged `app.asar` layouts.
3638

39+
- **Portal export compatibility:** preserve required `extraState` metadata on structural blocks and subroutines so exports import cleanly in the official Portal editor.
40+
- **Portal export correctness:** expanded collection stacks now reassign block IDs to avoid duplicate IDs.
41+
- **Collections call-name rendering:** call blocks and flyout entries now reliably display the chosen collection name.
42+
3743
### Credits (v1.3.0)
3844

3945
- Add explicit credit for the **Portal Docs** dataset used to populate block help/tooltips:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Changelog: see `CHANGELOG.md`.
2222
- save your own presets, overwrite safely, delete user presets
2323
- **Import / Export:**
2424
- load `.json` (Blockly workspace JSON) and legacy `.xml`
25-
- export Portal JSON (best-effort compatibility wrapper)
25+
- export Portal JSON (best-effort compatibility; imports into the official Portal editor for supported templates)
2626
- TypeScript snapshot export + TypeScript import (round-trip the workspace state)
2727
- **Variables:** a dedicated VARIABLES toolbox category with:
2828
- “New / Manage Variables”

docs/RELEASE_NOTES_1.2.8.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Screenshot
44

5-
<img src="screenshots/editor.png" alt="BF6Portal Tool editor screenshot" width="1100" />
5+
<img src="screenshots/UI-overview.png" alt="BF6Portal Tool editor screenshot" width="1100" />
66

77
## Features & Improvements
88
- **Refined Toolbox Structure:** The Blockly toolbox has been reorganized to better match the official Battlefield Portal Rules Editor layout.

docs/RELEASE_NOTES_1.2.9.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Screenshot
44

5-
<img src="screenshots/editor.png" alt="BF6Portal Tool editor screenshot" width="1100" />
5+
<img src="screenshots/UI-overview.png" alt="BF6Portal Tool editor screenshot" width="1100" />
66

77
## Highlights
88

docs/RELEASE_NOTES_1.3.0.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- **Cleaner workspace controls:** zoom in/out/reset/fit + trash moved to the top-right header (no on-canvas zoom/trash UI).
88
- **Preset workflow stability:** built-in presets remain locked, but you can save copies and overwrite your own presets safely.
99
- **Import resilience:** community/Portal JSON imports now auto-register placeholder blocks for missing types so templates still load instead of failing hard.
10+
- **Portal export compatibility:** exported templates now round-trip more reliably into the official Battlefield Portal editor (preserves critical metadata like `extraState`).
1011

1112
## Changes
1213

@@ -24,6 +25,9 @@
2425
- Collection call/definition blocks are taller and more visible.
2526
- Toolbox flyout lists existing collections and can create one from the current selection.
2627
- Context menus support convert, jump, and rename flows.
28+
- **Collection names now render reliably** in the flyout and on spawned call blocks (no more “COLLECT” with a blank name).
29+
- **Jump-to-definition is centered** (accounts for the fixed header) and the menu label is now contextual (e.g. “Jump to Coll 3”).
30+
- **Right-click Help** now shows local documentation for Collections blocks.
2731

2832
### Variables
2933

@@ -44,6 +48,8 @@
4448
- Placeholder block auto-registration prevents missing block types from breaking loads.
4549
- Ensured critical Portal structural blocks (like `modBlock` with `RULES`) exist before loading templates.
4650
- Built-in presets load reliably in packaged Electron builds under `file://` by falling back to disk reads when `fetch()` is unavailable.
51+
- **Portal JSON round-trip:** preserve Portal-required `extraState` on structural blocks and subroutines so exports import cleanly in the official editor.
52+
- **Export correctness:** expanding collections during export now reassigns block IDs to avoid duplicate IDs.
4753
- **Performance polish:** reduced redundant toolbox refresh work after programmatic loads.
4854
- **Console noise reduction:** noisy informational logs during preset loads are now gated behind an opt-in debug flag (`localStorage.bf6_debug = "1"`).
4955

docs/screenshots/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
Drop screenshots for the README/release notes in this folder.
44

55
Recommended names:
6-
- `editor.png` — main editor UI (shows presets dropdown + blocks loaded)
7-
- `selection-lists.png` — selection list dropdown open
6+
- `UI-overview.png` — main editor UI overview (used by the main README)
7+
- `preset-system.png` — presets dropdown system
8+
- `variables.png` — variables toolbox category
9+
- `resizeable-codewindow.png` — code preview drawer
10+
- `colapsable-blocks.png` — collapsing blocks
811

9-
Note: The repository currently includes a tiny placeholder `editor.png` so documentation renders cleanly.
10-
Replace it with a real screenshot whenever you're ready.
12+
Tip: Keep filenames stable so older release notes and README links keep working.
8.09 KB
Loading

docs/screenshots/editor.png

-7.79 KB
Binary file not shown.

docs/screenshots/preset-system.png

16.1 KB
Loading
22.2 KB
Loading

0 commit comments

Comments
 (0)