Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SPEC.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ The Foojay Java in Education Catalog is a community-driven catalog of Java learn

### Creating your first Java application with IntelliJ IDEA

- **Badges:** Video
- **Badges:** Tutorial, Video
- **Description:** A video tutorial on how to create and run a simple Java application that prints Hello, World! to the system output.
- **Links:** [Video](https://www.youtube.com/watch?v=V_vXRRydnYI)

### Create your first Java application

- **Badges:** Video
- **Badges:** Tutorial
- **Description:** A written tutorial on how to create, build, run and package a simple Java application.
- **Links:** [Website](https://www.jetbrains.com/help/idea/creating-and-running-your-first-java-application.html)
Comment on lines +84 to 92
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Verify that index.html badges match the SPEC.md changes

echo "=== Checking 'Creating your first Java application with IntelliJ IDEA' ===" 
rg -A 5 -B 2 'Creating your first Java application with IntelliJ IDEA' index.html

echo ""
echo "=== Checking 'Create your first Java application' ==="
rg -A 5 -B 2 'Create your first Java application(?! with IntelliJ)' index.html

Repository: foojayio/java-education-catalog

Length of output: 1016


🏁 Script executed:

#!/bin/bash
# Check both cards mentioned in the review comment

echo "=== Checking 'Creating your first Java application with IntelliJ IDEA' ==="
rg -A 8 'Creating your first Java application with IntelliJ IDEA' index.html | head -20

echo ""
echo "=== Checking 'Create your first Java application' ==="
# Search for the card with the jetbrains.com link matching the second entry
rg -B 3 -A 8 'creating-and-running-your-first-java-application' index.html

echo ""
echo "=== Checking badge class usage in file ==="
rg 'badge-(framework|assistant|inference|resource)' index.html | head -30

Repository: foojayio/java-education-catalog

Length of output: 2971


Update index.html to match the badge specifications in SPEC.md.

The following cards in index.html have incorrect badges and do not match SPEC.md:

  1. "Creating your first Java application with IntelliJ IDEA" – Currently has only badge-assistant (Video); should have both badge-framework (Tutorial) and badge-assistant (Video)
  2. "Create your first Java application" – Currently has only badge-assistant (Video); should have only badge-framework (Tutorial)

Since index.html contains hardcoded HTML with no build process, these badge changes must be manually applied for the site to reflect the updated specification.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@SPEC.md` around lines 84 - 92, Edit index.html to update the badge elements
for the two Java tutorial cards: for the card titled "Creating your first Java
application with IntelliJ IDEA" add the badge-framework element/class alongside
the existing badge-assistant so it shows both Tutorial and Video badges, and for
the card titled "Create your first Java application" remove the badge-assistant
element/class and replace it with badge-framework so it shows only the Tutorial
badge; keep the badge markup consistent with other cards (same element/tag and
CSS classes).


Expand Down