Skip to content

Commit

Permalink
Add 0.57 release notes
Browse files Browse the repository at this point in the history
adeira-source-id: 1cc8313af1c8f58257d12a4758c493ad67dbc77a
  • Loading branch information
itsdouges authored and triplex-bot committed Oct 26, 2023
1 parent 7a8c673 commit 27aa40c
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 17 deletions.
9 changes: 5 additions & 4 deletions apps/docs/pages/blog/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"pagination": false
}
},
"threejs-halloween-challenge": "Triplex joins the Three.js Halloween Challenge",
"v0.58.0-provider-component-ui": "Triplex 0.58: Provider Component UI",
"v0.57.0-edit-children-elements": "Triplex 0.57: Edit Children Elements",
"v0.56.0-live-editing-props": "Triplex 0.56: Live Editing Props"
"v0.59.0-backend-stability": "",
"threejs-halloween-challenge": "",
"v0.58.0-provider-component-ui": "",
"v0.57.0-edit-children-elements": "",
"v0.56.0-live-editing-props": ""
}
18 changes: 11 additions & 7 deletions apps/docs/pages/blog/v0.56.0-live-editing-props.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,24 @@ description:
▵ Triplex 0.56.0 introduces developer experience improvements and fixes some
bugs.

## Live edit props
## New features

### Live edit props

Edit props given to the component you have open to test it in out over different
states. Changed props only last during your session however — so when you close
Triplex they're gone!

<Video src="https://github.com/try-triplex/triplex/assets/6801309/9862ae43-e4d6-4a6a-94f9-bf7db845469e" />

## Number input improvements
### Number input improvements

The number input has been improved with slider and increment/decrement behavior.
Use keyboard modifiers (shift/ctrl) to control how fine grained it should be!

<Video src="https://github.com/try-triplex/triplex/assets/6801309/0add7c1f-c973-4f1c-a44b-11fdd539a462" />

## Set constraints with prop description tags
### Set constraints with prop description tags

Declare JSDoc tags in your prop descriptions and Triplex will use them where
supported.
Expand All @@ -45,30 +47,32 @@ interface CameraEntityProps {

<Video src="https://github.com/try-triplex/triplex/assets/6801309/c956f81d-c978-489a-af4d-a32ed420aa82" />

## Adding GLTF assets to your scene
### Adding GLTF assets to your scene

GLTF is a common asset exported from 3D software like Blender. Now you can add
them to your components straight through Triplex without needing to write out
the code for it.

<Video src="https://github.com/try-triplex/triplex/assets/6801309/8727a6e3-ceed-45ee-8795-cfdaf4f42707" />

## Set host element names
### Set host element names

Host elements such as mesh can now be labelled using the name prop. When set
they are used as the name shown in the scene panel.

<Video src="https://github.com/try-triplex/triplex/assets/6801309/f11d4b06-78d2-44e3-bde4-9f0b0bd6afb0" />

## Union type input fixes
## Bug fixes

### Union type input fixes

Previously props that were a union type, such as one that takes a number and a
string, would lose the ability switch between them in the context panel when the
prop was set with a value. This is now fixed.

<Video src="https://github.com/try-triplex/triplex/assets/6801309/40444868-3af6-434b-ab85-bff6d6e95966" />

## Other bug fixes
### Other

- All `undefined` values are now preserved when saving props instead of being
set to `null`.
Expand Down
10 changes: 6 additions & 4 deletions apps/docs/pages/blog/v0.57.0-edit-children-elements.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,25 @@ description:

▵ Triplex 0.57.0 brings much needed quality of life improvements.

## Edit any child element in the scene panel
## New features

### Edit any child element in the scene panel

Previously only elements that were declared in the open component could be
edited, now any child element in the component tree can be edited and saved back
to source code.

![Edit children through the Triplex scene panel](/releases/57/1.png)

## Filter components, elements, and props
### Filter components, elements, and props

Scrolling through large lists of components, elements, and props has been
cumbersome for everyone. Now you can filter through them and find exactly what
you're looking for.

![Filter props through the Triplex context panel](/releases/57/2.png)

## Declare a global React provider
### Declare a global React provider

For those who are heavy users of
[React Context](https://react.dev/reference/react/createContext#provider) you
Expand All @@ -49,7 +51,7 @@ export default function Provider({ children }) {
}
```

## Contextually add elements to a component
### Contextually add elements to a component

Adding an element to a component was confusing, depending if you had an element
selected or not you'd end up with unexpected behavior. Now it's contextual, the
Expand Down
6 changes: 4 additions & 2 deletions apps/docs/pages/blog/v0.58.0-provider-component-ui.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ scene command works, and fixes some bugs.

Thank you to Matt Black for sponsoring Triplex!

## Provider component props
## New features

### Provider component props

Props declared on your provider component now appear as editable in the Triplex
UI, using the same powerful system used to edit components.
Expand Down Expand Up @@ -44,7 +46,7 @@ Here's some ideas where you could start using this feature:
- Physics/post processing/XR helpers
- Entity Component System helpers to start and stop systems

## Refresh scene command
### Refresh scene command

Previously using the refresh scene command (CMD+R) would perform a hard refresh
of the scene. Now this command has been renamed to reload scene (CMD+SHIFT+R)
Expand Down
39 changes: 39 additions & 0 deletions apps/docs/pages/blog/v0.59.0-backend-stability.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
title: "Triplex 0.59: Backend Stability Improvements"
ogTitle: Triplex 0.59.0
date: 2023-10-27
description: This release significantly improves
---

▵ Triplex 0.59.0 completes a large refactor of the backend to improve scene
stability, fixing bugs, enabling new features, and setting us up for success
into the future.

## New features

- Exit selection command can now be triggered using the `Shift+CmdOrControl+F`
hotkey
- Transform actions (translate/rotate/scale) are now available in the selection
menu
- Triplex now warns you when the file you have open is outside where your
project has defined files should be
[[#135](https://github.com/try-triplex/triplex/issues/135)]

## Bug fixes

- Union literal labels are now shown in the select input when possible
[[#87](https://github.com/try-triplex/triplex/issues/87)]
- Saving no longer accidentally triggers the scale transform mode
[[#145](https://github.com/try-triplex/triplex/issues/145)]
- Changes to your scene are no longer visually lost when entering / exiting /
reloading components [[#3](https://github.com/try-triplex/triplex/issues/3),
[#53](https://github.com/try-triplex/triplex/issues/53)]
- Adding a new element then saving no longer results in the component briefly
being unmounted [[#48](https://github.com/try-triplex/triplex/issues/48)]

## Chores

- When loading a project if it fails to load an error screen is now shown
instead of nothing
- A loading screen is now shown when opening Triplex
[[#31](https://github.com/try-triplex/triplex/issues/31)]

0 comments on commit 27aa40c

Please sign in to comment.