refactor: replace deprecated #[transition] with set_transition_type #23

Merged
bahrom04 merged 3 commits from zeta/e-imzo-manager:main into main 2026-09-28 17:28:59 +00:00
Contributor

Type of Change

Description

Fixes #(issue number)
Relates to #(issue number)

Testing

  • Test A
  • Test B

Checklist

  • My code follows the project's style guidelines
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new issue, error or problem
  • New and existing unit tests pass locally with my changes

Screenshots (if applicable)

Add screenshots to help explain your changes.

## Type of Change [Please delete options that are not relevant:]: # ## Description [Brief description of the changes in this pull request. ]: # ## Related Issues Fixes #(issue number) Relates to #(issue number) ## Testing [Describe the tests you ran to verify your changes:]: # - [ ] Test A - [ ] Test B ## Checklist - [ ] My code follows the project's style guidelines - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] My changes generate no new issue, error or problem - [ ] New and existing unit tests pass locally with my changes ## Screenshots (if applicable) Add screenshots to help explain your changes.
refactor: replace deprecated #[transition] with set_transition_type
All checks were successful
Test CI / flake-check (pull_request) Successful in 49s
Test CI / nix-build (pull_request) Successful in 3m31s
43bddb86cf
bahrom04 requested changes 2026-09-08 14:17:22 +00:00
Dismissed
@ -120,7 +120,6 @@ impl SimpleComponent for App {
}
},
#[transition(SlideLeftRight)]
Owner

you deleted transition but didnʼt used new method to implement transition.

PR: https://github.com/Relm4/Relm4/pull/916
Reason: https://github.com/Relm4/Relm4/pull/915#issuecomment-4444190004

I suggest you change cargo.toml relm4 0.11 version into latest github commit hash so you can test it now. New PR #916 is not released on crates

you deleted transition but didnʼt used new method to implement transition. PR: https://github.com/Relm4/Relm4/pull/916 Reason: https://github.com/Relm4/Relm4/pull/915#issuecomment-4444190004 I suggest you change cargo.toml relm4 0.11 version into latest github commit hash so you can test it now. New PR [#916](https://github.com/Relm4/Relm4/pull/916) is not released on crates
Author
Contributor

Added the set_transition_type block and updated Cargo.toml to pull relm4

Added the `set_transition_type` block and updated `Cargo.toml` to pull relm4
zeta marked this conversation as resolved
refactor: replace deprecated #[transition] with set_transition_type
Some checks failed
Test CI / nix-build (pull_request) Failing after 26s
Test CI / flake-check (pull_request) Successful in 27s
f24adab167
bahrom04 requested changes 2026-09-09 08:11:00 +00:00
Dismissed
@ -38,2 +38,4 @@
uzers = "0.12.2"
anyhow = "1.0.102"
[patch.crates-io]
relm4 = { git = "https://github.com/Relm4/Relm4", rev = "233314aa522ca65f213523b143a3cce74a415e36" }
Owner

which commit is this? i found that last commit is: "96a2abe04ed89c77546e4d5d600fc14248cd327c"

which commit is this? i found that last commit is: "96a2abe04ed89c77546e4d5d600fc14248cd327c"
Owner

@zeta can you sent me commit link from github so i can merge after verifying

@zeta can you sent me commit link from github so i can merge after verifying
Owner
also ci build failed cause of this: https://git.oss.uzinfocom.uz/xinux/e-imzo-manager/actions/runs/71/jobs/1/attempt/1#jobstep-2-21
Author
Contributor

Commit link: github.com/Relm4/Relm4@233314aa52

This is the commit where PR #916 was merged (the one that adds set_transition_type). It's not the latest commit on relm4's main anymore since more unrelated commits landed after it, but it has the fix we need.

Also made two more changes needed to get this building on Nix:

Added outputHashes in packages/e-imzo-manager/default.nix — needed so Nix can vendor the git-sourced relm4 dependency.
Bumped nixpkgs in flake.lock — unrelated to this fix, but current nixpkgs hits 403 errors from crates.io on crate downloads (a recent crates.io API change), so this was needed just to get a working build at all right now.

Tested locally with nix build — builds clean.

Commit link: https://github.com/Relm4/Relm4/commit/233314aa522ca65f213523b143a3cce74a415e36 This is the commit where PR #916 was merged (the one that adds set_transition_type). It's not the latest commit on relm4's main anymore since more unrelated commits landed after it, but it has the fix we need. Also made two more changes needed to get this building on Nix: Added outputHashes in packages/e-imzo-manager/default.nix — needed so Nix can vendor the git-sourced relm4 dependency. Bumped nixpkgs in flake.lock — unrelated to this fix, but current nixpkgs hits 403 errors from crates.io on crate downloads (a recent crates.io API change), so this was needed just to get a working build at all right now. Tested locally with nix build — builds clean.
refactor: replace deprecated #[transition] with set_transition_type, patch relm4 to unreleased commit
All checks were successful
Test CI / flake-check (pull_request) Successful in 47s
Test CI / nix-build (pull_request) Successful in 4m6s
941c5eb0a8
bahrom04 approved these changes 2026-09-28 17:28:52 +00:00
Sign in to join this conversation.
No description provided.