Skip to content

Conversation

Starefossen
Copy link
Member

@Starefossen Starefossen commented Jun 2, 2025

By popular demand ✨ En blogpost om Nais Console ✨

  • Litt om Nais og Historien
    • Flere skjermbilder fra tidlig fase?
  • Nais Console i dag (basert på kommentarer fra @frodesundby)
    • Flere skjermbilder fra ulike deler av Console
  • Produktutvikling (basert på kommentarer fra @andnorda)
  • Teknologien bak (basert på kommentarer fra @thokra-nav)
    • Arkitekturdiagram
    • Mer om Nais API?
  • Litt om veien videre
    • Nais CLI + Nais API

@Starefossen Starefossen changed the title A nais console post A Nais Console post Jun 2, 2025
@Starefossen Starefossen requested a review from a team June 2, 2025 10:33
Comment on lines +64 to +93
```svelte
<script lang="ts">
import { graphql } from '$houdini';
import { Skeleton } from '@nais/ds-svelte-community';

// Define a GraphQL query to fetch team information
const teamInfo = graphql(`
query TeamInfo($team: Slug!) @load {
team(slug: $team) @loading {
purpose @loading
}
}
`);
</script>

<div>
<!-- Display team purpose or a loading skeleton while data is being fetched -->
{#if $teamInfo.data}
{#if $teamInfo.data.team.purpose}
<p>Purpose: {$teamInfo.data.team.purpose}</p>
{:else}
<Skeleton variant="text" />
{/if}
{/if}
</div>
```

This simplified example demonstrates how Svelte and Houdini work together to fetch and display data. The `graphql` function defines a query, and the `$teamInfo.data` store automatically updates when the query resolves. The `Skeleton` component provides a loading state while the data is being fetched.

This example demonstrates how Houdini simplifies GraphQL queries and state management in the frontend. By leveraging Svelte’s reactivity and Houdini’s tools, the team can deliver a seamless and responsive user experience.
Copy link
Contributor

Choose a reason for hiding this comment

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

Kræsjer denne delen litt mer resten av artikkelen? Handler vel mer om UI etc, ikke hvordan progge i svelte?

Copy link
Member

Choose a reason for hiding this comment

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

Enig med @thokra-nav, dette passer ikke inn med resten. Jeg tenker denne delen kan ta litt overordnet om arkitekturen og hvilke teknologier, men eksempler og dypdykk kan heller vente til en (eventuell) egen blogpost med samme tittel.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ja, enig. Ser at det blir litt malplassert sånn som det står nå! Kanskje få litt mer kjøtt på bena om arkitektur uten å gå inn i koden.

Co-authored-by: Thomas Krampl <[email protected]>

However, as the platform has grown to support hundreds of teams and nearly 2,000 applications, we’ve seen a diverse range of users with varying backgrounds and needs. There’s also an expectation for a more unified and streamlined user experience compared to when we started building Nais nearly a decade ago.

![Nais Console Timeline](./images/nais-timeline.svg)
Copy link
Contributor

Choose a reason for hiding this comment

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

Kunne vi fått inn en pause-knapp for animasjoner? Personlig syns det er distraherende når jeg skal lese noe (kanskje ironisk med hvor mye jeg bruker det i Slack).

Copy link
Member Author

Choose a reason for hiding this comment

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

Hvordan pauser man en gif? 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

Mange bruker VP8/VP9 i stedetfor gif for å redusere størrelse og støtte f.eks. pause (siden det er video). Men trenger da å bygge fallback etc

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.

4 participants