Skip to content

Commit

Permalink
improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Apr 14, 2024
1 parent f8a864e commit 9af33e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Binary file added website/public/blog/0.2/ime.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 10 additions & 6 deletions website/src/content/blog/0.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Hey! I am [Marc](https://github.com/marc2332/), I just released the v0.2 of Frey

## 🧬 Dioxus 0.5

Dioxus, the UI library in which Freya is built on, has recently released a new version `0.5`, adding a bunch of new features. If I had to describe their new release with one word, it would be **Simplicity**.
Dioxus, the UI library in which Freya is built on, has recently [released](https://dioxuslabs.com/blog/release-050) a new version `0.5`, adding a bunch of new features. If I had to describe their new release with one word, it would be **Simplicity**.

Here are the main changes of their release:
- Removal of `Scope` parameter in all Components
Expand Down Expand Up @@ -647,7 +647,6 @@ Freya now comes with a Plugin API to bring extra features to apps, it consists o
**Note**: The API could change in the future, it is still kind of an experiment to see where things could go.

```rs

struct BlogPlugin;

impl FreyaPlugin for BlogPlugin {
Expand Down Expand Up @@ -699,20 +698,25 @@ Here is an old [demo](https://x.com/mkenzo_8/status/1728909010055922171) as well
## 👨‍🦯 Headless Testing runner
Freya comes with a headless testing runner to let you test certain components in a non-graphic (headless) environment.

A few improvements have been done, such as a slitly smart polling of the VirtualDOM as well added some new utils:
A few improvements have been done, such as a slighly smarter polling of the VirtualDOM as well added some new utils:

- `is_visible`: Assert whether a specific Node is visible in the screen or not.
- `is_visible`: Assert whether a specific Node is visible in the screen or not. This is very useful to test `ScrollViews` and similar components.
- `get_by_text` Get a specific Node searching by its containing text.

## ⌨️ Text Editing
- Fixed small bugs and made the experience just better
- Added support for **Copy**, **Cut**, **Paste**, **Redo** and **Undo** thanks to the new `use_clipboard` hook added to [Dioxus SDK](https://github.com/dioxusLabs/sdk)
- Added support for `Copy`, `Cut`, `Paste` thanks to the new `use_clipboard` hook added to [Dioxus SDK](https://github.com/dioxusLabs/sdk).
- Added support for `Redo` and `Undo` as well for the `use_editable` hook.

## 🦾 Accessibility
Partial IME support has been added, but there is still work to do regarding text editing.

Some of the built-in components have been made more accessibile as well, but not all of them. Again, there is work to do.

For instance, you can now use the Windows Emoji panel when using the `Input` component, although emojis are not fully supported for text editing:

![image](/blog/0.2/ime.png)

## 🔨 Core

### 🔭 Viewports and Layer
Expand All @@ -739,7 +743,7 @@ Shaping of text is now cached between rerenders unless they need to be redone, o

A bunch of new tests have been added, specially for Components, Hooks and for layout, this has resulted in jumping from a **52%** code coverage to [**73%**](https://app.codecov.io/github/marc2332/freya). I want to increase this number by adding more tests to cover from branches, although it's getting harder as there is a big chunk of code that is just the winit desktop renderer, which is definitely not very testing-friendly.

Dependencies have also been cut down a bit, for instance, Windows builds have went from 490 to 426, not very much but it's appreciated nonetheless.
Dependencies have also been cut down a bit, for instance, Windows builds have went from **490** to **426**, not a big difference but still appreciated nonetheless.

## 🌐 Revamped Website
The website has been updated revamped, a few people have told me that the landing doesn't work because when you click on the clickable element it doesn't update the counter, but it's not supposed to work at all, it was just a UI demo of how the app would look.
Expand Down

0 comments on commit 9af33e6

Please sign in to comment.