From b44a4e18b430b91280416735681040ef2e2c2499 Mon Sep 17 00:00:00 2001 From: LunaStev Date: Sat, 10 Oct 2026 01:42:57 +0900 Subject: [PATCH 1/9] feat: improve Wave newcomer onboarding --- frontend/src/i18n/index.ts | 22 ++++++++++++++++ frontend/src/pages/CommunityPage.vue | 11 ++++++++ frontend/src/pages/HomePage.vue | 30 +++++++++++++++++----- frontend/src/services/homeOnboarding.ts | 11 ++++++++ frontend/src/ui/service-pages.css | 28 ++++++++++++++++++++ frontend/tests/document-navigation.test.ts | 26 +++++++++++++++++++ wavedoc/de/getting-started/install.md | 6 +++++ wavedoc/en/getting-started/install.md | 6 +++++ wavedoc/es/getting-started/install.md | 6 +++++ wavedoc/id/getting-started/install.md | 6 +++++ wavedoc/ja/getting-started/install.md | 6 +++++ wavedoc/ko/getting-started/install.md | 6 +++++ wavedoc/ru/getting-started/install.md | 6 +++++ wavedoc/vi/getting-started/install.md | 6 +++++ wavedoc/zh/getting-started/install.md | 6 +++++ 15 files changed, 176 insertions(+), 6 deletions(-) create mode 100644 frontend/src/services/homeOnboarding.ts diff --git a/frontend/src/i18n/index.ts b/frontend/src/i18n/index.ts index 21d5309..0a0417e 100644 --- a/frontend/src/i18n/index.ts +++ b/frontend/src/i18n/index.ts @@ -11,6 +11,17 @@ const locale = ref(initialLocale) const messages: Record> = { en: { + 'home.languageTitle': 'Wave programming language', + 'home.languageIntro': 'A general-purpose language built as a modern evolution of C, with native compilation, explicit types, and direct control for applications, command-line tools, and systems software.', + 'home.developmentStatus': 'Wave is in active pre-beta development. Syntax and toolchain contracts may change between releases.', + 'home.exampleTitle': 'Your first Wave program', + 'home.exampleSave': 'Save this complete program as main.wave:', + 'home.exampleRun': 'After installing Wave, run this command in the directory containing main.wave:', + 'home.exampleOutput': 'Output:', + 'community.welcomeTitle': 'Welcome to the Wave community', + 'community.welcomeBody': 'Introduce yourself, share what you are building, or discuss Wave. For help, include your operating system, Wave version, a small example, and the full error message.', + 'community.askQuestion': 'Ask a question', + 'community.contribute': 'Contribute to Wave', 'nav.toolchains': 'Toolchains', 'brand.subtitle': 'Platform', 'nav.docs': 'Documentation', @@ -749,6 +760,17 @@ const messages: Record> = { 'register.title': 'Create a Wave account', }, ko: { + 'home.languageTitle': 'Wave 프로그래밍 언어', + 'home.languageIntro': 'Wave는 C를 현대적으로 발전시킨 범용 언어입니다. 네이티브 컴파일, 명시적 타입, 직접적인 제어를 바탕으로 애플리케이션, 명령줄 도구, 시스템 소프트웨어를 만듭니다.', + 'home.developmentStatus': 'Wave는 현재 pre-beta 단계에서 활발히 개발 중입니다. 릴리즈 사이에 문법과 툴체인 규약이 바뀔 수 있습니다.', + 'home.exampleTitle': '첫 Wave 프로그램', + 'home.exampleSave': '다음 전체 프로그램을 main.wave로 저장하세요:', + 'home.exampleRun': 'Wave를 설치한 뒤 main.wave가 있는 디렉터리에서 다음 명령을 실행하세요:', + 'home.exampleOutput': '실행 결과:', + 'community.welcomeTitle': 'Wave 커뮤니티에 오신 것을 환영합니다', + 'community.welcomeBody': '자기소개를 하거나 만들고 있는 프로젝트를 공유하고 Wave에 대해 이야기해 보세요. 도움이 필요하면 운영체제, Wave 버전, 작은 재현 예제와 오류 메시지 전문을 함께 알려 주세요.', + 'community.askQuestion': '질문하기', + 'community.contribute': 'Wave에 기여하기', 'nav.toolchains': '툴체인', 'brand.subtitle': '플랫폼', 'nav.docs': '문서', diff --git a/frontend/src/pages/CommunityPage.vue b/frontend/src/pages/CommunityPage.vue index 24994fc..cdbe537 100644 --- a/frontend/src/pages/CommunityPage.vue +++ b/frontend/src/pages/CommunityPage.vue @@ -412,6 +412,17 @@ watchEffect(() => {
+
+

{{ t('community.welcomeTitle') }}

+

{{ t('community.welcomeBody') }}

+ +

{{ t('community.englishOnly') }}

+
{{ t('community.showcaseEyebrow') }}

{{ t('community.showcaseHeading') }}

diff --git a/frontend/src/pages/HomePage.vue b/frontend/src/pages/HomePage.vue index d1a1ddb..b38c004 100644 --- a/frontend/src/pages/HomePage.vue +++ b/frontend/src/pages/HomePage.vue @@ -4,6 +4,7 @@ import { computed, onMounted, ref } from 'vue' import GitHubMark from '../components/icons/GitHubMark.vue' import { useI18n } from '../i18n' +import { homeDocumentationLinks, firstWaveProgram } from '../services/homeOnboarding' import { getCommunityThreads, getCommunitySpaces, @@ -31,11 +32,9 @@ const installCommand = computed(() => installPlatform.value === 'windows' ? 'irm https://wave-lang.dev/install.ps1 -OutFile install.ps1; powershell -ExecutionPolicy Bypass -File .\\install.ps1' : 'curl -fsSL https://wave-lang.dev/install.sh | bash') -const docs = computed(() => [ - { path: 'getting-started/install', label: t('docs.installation'), detail: t('docs.installation.detail') }, - { path: 'getting-started/overview', label: t('docs.firstProgram'), detail: t('docs.firstProgram.detail') }, - { path: 'reference/syntax-quick-reference', label: t('docs.language'), detail: t('docs.language.detail') }, -]) +const docs = computed(() => homeDocumentationLinks.map((item) => ({ + ...item, label: t(item.label), detail: t(item.detail), +}))) function authorName(author: string) { const label = author.replace(/\s*<[^>]+>\s*$/, '').trim() @@ -98,10 +97,29 @@ onMounted(async () => {