Skip to content
Open
Show file tree
Hide file tree
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
13 changes: 13 additions & 0 deletions .github/workflows/desktop-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Desktop Installer Release (main)
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -49,7 +51,18 @@ jobs:
$ver = "1.0.$env:GITHUB_RUN_NUMBER"
& .\scripts\package-desktop.ps1 -Configuration Release -AppVersion $ver -ReleaseTag latest

- name: Upload Installer Artifact
uses: actions/upload-artifact@v4
with:
name: DevDialogue-Setup-x64
path: |
dist/DevDialogue-Setup-*.exe
dist/DevDialogue-Bootstrap-*-x64.exe
dist/latest.json
if-no-files-found: error

- name: Publish Release to GitHub Releases (tag: latest)
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
uses: softprops/action-gh-release@v2
with:
tag_name: latest
Expand Down
64 changes: 50 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ An interactive technical, behavioral, and language interview simulation platform
| :------------------- | :--------------------------------------- | :------------------------------------------------------------------------------ |
| **Monorepo** | **Turborepo** + **pnpm v12** | Fast caching, script orchestration, and workspace isolation |
| **Frontend** | **Next.js 14** (App Router) + TypeScript | Responsive UI, interactive chat room, scorecard dashboard |
| **Design System** | **Tailwind CSS** + **Geist Font** | High-craft UI based on David Sanders Taste & Anthropic Frontend standards |
| **Desktop Client** | **Qt 6 (QML)** + **C++20** | Native high-performance client, offline AI engine, 3D avatar, DirectShow webcam |
| **Design System** | **Tailwind CSS** / **Geist Design** | High-craft UI based on David Sanders Taste & Anthropic Frontend standards |
| **State Management** | **Zustand** | Session persistence, client tokens, and instantaneous Admin/User mode toggle |
| **Backend** | **ASP.NET Core (.NET 9)** + C# | High-performance REST API, session state machine, rate limits, security |
| **Database & Auth** | **Supabase** (PostgreSQL 16 + JWT) | Relational storage for users, question banks, and JSONB transcripts |
Expand All @@ -37,12 +38,17 @@ dev-dialogue/
│ │ ├── src/components/ # UI components (Navbar, ChatRoom, PerformanceReport, etc.)
│ │ ├── src/lib/ # Typed API client, Supabase client, utilities
│ │ └── src/store/ # Zustand auth & dynamic view-mode store
│ └── api/ # ASP.NET Core Web API
│ ├── Controllers/ # Auth, Interviews, AdminQuestions, Health
│ ├── Data/ # AppDbContext (PostgreSQL / In-Memory fallback)
│ ├── Models/ # Entities (User, Interview, QuestionBank) & DTOs
│ ├── Security/ # JWT validation & [RequireRole("admin")] attribute
│ └── Services/AI/ # IAiService (MockAiService + CloudAiService)
│ ├── api/ # ASP.NET Core Web API
│ │ ├── Controllers/ # Auth, Interviews, AdminQuestions, Health
│ │ ├── Data/ # AppDbContext (PostgreSQL / In-Memory fallback)
│ │ ├── Models/ # Entities (User, Interview, QuestionBank) & DTOs
│ │ ├── Security/ # JWT validation & [RequireRole("admin")] attribute
│ │ └── Services/AI/ # IAiService (MockAiService + CloudAiService)
│ └── desktop/ # Native Qt 6 / C++20 desktop client (Offline & i18n)
│ ├── include/ # Models, Services, ViewModels
│ ├── src/ # Implementation files
│ ├── qml/ # Views, Styles, Components (Geist UI)
│ └── tests/ # GoogleTest & Qt Test suite
│
├── packages/
│ └── api-contracts/ # Shared TypeScript interfaces & DTO contracts
Expand All @@ -56,6 +62,18 @@ dev-dialogue/

---

### 💻 Desktop Client & Windows Installer

For desktop users, pre-built standalone Windows installers are distributed directly via **GitHub Releases** and **Pull Request Artifacts** — **no terminal commands, SDKs, or manual building required**:

