Skip to content

Update home page to v2#623

Merged
SO9010 merged 4 commits intomainfrom
Fix-home-page
Jun 10, 2025
Merged

Update home page to v2#623
SO9010 merged 4 commits intomainfrom
Fix-home-page

Conversation

@SO9010
Copy link
Copy Markdown
Collaborator

@SO9010 SO9010 commented Jun 9, 2025

@jacksongoode can you have a quick look through this, it had to be updated to v2.

Copy link
Copy Markdown
Collaborator

@jacksongoode jacksongoode left a comment

Choose a reason for hiding this comment

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

Had a few questions.

Comment thread psst-gui/src/webapi/client.rs Outdated
}

pub fn get_made_for_you(&self) -> Result<MixedView, Error> {
// 0JQ5DAUnp4wcj0bCb3wh3S -> Daily mixes
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This comment should be changed too.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think I get what you mean, changed from daily mixes to made for you

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Ah well I was thinking the hash should be updated in the comment to 0JQ5DAqAJXkJGsa2DyEjKi

.query("fields", "260")
.header("Authorization", format!("Bearer {token}"));

let result: Cached<User> = self.load_cached(request, "User_info", "usrinfo")?;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why are we no longer using Cached?

Copy link
Copy Markdown
Collaborator Author

@SO9010 SO9010 Jun 9, 2025

Choose a reason for hiding this comment

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

I was thinking it makes more sense to not cache it because if people travel around a lot it could break it?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hmm, I think we ought to cache it, otherwise there will be latency in hitting ip-api.com everytime we load the home section.

Comment thread psst-gui/src/webapi/client.rs Outdated
Copy link
Copy Markdown
Collaborator

@jacksongoode jacksongoode left a comment

Choose a reason for hiding this comment

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

Small a few small adjustments, feel free to merge.

@SO9010 SO9010 merged commit 0e9c8d0 into main Jun 10, 2025
4 of 5 checks passed
@SO9010 SO9010 deleted the Fix-home-page branch June 10, 2025 13:43
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.

2 participants