Open ElliotFriend opened 1 month ago
I will love to work on this @ElliotFriend kindly assign
Hi @ShantelPeters! Maintainers during the ODHack # 8.0 will be tracking applications via OnlyDust. Therefore, in order for you to have a chance at being assigned to this issue, please apply directly here, or else your application may not be considered.
i would love to work on this issue @ElliotFriend please assign me
Hi @martinvibes! Maintainers during the ODHack # 8.0 will be tracking applications via OnlyDust. Therefore, in order for you to have a chance at being assigned to this issue, please apply directly here, or else your application may not be considered.
I am applying to this issue via OnlyDust platform.
Hello, i am Dprof-in-tech, an experienced Full Stack Blockchain Developer and I am excited to contribute my skills to this project in this ODHACK 8. With a strong background in Next.js, TypeScript, JavaScript, React, Node.js, Rust and Cairo, I've honed my technical skills across the blockchain development landscape.
My journey with OnlyDust began at Edition 2, and I've since made 34 contributions across 11 projects. This extensive experience on the platform has allowed me to develop a keen understanding of delivering high-quality solutions under tight deadlines. Due to my web2 experience, i am skilled in writing unit tests and have used Jest and Vitest to do this. I would love to contribute to this project by solving this issue.
Below is a link to my OnlyDust public profile. https://app.onlydust.com/u/Dprof-in-tech
Based on the code provided and the issue described, here's an approach to solve the problem of the SEP-24 deposit/withdraw popup closing prematurely:
Identify the Issue:
The problem occurs in the launchTransferWindowSep24
function, where the event listener is closing the popup immediately upon receiving any message.
Modify the Event Listener: i would modify the event listener to decode the message being returned before closing the pop up.
Implement Error Handling:
Potentially Add User Feedback if needed:
Testing:
Refactor for Reusability:
Update Documentation where neccessary:
I am applying to this issue via OnlyDust platform.
My name is Collins Ikechukwu. I'm a full stack blockchain developer developer.
Modify Event Listener: Update the event listener to check for specific status messages before calling popup.close()
.
Define Accepted Statuses: Create an array or set of acceptable status messages, such as "transfer initiated," "successful," and "aborted."
Conditional Logic: Implement logic that only invokes popup.close()
if the received message matches one of the accepted statuses.
Example Implementation:
const acceptedStatuses = ["transfer initiated", "successful", "aborted"];
window.addEventListener("message", (event) => {
if (acceptedStatuses.includes(event.data.status)) {
popup.close();
}
});
Testing: Test the functionality to ensure that the popup only closes for the specified status messages, avoiding unintentional closures.
I am applying to this issue via OnlyDust platform.
Fullstack developer
This is a simple bug,I will inspect the code base and add logic to only close the popup after the post message
I am applying to this issue via OnlyDust platform.
My name is Benjamin, and as a full-stack JavaScript developer with experience in creating responsive and user-friendly components, I understand the importance of a smooth user experience. I have made 18 contributions to the OnlyDust project and am confident in my ability to resolve the current issue with the SEP-24 popup.
The current problem is that when users click the deposit or withdraw buttons, the popup appears briefly and then closes right away. This can be frustrating for users, as they don't have enough time to read the important transaction status messages.
To fix this, I suggest we update the event listener that handles the messages sent by the popup. We should make sure that the popup only closes when it receives specific messages, such as “transfer initiated,” “successful,” or “aborted.” This way, the popup can stay open longer for any messages that don’t indicate it should close.
I'll also conduct thorough testing to ensure the popup behaves correctly with different status messages, giving users ample time to read them.
By making these changes, we can significantly improve the user experience and ensure that important transaction information is communicated clearly. I'm eager to hear your thoughts and get started on this solution.
I am applying to this issue via OnlyDust platform.
hello i am a frontend dev and blockchain developer please can i work on this issue :) and would love to be a contributor
Proposed Solution: Improve Event Listener Logic: Modify the event listener to close the popup only when the postMessage event contains a valid status, such as: "transfer initiated" "successful" "aborted" Prevent Premature Closing: Ensure the popup doesn’t close for any other messages or events, preventing unintended behavior.
Possible Cause: The event listener is reacting to irrelevant events, causing the popup to close before a valid status is received.
I am applying to this issue via OnlyDust platform.
Helloo, my name is Hellen. I´m currently a computer science student and a web3 developer. I have been working on different exercises on different platforms like Exercism and Starklings in the past weeks so I can get my knowledge about the different languages better . I am hopeful to contribute on this repository!!
To fix the issue where the popup closes immediately when users click on the button is to modify the event listener by implementing a check within the listener using "handlePopupMessage" so it closes to a specific message. (In this case to "transfer initiated", "successful", or "aborted".)
I am applying to this issue via OnlyDust platform.
Hello @ElliotFriend I am Joseph I am a Software developer and blockchain developer and I am also an active contributor here on only dust here is my profile https://app.onlydust.com/u/josephchimebuka. This is my first time to contribute to this repo ill appreciate the opportunity to contribute.
To fix this, I will add logic to the event listener that checks the postMessage content before triggering popup.close(). I'll ensure that the popup only closes when the message contains specific status values like "transfer initiated", "successful", or "aborted". This will prevent the popup from closing prematurely by only reacting to valid status updates. After making the change, I will test the functionality to ensure the popup behaves correctly based on the messages received.
When a user clicks the SEP-24 deposit/withdraw buttons on the
/dashboard/transfers
page, the popup displays for a moment, and immediately closes. I suspect the window is picking up a stream of events in the eventListener part now.We should add some kind of testing logic that only does
popup.close()
in the event that the postMessage says something like "transfer initiated" or "successful" or "aborted" or whatever the status messages might be.