Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
An Angular NgModule in app.module.ts, with the entryComponents line highlighted:

@NgModule({
  declarations: [AppComponent, ConfirmDialogComponent],
  imports: [BrowserModule, MatDialogModule],
  // Forget this line and enjoy: "No component factory found
  // for ConfirmDialogComponent. Did you add it to entryComponents?"
  entryComponents: [ConfirmDialogComponent],
  bootstrap: [AppComponent],
})
export class AppModule {}
Photo, no description
Code card titled "A minor release that changes a result shape." It covers MCP TypeScript SDK 2.4.0 (client, server and core, Oct 23, 2026). An illustrative TypeScript diff shows reading tool output: the old line reads res.structuredContent.result, the new line parses res.structuredContent with a schema, with the comment "parse, don't cast: a cast would not notice the move". A table of upgrade notes: outputSchema built from z.object(...).meta({ id }) is no longer wrapped in { result } on 2025-11-25 connections; x-mcp-header on a number parameter is rejected per the 2026-07-28 spec, use z.int(); the bundled Ajv uses fast-uri 3.1.8, so an invalid URI scheme like my_tool:output no longer compiles; new Skills over MCP (SEP-2640), where SkillsClient verifies size, digest and SKILL.md frontmatter. Take: read the upgrade notes before bumping a minor, and validate tool output at runtime.
Day 020: Decorators
@Component({
  selector: 'app-search-panel',
  template: `
    <button (click)="open()">Search</button>
    @if (isOpen()) {
      <input #search placeholder="Search orders" />
    }
  `,
})
export class SearchPanel {
  private readonly injector = inject(Injector);
  protected readonly isOpen = signal(false);
  private readonly search = viewChild<ElementRef<HTMLInputElement>>('search');

  protected open() {
    this.isOpen.set(true);
    afterNextRender(() => this.search()?.nativeElement.focus(), {
      injector: this.injector,
    });
  }
}
Photo, no description
Code card titled "A patch release added a finish reason. Your exhaustive switch will notice." It explains that Vercel AI SDK 7.0.149 adds the finish reason "interrupted", meaning the provider stream ended without a completion signal. An illustrative TypeScript snippet shows the FinishReason union with interrupted added, and a switch statement that handles it with the label "Cut off, partial answer" and uses assertNever as the default. A table from the release notes: kept, partial output is preserved; no error, an interruption alone does not emit an error; stops, tool execution, agent continuation and automatic UI follow-ups; not yet, provider detection and emission will be added separately. Take: give it its own UI state, keep the partial text, label it as cut off, offer a retry.
Day 019: Async TypeScript
O texto alternativo descreve conteúdo multimédia para utilizadores de visão reduzida ou cegos, e ajuda a dar contexto para todos.
My Boss Wrote A Spam Filter
Photo, no description
Ynex – Nextjs Typescript Tailwind Admin Dashboard Template
Day 018: Error handling with types
@Component({ /* ... */ })
export class PriceTag implements OnChanges {
  @Input() price = 0;
  @Input() discount = 0;
  finalPrice = 0;

  ngOnChanges() {
    this.finalPrice = this.price * (1 - this.discount);
  }
}
Photo, no description
Ionify promo graphic with the headline “No code changes. Very different build times.” Two panels compare benchmark results for a 15K+ module scenario: Vite shows a warm build time of about 2.7 seconds, while Ionify shows a second build time of about 30 milliseconds.
Photo, no description
Photo, no description
After: the same component using httpResource, with the resource line highlighted. Loading, error and value all come from one resource:

@Component({
  template: `
    @if (orders.isLoading()) {
      <app-spinner />
    } @else if (orders.error()) {
      <p>Could not load orders</p>
    } @else {
      @for (o of orders.value(); track o.id) {
        <app-order-row [order]="o" />
      }
    }
  `,
})
export class OrdersPage {
  readonly orders = httpResource<Order[]>(() => '/api/orders', {
    defaultValue: [],
  });
}
Angular single-file component in a dark editor, with the two queryParamsHandling lines and the two input lines highlighted:

@Component({
  template: `
    <a [routerLink]="[]" [queryParams]="{ status: 'unpaid', page: 1 }"
       queryParamsHandling="merge">Unpaid</a>
    <a [routerLink]="[]" [queryParams]="{ page: page() + 1 }"
       queryParamsHandling="merge">Next page</a>`,
})
export class OrdersPage {
  readonly status = input('all', { transform: (v?: Status) => v ?? 'all' });
  readonly page = input(1, { transform: (v?: string) => numberAttribute(v, 1) });
  readonly orders = httpResource<Order[]>(() =>
    `/api/orders?status=${this.status()}&page=${this.page()}`);
}
Load more