Closed pauldelucia closed 1 week ago
The changes introduce a new module for refreshing identities and extend the IdentityTask
enum with a RefreshIdentity
variant. The run_identity_task
method is updated to accept a sender parameter for task results. A new asynchronous method, refresh_identity
, is added to handle the logic for refreshing identities. The UI is enhanced to include a refresh button in the identities table, allowing users to trigger identity refresh actions directly from the interface.
File Path | Change Summary |
---|---|
src/platform/identity/mod.rs |
- Added new module: refresh_identity . - Introduced enum variant: RefreshIdentity(QualifiedIdentity) in IdentityTask . - Updated method signature of run_identity_task to include sender: mpsc::Sender<TaskResult> . |
src/platform/identity/refresh_identity.rs |
- Added method: async fn refresh_identity(&self, sdk: &Sdk, qualified_identity: QualifiedIdentity, sender: mpsc::Sender<TaskResult>) . |
src/platform/mod.rs |
- Updated method signature of run_identity_task to include sender: mpsc::Sender<TaskResult> . |
src/ui/identities/identities_screen.rs |
- Updated render_identities_view to include a "Refresh" column and button for triggering IdentityTask::RefreshIdentity . - Added methods: fn refresh(&mut self) , fn ui(&mut self, ctx: &Context) , and pub fn new(app_context: &Arc<AppContext>) . |
src/platform/contested_names/query_dpns_contested_resources.rs |
- Updated error handling in query_dpns_contested_resources to avoid panic on sender.send(TaskResult::Refresh) . - Increased semaphore permit count from 15 to 24. |
load_identity
method, which is related to identity management, similar to the new refresh_identity
functionality introduced in the main PR. Both PRs deal with handling identity tasks and enhancing the functionality of identity management within the application.🐇 In a world where identities play,
A refresh button brightens the day.
With a click, the data flows anew,
Hopping along, our tasks pursue!
So let’s cheer for changes, big and small,
For a smoother journey, we’ll stand tall! 🥕✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes
query_dpns_contested_resources
method to prevent panics and allow better error propagation.Documentation