Skip to content

Add news/highlights section#46

Open
serjikibm wants to merge 3 commits into
generative-computing:mainfrom
serjikibm:add-highlights-section
Open

Add news/highlights section#46
serjikibm wants to merge 3 commits into
generative-computing:mainfrom
serjikibm:add-highlights-section

Conversation

@serjikibm
Copy link
Copy Markdown
Collaborator

@serjikibm serjikibm commented May 15, 2026

fixes #19

This is a simple take, reusing the existing blogs markdown approach to replace the feature strip with a new section that has some subtle coloring to call out attention to events, integration in docs and releases.

This is a simpler take to get the content out there for now in a simpler and known way.

Draft PR 20 has another take. We should just pick one and merge to not miss the opportunity to call out new content, and make the site somewhat dynamic with new content.

Before the change

image

After the change

image

@serjikibm serjikibm requested a review from a team as a code owner May 15, 2026 17:19
@serjikibm
Copy link
Copy Markdown
Collaborator Author

serjikibm commented May 15, 2026

The CI errors seem like a timeout on the ibm.biz link checks in the blogs

image

Comment thread content/news/mcp-integration.md Outdated
@ajbozarth
Copy link
Copy Markdown
Contributor

I like this refactor more than the one in #20 but I have questions on the content that would block merging as is:

  • what determines a news item?
  • do we only keep three at a time?
  • why not just show blogs here instead of at the bottom?
  • or we could combine news items like these with a outside link along side blogs
  • what would a news item lifecycle be?

@ajbozarth
Copy link
Copy Markdown
Contributor

I'll take a technical look at the code before EOD (to many ongoing threads at the moment)

@serjikibm
Copy link
Copy Markdown
Collaborator Author

I'll take a technical look at the code before EOD (to many ongoing threads at the moment)

Thanks @ajbozarth no rush. It can wait till Monday. The MCP comment was quite critical.

Copy link
Copy Markdown
Contributor

@ajbozarth ajbozarth left a comment

Choose a reason for hiding this comment

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

Code is structurally sound: lib/news.ts mirrors lib/blogs.ts, NewsHighlights stays a Server Component, CSS variables resolve, types are clean. The blockers are around content lifecycle and a few content/code-level fixes (inline).

Cap and lifecycle. The grid is repeat(auto-fit, minmax(260px, 1fr)) against a ~1136px-wide strip, fitting up to 4 cards per row at desktop. 3 items renders as a clean single row. 5 items renders as one row of 4 + one orphan card stretched across the full width on a second row, which looks broken — the same orphan-row issue .blog-grid (globals.css L530-535) avoided by using real borders rather than the gap: 1px; background: var(--border) trick. getAllNews() returns everything in content/news/ with no slice, so the strip will visibly break the moment a fifth news item lands.

Strawman: trim to 3-4 in page.tsx (mirrors recent = blogs.slice(0, 3)), no /news archive page. News is transient — releases live on GitHub releases, events go stale after their date — so an archive of old news is lower value than a blog archive of evergreen writing. If volume ever justifies a discoverable list, /news can reuse .blog-grid later.

If we instead want unbounded news on the homepage, the strip needs the orphan-row fix before merge (inline comment below).

Sort behavior. Pure descending by date means a future-dated Event leads ahead of a more recent Release. Probably right for an events-first framing, but worth confirming intent rather than inheriting it from the sort.

Doc gap. AGENTS.md documents content/blogs/ schema but not content/news/. Adding the front-matter shape (title, date, category, excerpt, url, source) will save the next contributor a source read.

title: "Mellea v0.5 Released"
date: "2026-04-07"
category: "Release"
excerpt: "This release contains maintainence and new capabilities for streaming and telemetry, and more."
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.

Typo.

Suggested change
excerpt: "This release contains maintainence and new capabilities for streaming and telemetry, and more."
excerpt: "This release contains maintenance and new capabilities for streaming and telemetry, and more."

title: "NY Tech Week: Generative Computing Masterclass"
date: "2026-06-01"
category: "Event"
excerpt: "Generative Computing Masterclass: Building Predictable, Auditable AI with Mellea. https://www.tech-week.com/calendar/nyc/tracks/ai-infra"
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.

The excerpt has a raw URL appended, which renders as unclickable plain text in the card. The card already has its own url field; the excerpt should be prose only.

Suggested change
excerpt: "Generative Computing Masterclass: Building Predictable, Auditable AI with Mellea. https://www.tech-week.com/calendar/nyc/tracks/ai-infra"
excerpt: "Generative Computing Masterclass: Building Predictable, Auditable AI with Mellea."

@@ -0,0 +1,8 @@
---
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.

Filename nit (no inline rename possible, flagging here): nyt- reads as "New York Times". The event is "NY Tech Week"; ny-tech-week-2026-june.md is clearer.

Comment thread src/app/globals.css
@@ -850,31 +850,122 @@ a {
}

/* ── Stats / Feature strip ── */
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.

Stale section header from the removed feature-strip code, sitting directly above the new News Highlights block.

Suggested change
/* ── Stats / Feature strip ── */
/* ── News Highlights ── */

(and delete the duplicate /* ── News Highlights ── */ on the next line)

Comment thread src/app/globals.css
Comment on lines +872 to 877
.news-strip {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 1px;
background: var(--border);
margin: 3rem 0;
}
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.

The gap: 1px; background: var(--border) trick produces an unbordered, full-width orphan card whenever item count isn't a multiple of the column count (visible at 5 items today). .blog-grid (L530-535) solved the same problem with real borders. Cheapest mitigation here is auto-fill instead of auto-fit — keeps empty tracks reserved so the orphan stays its minmax size:

Suggested change
.news-strip {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 1px;
background: var(--border);
margin: 3rem 0;
}
.news-strip {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 1px;
background: var(--border);
}

Moot if we cap to 3-4 items on the homepage and never let an orphan happen.

Comment thread src/app/globals.css

.feature-label {
font-size: 0.85rem;
.news-card[data-category="event"] .news-card-category {
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.

CSS themes event, integration, and community chips, but Release (used in mellea-v0.5-release.md) falls back to default blue with no themed treatment. Intentional (releases own the brand color), or should Release get its own chip color?

@ajbozarth
Copy link
Copy Markdown
Contributor

I've not quite content with how Claude summarized my thoughts above so here's a better attempt manually:

Though this is pretty good technically I think we need to establish a lifecycle for news. As part of this lifecycle we should need to establish the following:

  • do we cap the news displayed on the landing page? If so to what number (3 or 4 fit on one line)
  • if we are capping the list, what should be displayed? latest dates? manual order?
  • how should dates work, the current examples have both past and future, but eventually this future one will be in the past
  • should we have a news page like blogs so a visitor can go look at older news? (this would alleviate the lifecycle on landing page issue)
  • should we periodically remove old news?

No matter what we choose we should document this just like I did with the blog process

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.

Highlight new/important content

2 participants