Add Ruang Belajar collection#29
Conversation
|
Warning Review limit reached
Next review available in: 55 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (7)
📒 Files selected for processing (7)
📝 WalkthroughWalkthroughAdds the Ruang Belajar collection with shared resource metadata, author and resource pages, Google Drive previews/downloads, homepage and navigation entry points, and CSP support for embedded Drive content. ChangesLearning resource collection
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant Visitor
participant LearningIndex
participant ResourcePage
participant GoogleDrive
Visitor->>LearningIndex: Open /belajar/
LearningIndex->>Visitor: Render resource cards
Visitor->>ResourcePage: Open a resource slug
ResourcePage->>GoogleDrive: Load preview iframe
GoogleDrive-->>ResourcePage: Display document preview
Possibly related PRs
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request introduces 'Ruang Belajar', a new section showcasing open-source technology publications by Onno W. Purbo. It adds a library file for learning resources, updates navigation and CSP configurations, and creates index, detail, and author profile pages. Feedback on these changes focuses on improving type safety by using Astro Props interfaces, ensuring canonical URLs in JSON-LD metadata, securing the embedded Google Drive iframe with sandbox and allowfullscreen attributes, and consistently resolving metadata image URLs.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 32e4dafd9e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| <BaseButton href="/belajar/" variant="secondary">Lihat semua</BaseButton> | ||
| </div> | ||
| <div class="grid gap-3 md:grid-cols-2 lg:grid-cols-3"> | ||
| {learningResources.map((resource) => <a class="riso-hover riso-shadow-sm border-2 border-ink bg-canvas p-4" href={`/belajar/${resource.slug}/`}><span class="meta-row text-brand-dark">{resource.topic} · {resource.year}</span><h3 class="display-sm mt-3 text-ink">{resource.title}</h3></a>)} |
There was a problem hiding this comment.
Keep internal learning links under the configured base
When ASTRO_BASE is non-root, these root-relative belajar links bypass the same withBase/BaseButton normalization used elsewhere, so the generated pages link to /belajar/... instead of /<base>/belajar/... and leave subpath deployments with 404s. This direct-link pattern also affects the exported authorProfileHref used in plain <a> tags on the belajar pages.
Useful? React with 👍 / 👎.
Summary
Why
Make the initial Onno W. Purbo learning collection discoverable and shareable on IndopenSource.
Validation
npm run buildnpm testSummary by CodeRabbit