- **Latest Windows Installer:** [Download `DevDialogue-Setup-x64.exe`](https://github.com/iberikofer/dev-dialogue/releases/latest)
- **Online Bootstrapper (2 MB):** [Download `DevDialogue-Bootstrap-x64.exe`](https://github.com/iberikofer/dev-dialogue/releases/latest)
- **Pull Request Builds:** Download the ready-to-test installer artifact directly from the **Summary → Artifacts** tab of any Pull Request.

Simply double-click the `.exe` installer. It sets up shortcuts in the Start Menu and Desktop, bundled with the Qt 6 runtime, DirectShow webcam, Speech-to-Text, and the **Interview Preparation** («Підготовка до співбесід») module.

---

### 🛠 Quick Start for Development

#### 1. Install Dependencies
Expand Down Expand Up @@ -143,7 +161,8 @@ The AI subsystem is engineered for zero-dependency offline prototyping and seaml
| :------------------- | :------------------------------------------- | :-------------------------------------------------------------------- |
| **Монорепозиторій** | **Turborepo** + **pnpm v12** | Кешування, оркестрація збірок, лінтингу та воркспейсів |
| **Frontend** | **Next.js 14** (App Router) + TypeScript | Користувацький інтерфейс, інтерактивний чат, дашборд |
| **Дизайн-система** | **Tailwind CSS** + **Шрифт Geist** | High-craft дизайн на базі стандартів David Sanders Taste та Anthropic |
| **Десктоп-клієнт** | **Qt 6 (QML)** + **C++20** | Нативний застосунок, офлайн AI-рушій, 3D-аватар, DirectShow веб-камера |
| **Дизайн-система** | **Tailwind CSS** / **Geist Design** | High-craft дизайн на базі стандартів David Sanders Taste та Anthropic |
| **State Management** | **Zustand** | Стан сесії, збереження токенів, миттєвий перемикач режимів адміна |
| **Backend** | **ASP.NET Core (.NET 9)** + C# | REST API, життєвий цикл сесій, ліміти, рольова безпека |
| **Database & Auth** | **Supabase** (PostgreSQL 16 + JWT) | Збереження користувачів, банку питань, транскриптів (JSONB) |
Expand All @@ -163,12 +182,17 @@ dev-dialogue/
│ │ ├── src/components/ # UI компоненти (Navbar, ChatRoom, PerformanceReport, тощо)
│ │ ├── src/lib/ # Typed API client, Supabase клієнт, утиліти
│ │ └── src/store/ # Zustand auth & view-mode store
│ └── api/ # ASP.NET Core Web API
│ ├── Controllers/ # Auth, Interviews, AdminQuestions, Health
│ ├── Data/ # AppDbContext (PostgreSQL / In-Memory fallback)
│ ├── Models/ # Entities (User, Interview, QuestionBank) & DTOs
│ ├── Security/ # JWT валідація, [RequireRole("admin")] атрибут
│ └── Services/AI/ # IAiService (MockAiService + CloudAiService)
│ ├── api/ # ASP.NET Core Web API
│ │ ├── Controllers/ # Auth, Interviews, AdminQuestions, Health
│ │ ├── Data/ # AppDbContext (PostgreSQL / In-Memory fallback)
│ │ ├── Models/ # Entities (User, Interview, QuestionBank) & DTOs
│ │ ├── Security/ # JWT валідація, [RequireRole("admin")] атрибут
│ │ └── Services/AI/ # IAiService (MockAiService + CloudAiService)
│ └── desktop/ # Нативний клієнт Qt 6 / C++20 (Офлайн та i18n)
│ ├── include/ # Моделі, сервіси, ViewModels
│ ├── src/ # C++ реалізація
│ ├── qml/ # Екрани, стилі, компоненти (Geist UI)
│ └── tests/ # Набір тестів GoogleTest та Qt Test
│
├── packages/
│ └── api-contracts/ # Спільні TypeScript типи та DTO контракти
Expand All @@ -182,6 +206,18 @@ dev-dialogue/

---

### 💻 Десктопний клієнт та Windows-інсталятор

Для користувачів десктопної версії готові інсталятори поширюються автоматично через **GitHub Releases** та артефакти **Pull Request** — **без потреби виконувати будь-які команди в терміналі чи встановлювати SDK**:

- **Останній Windows-інсталятор:** [Завантажити `DevDialogue-Setup-x64.exe`](https://github.com/iberikofer/dev-dialogue/releases/latest)
- **Легкий онлайн-завантажувач (2 МБ):** [Завантажити `DevDialogue-Bootstrap-x64.exe`](https://github.com/iberikofer/dev-dialogue/releases/latest)
- **Збірки з Pull Request:** Завантажуйте готовий для тестування інсталятор прямо із вкладки **Summary → Artifacts** на сторінці будь-якого Pull Request.

Просто двічі клікніть по завантаженому файлу `.exe` інсталятора. Він автоматично створить ярлики в меню «Пуск» та на робочому столі, встановить середовище Qt 6, DirectShow веб-камеру, Speech-to-Text та новий модуль **«Підготовка до співбесід»**.

---

### 🛠 Швидкий старт для розробки

#### 1. Встановлення залежностей
Expand Down
13 changes: 13 additions & 0 deletions apps/desktop/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ set(DESKTOP_UI_VIEWMODEL_SOURCES
src/viewmodels/FormValidator.cpp
src/viewmodels/InterviewListModel.cpp
src/viewmodels/MessageListModel.cpp
src/viewmodels/PreparationViewModel.cpp
src/viewmodels/QuestionListModel.cpp
src/viewmodels/ReportViewModel.cpp
src/viewmodels/SettingsViewModel.cpp
Expand All @@ -70,6 +71,7 @@ set(DESKTOP_UI_VIEWMODEL_HEADERS
include/viewmodels/FormValidator.hpp
include/viewmodels/InterviewListModel.hpp
include/viewmodels/MessageListModel.hpp
include/viewmodels/PreparationViewModel.hpp
include/viewmodels/QuestionListModel.hpp
include/viewmodels/ReportViewModel.hpp
include/viewmodels/SettingsViewModel.hpp
Expand All @@ -88,6 +90,7 @@ add_executable(DevDialogue

# Models & Contracts
include/models/ApiContracts.hpp
include/models/PreparationModels.hpp

# Network
src/network/ApiClient.cpp
Expand All @@ -104,6 +107,8 @@ add_executable(DevDialogue
include/services/AvatarWebViewHost.hpp
include/services/MicrophoneService.hpp
include/services/WebcamService.hpp
include/services/IPreparationService.hpp
include/services/DemoPreparationService.hpp
src/services/InMemorySecureStorage.cpp
src/services/QtKeychainSecureStorage.cpp
src/services/AuthService.cpp
Expand All @@ -112,6 +117,7 @@ add_executable(DevDialogue
src/services/AvatarWebViewHost.cpp
src/services/MicrophoneService.cpp
src/services/WebcamService.cpp
src/services/DemoPreparationService.cpp

# ViewModels
src/viewmodels/AuthViewModel.cpp
Expand All @@ -129,6 +135,7 @@ endif()

target_include_directories(DevDialogue PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/third_party
${CMAKE_CURRENT_SOURCE_DIR}/third_party/webview2/build/native/include
)

Expand Down Expand Up @@ -250,6 +257,7 @@ qt_add_qml_module(DevDialogue
qml/views/LoginView.qml
qml/views/DashboardView.qml
qml/views/SetupView.qml
qml/views/PreparationView.qml
qml/views/ChatRoomView.qml
qml/views/ReportView.qml
qml/views/AdminView.qml
Expand Down Expand Up @@ -279,11 +287,13 @@ if(GTest_FOUND)
tests/unit/TestFormValidator.cpp
tests/unit/TestListModels.cpp
tests/unit/TestViewModels.cpp
tests/unit/TestPreparation.cpp

# Headers for AUTOMOC
include/core/AppConfig.hpp
include/core/Constants.hpp
include/models/ApiContracts.hpp
include/models/PreparationModels.hpp
include/network/ApiClient.hpp
include/network/NetworkEndpoints.hpp
include/services/ISecureStorage.hpp
Expand All @@ -292,6 +302,8 @@ if(GTest_FOUND)
include/services/AuthService.hpp
include/services/InterviewService.hpp
include/services/AdminService.hpp
include/services/IPreparationService.hpp
include/services/DemoPreparationService.hpp
include/viewmodels/NavigationViewModel.hpp
${DESKTOP_UI_VIEWMODEL_HEADERS}

Expand All @@ -303,6 +315,7 @@ if(GTest_FOUND)
src/services/AuthService.cpp
src/services/InterviewService.cpp
src/services/AdminService.cpp
src/services/DemoPreparationService.cpp
src/viewmodels/NavigationViewModel.cpp
${DESKTOP_UI_VIEWMODEL_SOURCES}
)
Expand Down
42 changes: 42 additions & 0 deletions apps/desktop/include/models/PreparationModels.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#pragma once

#include <QString>
#include <QVector>

namespace devdialogue::models {

enum class PreparationTopicStatus {
Known,
NotMentioned,
Unclear
};

enum class TopicPriority {
High,
Medium,
Low
};

struct StudyMaterial {
QString title;
QString url;
};

struct PreparationTopic {
QString id;
QString title;
QString category;
PreparationTopicStatus status{PreparationTopicStatus::NotMentioned};
QString reason;
TopicPriority priority{TopicPriority::Medium};
QVector<StudyMaterial> materials;
};

struct PreparationPlanResult {
QString summary;
QVector<PreparationTopic> topics;
int totalTopics{0};
int coveredTopics{0};
};

} // namespace devdialogue::models
63 changes: 63 additions & 0 deletions apps/desktop/include/services/DemoPreparationService.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#pragma once

#include <QObject>
#include <QStringList>
#include "services/IPreparationService.hpp"

namespace devdialogue::services {

class DemoPreparationService : public QObject, public IPreparationService {
Q_OBJECT

public:
explicit DemoPreparationService(QObject* parent = nullptr);
~DemoPreparationService() override = default;

void analyzeProfile(
const QString& direction,
const QString& level,
const QString& userDescription,
const QString& language,
std::function<void(const models::PreparationPlanResult& result, const QString& error)> callback
) override;

// Helper for direct deterministic synchronous evaluation (useful for unit tests without waiting)
models::PreparationPlanResult evaluateSynchronously(
const QString& direction,
const QString& level,
const QString& userDescription,
const QString& language
) const;

private:
struct TopicDefinition {
QString id;
QString titleEn;
QString titleUk;
QString categoryEn;
QString categoryUk;
models::TopicPriority basePriority;
QStringList keywords;
QVector<models::StudyMaterial> materialsEn;
QVector<models::StudyMaterial> materialsUk;
bool isAdvanced;
bool isFundamental;
};

QVector<TopicDefinition> getDefinitionsForDirection(const QString& direction) const;
models::PreparationTopicStatus evaluateStatus(
const QString& descriptionLower,
const QStringList& keywords,
QString& outReason,
bool isUk
) const;

models::TopicPriority adjustPriority(
models::TopicPriority base,
bool isFundamental,
bool isAdvanced,
const QString& level
) const;
};

} // namespace devdialogue::services
22 changes: 22 additions & 0 deletions apps/desktop/include/services/IPreparationService.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#pragma once

#include <QString>
#include <functional>
#include "models/PreparationModels.hpp"

namespace devdialogue::services {

class IPreparationService {
public:
virtual ~IPreparationService() = default;

virtual void analyzeProfile(
const QString& direction,
const QString& level,
const QString& userDescription,
const QString& language,
std::function<void(const models::PreparationPlanResult& result, const QString& error)> callback
) = 0;
};

} // namespace devdialogue::services
4 changes: 3 additions & 1 deletion apps/desktop/include/viewmodels/NavigationViewModel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ class NavigationViewModel : public QObject {
Setup = 2,
ChatRoom = 3,
Report = 4,
Admin = 5
Admin = 5,
Preparation = 6
};
Q_ENUM(ViewIndex)

Expand All @@ -36,6 +37,7 @@ class NavigationViewModel : public QObject {
Q_INVOKABLE void navigateToChat(const QString &interviewId);
Q_INVOKABLE void navigateToReport(const QString &interviewId);
Q_INVOKABLE void navigateToAdmin();
Q_INVOKABLE void navigateToPreparation();

signals:
void currentViewIndexChanged(int newIndex);
Expand Down
Loading
Loading