Skip to content

feat: indicate tracks from other users #975

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

Closed
wants to merge 3 commits into from

Conversation

ErikSin
Copy link
Contributor

@ErikSin ErikSin commented Feb 13, 2025

closes #936

image

@ErikSin ErikSin requested a review from cimigree February 13, 2025 20:27
Copy link
Contributor

@cimigree cimigree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ErikSin I noticed this is failing CI. Can you fix that before I review, please?

@ErikSin ErikSin requested a review from cimigree February 19, 2025 17:40
const {data: deviceInfo} = useDeviceInfo();

const isMine =
createdByDeviceId && createdByDeviceId === deviceInfo?.deviceId;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it make any sense to put this in a hook or function and returns a simple boolean?
useIsMine(originalVersionId) or something?
Then the render function in the list item is more about layout and style?

status: originalVersionIdToDeviceIdQueryStatus,
} = useOriginalVersionIdToDeviceId(observation.originalVersionId);
const isMine = createdByDeviceId === deviceInfo?.deviceId;
const queriesSucceeded =
Copy link
Contributor

@cimigree cimigree Feb 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth still checking if deviceInfo or createdByDeviceId is still loading? If so, would the isMine be incorrect (in the new file) and thus apply the incorrect styling? (would default to not isMine when I am not sure that is the more likely scenario)

Copy link
Contributor

@cimigree cimigree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions and questions but otherwise seems fine.

@ErikSin ErikSin closed this May 1, 2025
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.

Exchange Tracks/ No blue line in obvs list
2 participants