Commit Graph

524 Commits

Author SHA1 Message Date
Samuel 6b9bdf355b
Fix config errors (#115)
First, the errors are only logged, enabled test_log so now config tests fail for log errors.

The issue was caused by conversions of number types between TomlValue and YamlValue. Serde JSON does not implicit cast
floats to integers, and we converted to float first. Changing the order of conversion fixed the issue.
2024-04-17 19:02:37 -03:00
Samuel 7f6cd20e47
Reorganize project (#111)
* Moved published crates to `/crates`.

* Add project docs.
2024-04-17 13:19:59 -03:00
Samuel 21862a0a85
Fix many typos. (#87) 2024-04-11 01:27:49 -03:00
Samuel Guerra 12ab97d909 Add issue and pull request templates. 2024-04-10 15:20:05 -03:00
Samuel Guerra 0796f3656d Set minor version of stable dependencies.
This is so we don't accidentally use a new feature that is only available after cargo update.
2024-04-09 23:52:55 -03:00
Samuel Guerra 01261b5f3d Add retries for Windows tests.
GitHub Windows runner started failing a test.
2024-04-08 20:05:31 -03:00
Samuel Guerra 3656755469 Increate test deadline.
GitHub Windows runner fails this test some times.

Don't test "zng-view-prebuilt" publish.

It will fail because it cannot download the new version.
2024-04-08 16:38:57 -03:00
Samuel Guerra 4fd0d761b6 Fix slow tests.
GitHub CI macos-latest sporadically fails these tests.
2024-04-06 12:25:07 -03:00
Samuel Guerra 922e07fe83 Add `WATCHER.shutdown_timeout`.
In case a write operation hangs on shutdown the process does not hang forever now.
2024-04-06 00:42:18 -03:00
Samuel Guerra c3a250eac2 Add test timeout. 2024-04-05 15:51:09 -03:00
Samuel Guerra 1985ea2b30 Use dev profile for prebuild in CI.
Increase test timeout.
2024-04-05 02:00:20 -03:00
Samuel Guerra a463eb444d Increase test timeout.
Add flags to version print.
Fix CI color.
Fix do fmt macro test cases.
2024-04-05 01:08:22 -03:00
Samuel Guerra 004f8f4e38 Rename "build tests" to "macro tests".
More CI parallelism.
2024-04-05 00:00:37 -03:00
Samuel Guerra 07c24987f2 Remove "expected one update" from var integration tests.
Any change to the app defaults can introduce new updates, all that really needs to be tested is if any update happened.
2024-04-04 13:45:09 -03:00
Samuel Guerra e77fcd3948 Changed version of every crate to 0.2.0. 2024-03-30 17:30:08 -03:00
Samuel Guerra 4037d7ef5c All tests pass.
Fixed examples release build.
2024-03-27 01:26:20 -03:00
Well a90972e387 Changed instances of 'zero_ui' to 'zng'. 2024-03-26 21:12:13 -03:00
Well 248048a2c8 Changed instances of 'zero-ui' to 'zng'. 2024-03-26 21:02:49 -03:00
Samuel Guerra 309e189747 New error message after Rust update. 2024-03-21 16:06:37 -03:00
Well 028586eaab More docs review: Duplicated words found with regex `\b(\w+) \1[^\w]`. 2024-03-05 19:26:44 -03:00
Samuel Guerra abf4bc0145 All tests pass. 2024-03-01 20:43:15 -03:00
Well cd8029bd72 Fmt. 2024-03-01 19:36:31 -03:00
Samuel Guerra 2acc18a2f1 Added animation var_from test. 2024-02-23 22:18:07 -03:00
Samuel Guerra 9f00c221f1 Removed `webrender_api` from `zero_ui_view_api` API. 2024-02-21 19:09:44 -03:00
Samuel Guerra 5fc94ccfc3 Moved angle units to units crate. 2024-02-17 11:40:52 -03:00
Samuel Guerra 380dc04b52 More docs review. 2024-02-12 15:46:22 -03:00
Samuel Guerra 8574c066fe More docs review. 2024-02-08 23:13:56 -03:00
Samuel Guerra faa2abfdc7 Added wrap docs. 2024-01-26 12:35:12 -03:00
Samuel Guerra 35034625ac Renamed `View!` to `DataView!` and documented it. 2024-01-25 16:59:13 -03:00
Samuel Guerra 8f380e554a Fixed tests. 2024-01-19 15:04:39 -03:00
Samuel Guerra 4808b3ecf7 Fix tests. 2024-01-17 15:35:11 -03:00
Samuel Guerra e092792ff6 Fixed race condition in `ResponseVar::wait_done`.
The recent change of `Var::wait_update` to an async method caused it to not instantiate the future at the moment the method is called, so the code that double checks if the response is done in `wait_done` no longer covered all conditions.
2024-01-14 20:20:39 -03:00
Samuel Guerra 7af83f6990 Reduced race condition to a test. 2024-01-14 17:52:16 -03:00
Samuel Guerra acbcafc7de Fixed tests. 2024-01-13 02:04:20 -03:00
Samuel Guerra baec039cdf Documented checkerboard. 2024-01-12 12:56:56 -03:00
Samuel Guerra ed0bc657cb Renamed `to_text` to `to_txt`.
Alert app-process of handled panics creating gl context.
2024-01-06 15:52:23 -03:00
Well f744174ec1 Fixed infinite loop due to variable shadowing.
Fmt.
2024-01-05 18:57:42 -03:00
Samuel Guerra fb8fd08a85 Renamed wgt_prelude to prelude_wgt. 2024-01-05 12:45:09 -03:00
Samuel Guerra c5eaf4c69d Fixed build test. 2024-01-03 19:18:23 -03:00
Well 1714ae7b7a Refactored WhenVar to only contextualize when needed. 2024-01-03 18:20:35 -03:00
Samuel Guerra 7af0065a9b Fixed tests. 2023-12-30 22:56:22 -03:00
Samuel Guerra b3c4afdcce Fixed tests. 2023-12-27 12:57:40 -03:00
Samuel Guerra 9ec3a1d94b Implemented strong typed var hook. 2023-12-27 11:38:30 -03:00
Samuel Guerra dcff791be1 Replaced stack functions with `Stack!` shorthand. 2023-12-22 00:00:37 -03:00
Samuel Guerra 99801f8a62 FInished prelude cleanup. 2023-12-17 01:11:07 -03:00
Samuel Guerra e243ccae66 Renamed `instance` and `nodes` to `node`, renamed `commands` to `cmd`. 2023-12-15 22:11:38 -03:00
Samuel Guerra d3304b07eb Moved presenter nodes to -wgt crate. 2023-12-15 13:46:47 -03:00
Samuel Guerra 9ac348cd6d Moved ObservableVec to -var crate. 2023-12-15 12:05:46 -03:00
Samuel Guerra 4ffa4da8c7 Removed `child` and ` children` from app process crate. 2023-12-13 16:53:52 -03:00
Samuel Guerra 1e85cd84da Removed trivial mix-ins. 2023-12-13 16:36:35 -03:00