Skip to content

v0.29.0 - #218

Open
ray-pH wants to merge 3 commits into
mainfrom
v0.29.0
Open

v0.29.0#218
ray-pH wants to merge 3 commits into
mainfrom
v0.29.0

Conversation

@ray-pH

@ray-pH ray-pH commented Aug 8, 2026

Copy link
Copy Markdown
Owner

No description provided.

@netlify

netlify Bot commented Aug 8, 2026

Copy link
Copy Markdown

Deploy Preview for wenbun-dev ready!

Name Link
🔨 Latest commit 05d5c6e
🔍 Latest deploy log https://app.netlify.com/projects/wenbun-dev/deploys/6a76bd1f2545650008352247
😎 Deploy Preview https://deploy-preview-218--wenbun-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the v0.29.0 release notes and refactors sync behavior to reduce server load by using a profile metadata endpoint and switching review log syncing from batch operations to per-review uploads.

Changes:

  • Add v0.29.0 changelog entry on the About page.
  • Optimize profile sync by fetching lightweight /profiledata/metadata before deciding push/pull/conflict.
  • Remove batch review-log sync and upload individual review logs as they are created.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/routes/about/+page.svelte Adds v0.29.0 changelog entry.
src/lib/profile.ts Implements metadata-based profile sync and removes batch review-log sync methods.
src/lib/app.ts Uploads each review log immediately when created.
src/lib/api.ts Adds ProfileDataMetadata API route and removes ReviewLogMostRecent.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/lib/profile.ts
Comment on lines 228 to +231
const remoteProfileData = await this.getProfileData();
const success = await Promise.all([
this.updateProfileData(app.exportProfile(false), "pull"),
this.pullReviewLog(app, true),
]);
const success = await this.updateProfileData(app.exportProfile(false), "pull");
const success2 = await app.tryImportProfile(remoteProfileData, false, true);
if (success.every(s => s) && success2) {
if (success && success2) {
Comment thread src/lib/app.ts
Comment on lines 963 to +966
pushReviewLog(deckId: string, cardId: number, log: FSRS.ReviewLog): void {
this.reviewLogs.push({deckId, cardId, log});
const reviewLog = {deckId, cardId, log};
this.reviewLogs.push(reviewLog);
void this.profile.uploadReviewLog(reviewLog).catch(console.error);
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