I am going to inspect the existing files in the project to understand the structure and start building our interactive application with the Pizza & Open-Meteo Weather dashboard, along with an interactive Angular code workspace and git review playground. Let's list the files first.
I will read package.json to check which icon libraries or UI dependencies are already installed.
I will install lucide-react so that we can rely completely on crisp, architectural vector SVG icons without using any emojis, maintaining a minimal, clean, and modern design as requested.
I will now install lucide-react.
I am going to inspect src/index.css and index.html to review the base CSS and HTML structure.
I will now check index.html.
I will now update index.html to give our web application an appropriate title and clean page attributes. Remember, as per your strict design constraints, we are not using any emojis or flashy background gradients.
I am going to update src/index.css to integrate typography rules (Inter and JetBrains Mono) and clean minimalist styling without any background gradients or pulsating indicators.
I am going to create src/types/weather.ts containing strict TypeScript interfaces for the Open-Meteo API JSON response and Belarusian city metadata without using any any types.
I will now create src/data/cities.ts containing coordinates, slugs, and delivery data for the 6 primary cities of Belarus, including Gomel (homel), Minsk, Brest, Grodno, Vitebsk, and Mogilev.
I am going to create src/services/weatherService.ts which handles communication with the Open-Meteo API using structured query parameter builders (avoiding manual URL concatenation as instructed), interprets WMO weather condition codes into clear Russian meteorological terms without emojis, calculates Beaufort wind speed categories in m/s, and includes an interactive error simulation mode for testing error handling logic.
I will now create src/data/pizzaMenu.ts with structured menu item data, nutritional information, prices in Belarusian ruble (BYN), and category filters for our Pizzeria component.
I will now create src/data/angularCodeSnippets.ts containing complete, well-documented Angular 18+ TypeScript source code for every step of the assignment, including Dependency Injection setup, strict typings, Observables with HttpParams, Signal management, custom pipes, and ActivatedRoute URL parameter synchronization.
I will now create src/components/Navbar.tsx providing minimalist navigation between the Pizzeria menu, the Weather API showcase, the Angular code inspection tab, and the Git Pull Request review environment. It includes a dark/light theme switch and vector icons from lucide-react without any emojis or background gradients.
I will now create src/components/WeatherView.tsx which serves as our main interactive weather monitor and open-meteo showcase, fulfilling all core and star tasks with precise error handling simulation, query param deep links, signal state debugging, and meteorological custom pipes without emojis.
I will now fix the JSX escaping for curly braces around .subscribe({ error: ... }) in src/components/WeatherView.tsx.
I will clean up unused imports in src/components/WeatherView.tsx and utilize generatedParams inside the technical breakdown block to explicitly demonstrate how HttpParams formulates the URL string.
I will now display the generatedParams inside the technical breakdown card in src/components/WeatherView.tsx.
I will now create src/components/PizzaView.tsx representing the existing Pizzeria project (Bella Napoli), featuring an authentic menu tailored to Belarusian cities, interactive cart customizers, price calculations in BYN, and a dynamic delivery status banner correlating with the weather network, all without using any emojis or flashy background gradients.
I will clean up the unused imports (Pizza, Clock) in src/components/PizzaView.tsx.
I will now create src/components/AngularCodeExplorer.tsx to provide an IDE-style code viewer featuring our complete Angular 18 TypeScript solution, homework requirement checks, copy-to-clipboard functionality, and technical commentary without using any emojis.
I will now clean up the unused imports and unused categories declaration in src/components/AngularCodeExplorer.tsx.
I will now create src/components/PullRequestView.tsx to provide an interactive Git Pull Request review environment from dev to master, featuring automated code audit rules, commit chronologies, and merge status controls without any emojis.
I will clean up the unused imports (GitBranch, Terminal) in src/components/PullRequestView.tsx.
I will now create the main entry application component in src/App.tsx. It orchestrates navigation across the four application spaces, manages real browser URL query parameters (?city=homel or ?city=minsk) to fulfill the star (*) task requirement, manages dark/light theme switching, and integrates a clean minimalist footer without using any emojis.
I will clean up the unused imports (Github, MapPin) in src/App.tsx.
I will now build the project using build_project to ensure that there are no TypeScript compilation errors, syntax issues, or broken dependencies.
Я создал полноценное веб-приложение «Bella Napoli & Meteo RB», которое объединяет в себе рабочее интерактивное демо метеорологической службы доставки для городов Республики Беларусь и Angular Developer Sandbox с полным исходным кодом решения домашнего задания по HttpClient и сигналам.
Соответствие строгим требованиям дизайна
- Отказ от эмодзи: Во всем приложении и коде не использовано ни одного эмодзи. В качестве визуальных ориентиров применяются архитектурные векторные SVG-иконки из
lucide-react (Sun, Cloud, CloudRain, Wind, Thermometer, MapPin, GitPullRequest, Code и др.).
- Никаких пульсирующих точек и фоновых градиентов: Выдержан современный минималистичный дизайн в нейтрально-графитовой (monochrome/zinc) палитры с аккуратными границами, моноширинной типографикой (
JetBrains Mono для параметров и URL) и поддержкой тёмного/светлого режима без ярких или размытых фонов.
Обзор функционала и выполнение заданий
1. Метеослужба и контроль доставки (Маршрут /weather)
- Кнопки выбора 6 городов РБ: Гомель (
homel), Минск (minsk), Брест (brest), Гродно (grodno), Витебск (vitebsk), Могилёв (mogilev).
- Реальные HTTP-запросы на Open-Meteo API: При клике на город запускается реальный запрос.
- Работа с сигналами (
weather и isLoading):
- При начале запроса включается лоадер с текстом "Загрузка актуальной погоды...", а старый JSON обнуляется (
weather.set(null)).
- Как только данные приходят, флаг
isLoading переходит в false, а типизированный ответ сохраняется в состоянии.
- Температура и скорость ветра (в м/с):
- Температура выводится в °C (с ощущаемой температурой и относительной влажностью).
- Скорость ветра и направление выводятся в метрах в секунду с симуляцией кастомного Angular Pipe (
| windSpeedMs), который классифицирует ветер (от слабого до свежего/сильного).
- Сценарий для
error внутри .subscribe(): Добавлен переключатель "Симуляция ошибки (error в .subscribe)", позволяющий протестировать корректное поведение интерфейса при падении сервера (HTTP 503 / сбой HttpClient).
2. Задание со звездочкой (*) — Авто-запрос через URL queryParams
- При клике на город браузерный URL обновляется (например,
?route=weather&city=homel).
- При перезагрузке страницы или переходе по прямой ссылке приложение считывает параметр
city (симуляция ActivatedRoute.queryParams), автоматически определяет координаты и запрашивает данные без дополнительных кликов.
3. Angular Код и Архитектура (Маршрут /code)
Встроенный интерактивный просмотрщик кода с кнопкой копирования, содержащий полностью готовые файлы для Angular 18/19:
app.config.ts: Настройка provideHttpClient(withFetch()).
weather.interface.ts: Полное описание структуры JSON без единого any.
weather.service.ts: Метод getWeather(), использующий HttpParams для построения строки запроса без ручной конкатенации строк.
weather.component.ts и .html: Реализация Angular Signals, подписка на ActivatedRoute.queryParams, обновление роута через Router.navigate и обработка сценария error.
wind-speed-ms.pipe.ts: Кастомный Pipe для красивого форматирования скорости ветра в м/с.
4. Пиццерия «Bella Napoli» & Git PR Workflow (Маршруты /pizza и /pr)
- Пиццерия: Интерактивное меню с фильтрацией пицц по категориям, конструктором корзины (в BYN) и статусом метеоусловий в выбранном городе, влияющим на скорость доставки курьером.
- Git Pull Request: Симулятор код-ревью ветки
dev ➔ master (PR #42). Вы можете проверить автоматический чек-лист выполнения всех пунктов ДЗ и нажать кнопку слияния в master.
Проверка сборки
Проект собран через команду npm run build — компилируется без замечаний и ошибок типизации.
Files built: index.html, src/index.css, src/types/weather.ts, src/data/cities.ts, src/services/weatherService.ts, src/data/pizzaMenu.ts, src/data/angularCodeSnippets.ts, src/components/Navbar.tsx, src/components/WeatherView.tsx, src/components/PizzaView.tsx, src/components/AngularCodeExplorer.tsx, src/components/PullRequestView.tsx, src/App.tsx