Skip to content

feat(desktop): add Interview Preparation tab, fix installer runtime dependencies & enable PR installer artifacts - #14

Open
DidoraRudenko wants to merge 1 commit into
mainfrom
feature/desktop-offline-and-i18n
Open

DidoraRudenko wants to merge 1 commit into
mainfrom
feature/desktop-offline-and-i18n

Conversation

@DidoraRudenko

Copy link
Copy Markdown
Collaborator

Summary

This PR introduces the Interview Preparation («Підготовка до співбесід») module into the Qt 6 / C++20 desktop client, fixes Windows installer runtime packaging for MSVC/vcpkg builds, and automates zero-console installer artifact generation on every Pull Request.


Key Changes

1. Interview Preparation Module (apps/desktop)

  • Architecture: Implemented clean MVVM pattern adhering to project standards:
    • PreparationModels.hpp: Domain entities (PreparationTopic, StudyMaterial, PreparationPlanResult, statuses, priorities).
    • IPreparationService.hpp & DemoPreparationService.cpp: Deterministic keyword profile analyzer with support for negation («не знаю», «never used»), qualifiers («трохи», «basic»), and priority ranking across 5 tracks (Frontend, Backend, DevOps, QA, PM).
    • PreparationViewModel.hpp/.cpp: Reactive state machine with validation rules, async state transitions, language synchronization (uiLanguage), and safe memory lifecycle.
  • UI & Design (Geist Design System):
    • PreparationView.qml: Polished UI featuring interactive profile setup, animated topic breakdown, direct documentation study links, and responsive scrolling with ThemedScrollBar.
    • Added SidebarItem with canonical book-open icon and Ctrl+P shortcut.
    • StackLayout routing registered at index 6 in Main.qml.
  • Testing: Added 12 automated unit tests (tests/unit/TestPreparation.cpp) covering deterministic analysis, negation handling, validation, and async lifecycle (100% pass).

2. Desktop Runtime & Windows DLL Loading Fixes

  • Windows DLL Resolution: Added SetDllDirectoryW(appPath) in main.cpp to resolve dynamic QML style plugins (qtquickcontrols2plugin, etc.) when launched from any working directory.
  • QML Engine Import Paths: Added applicationDirPath() + "/qml" to QQmlApplicationEngine import paths.
  • DirectShow Header: Bundled lightweight COM interface definitions (third_party/qedit.h) for MSVC builds.
  • Headless Unit Tests: Switched test runner to QCoreApplication in tests/main.cpp to prevent GUI platform plugin crashes in headless environments.

3. Windows Installer Fixes (scripts/package-desktop.ps1 & installer/dev-dialogue.iss)

  • vcpkg Toolchain Support: Updated scripts/package-desktop.ps1 to auto-detect windeployqt.exe and qmlimportscanner.exe within vcpkg_installed in addition to MSYS2.
  • Dependency Closure: Fixed missing MSVC runtime dependencies (double-conversion.dll, zstd.dll, pcre2-16.dll, libpng16.dll, freetype.dll, harfbuzz.dll, zlib1.dll) by staging them directly from the build output directory into dist/stage.
  • Pure GUI Installation: Marked the 6 GB local AI model download task as optional (Flags: unchecked) in installer/dev-dialogue.iss, preventing PowerShell console popups and allowing instantaneous, clean Windows setup.

4. CI/CD & Zero-Console Distribution

  • Pull Request Artifacts: Updated .github/workflows/desktop-release.yml with pull_request trigger and actions/upload-artifact@v4. Every PR now builds the standalone Windows installer and attaches it directly to the PR summary under Artifacts — testers and reviewers can download and run it without touching a terminal.
  • Documentation: Updated README.md (EN & UK) with desktop application overview, monorepo structure, and direct installer download links.

Verification & Testing

  • Unit Tests: DevDialogueTests.exe --gtest_filter=*Preparation* passes all 12 tests.
  • Full Test Suite: All 104 desktop tests pass successfully.
  • Runtime Verification: Executable and staged deployment launch cleanly, initialize QML, and run stably without DLL or plugin errors.
  • Packaging Test: Verified that scripts/package-desktop.ps1 stages 208 files (77.5 MB) including all MSVC DLLs, PreparationView.qml, and qmldir.
  • Localization: Verified seamless runtime switching between Ukrainian and English for all preparation topics, statuses, and UI labels.

This branch has not been deployed

No deployments
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