Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drip List: Rephrase "Created by" to "Managed by" #1226

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jo-elimu
Copy link
Contributor

@jo-elimu jo-elimu commented Sep 30, 2024

Resolves #1225

@jo-elimu
Copy link
Contributor Author

@efstajas

@jo-elimu
Copy link
Contributor Author

Getting a TimeoutError for the E2E tests:

app-1  |  FAIL  src/e2e-tests/top-up-create-stream.e2e.test.ts > app > streams and balances > search > opens the searchbar
app-1  | TimeoutError: locator.click: Timeout 30000ms exceeded.
app-1  | Call log:
app-1  |   - waiting for locator('data-testid=search-button')

@efstajas
Copy link
Contributor

Thanks @jo-elimu, change LGTM 👍 The E2E tests are currently broken, that's expected.

@efstajas
Copy link
Contributor

efstajas commented Sep 30, 2024

Actually, now thinking that maybe "Owned by" in context of the total value being shown might imply that the value is somehow owned by the address shown, especially given lists being NFTs is not immediately clear just by looking at one. Maybe "Controlled by" is better, though it might sounds a bit technical. @brandonhaslegs you have an opinion on this?

@brandonhaslegs
Copy link
Collaborator

Can it remain "created by" until it's actually transferred?

@efstajas
Copy link
Contributor

efstajas commented Sep 30, 2024

@brandonhaslegs yep, wouldn't be that hard. There's a field previousOwnerAddress on DripList. If it's 0x0000000000000000000000000000000000000000, it means the current owner created the list. If it's any other address, it means it was transferred.

@jo-elimu to make it dynamic, you could just add previousOwnerAddress to the Drip List Badge fragment, and display "Created by" if that value is 0x0000000000000000000000000000000000000000, or "Controlled by" if it's another address. Would you be up for making that chance? Otherwise, happy to jump in.

@jo-elimu jo-elimu changed the title fix(ui): rephrase "created by" to "owned by" Rephrase "Created by" to "Managed by" Oct 9, 2024
@jo-elimu jo-elimu changed the title Rephrase "Created by" to "Managed by" Drip List: Rephrase "Created by" to "Managed by" Oct 9, 2024
@jo-elimu jo-elimu requested a review from efstajas October 9, 2024 15:26
@jo-elimu
Copy link
Contributor Author

jo-elimu commented Oct 9, 2024

Actually, now thinking that maybe "Owned by" in context of the total value being shown might imply that the value is somehow owned by the address shown, especially given lists being NFTs is not immediately clear just by looking at one. Maybe "Controlled by" is better, though it might sounds a bit technical.

@efstajas Yes, I think you are right that "Owned by" can confuse people to think that the Drip List owner owns the funds in the Drip List. So something like "Controlled by," "Operated by," or "Managed by," might be better. I think that "Managed by" is probably the least technical term and the best option, so I adjusted the PR here: ead970e

@jo-elimu
Copy link
Contributor Author

jo-elimu commented Oct 9, 2024

to make it dynamic, you could just add previousOwnerAddress to the Drip List Badge fragment, and display "Created by" if that value is 0x0000000000000000000000000000000000000000, or "Controlled by" if it's another address. Would you be up for making that chance?

@efstajas Will that solution cover the edge-case where a Drip List changes owner 3 times or more? If the Drip List ownership is transferred to a 2nd account, it would be correct to set Created by ${previousOwnerAddress}. But if the 2nd owner transfers ownership to a 3rd account, would it still be correct to assume that the previousOwnerAddress is the original creator?

@efstajas
Copy link
Contributor

@jo-elimu No, if it were transferred a third time, previousOwnerAddress would be the address of the 2nd owner. But it shouldn't matter for this if all we're trying to check is whether the current owner created the list or not. Unless the previous owner is the null address, it hasn't been created by the current owner (unless the list was transferred back to the original creator, but that's an edge case I think we can ignore).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change "Created by" to a more accurate text for Drip List owners
3 participants