-
Notifications
You must be signed in to change notification settings - Fork 0
Transform start page into vibe coding trainee onboarding with live API integration #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: mrauhala <[email protected]>
|
Visit the preview URL for this PR (updated for commit 39ba48c): https://vibe-fmi--pr5-copilot-change-start-q81mvndo.web.app (expires Sun, 28 Dec 2025 00:31:21 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: fdcba6c351e50e7333c95efd1d7e1954c7a17328 |
src/App.tsx
Outdated
| <ListItem> | ||
| <ListItemText | ||
| primary="4. Submit a Pull Request" | ||
| secondary="Once your feature is ready, create a pull request for review" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coding agent does that for the users. Maybe say something like that coding agent creates pull request and plan and result can be viewed from there and create additional button to pr page of the repo. Also this repo has GitHub action that deploys pr to firebase hosting for previewing, but that requires allowing the workflow to run when agent is done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated in commit 82457c7. Step 3 now clarifies that the coding agent creates the pull request, and step 4 is renamed to "Review and Preview" with information about the automatic Firebase Hosting deployment.
Added a "View Pull Requests" button to navigate to the PRs page.
src/App.tsx
Outdated
| <strong>API Endpoint:</strong> https://opendata.fmi.fi/edr | ||
|
|
||
| <Typography variant="body2" paragraph> | ||
| <strong>Default Collection:</strong> pal_skandinavia (PAL-AROME model for Scandinavia) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Model is called MEPS even though id is pal_skandinavia
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in commit 82457c7. Changed from "PAL-AROME model" to "MEPS".
mrauhala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot give maybe example result from the Oslo request that you put on . Date has to be from fri 28.11.2025.
…name, add example response Co-authored-by: mrauhala <[email protected]>
Added in commit 82457c7. Updated the API example to use Friday, Nov 28, 2025 and added an "Example Response" section showing the CoverageJSON format with sample weather data (Temperature: 2.3°C, Wind: 4.5 m/s, Cloud Cover: 65%). |
src/App.tsx
Outdated
| The OGC Environmental Data Retrieval (EDR) API provides a standard way to query | ||
| and retrieve environmental data. This application uses the FMI Open Data EDR | ||
| endpoint. | ||
| The API returns data in CoverageJSON format. Here's a sample of what you might receive: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot I don't want hardcoded sample, but actual response from the above request. And not the coverage json, but maybe just table of parameters and their values. There is already beginning of the edrapi implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implemented in commit 55a78fd. Removed the hardcoded JSON sample and replaced it with a real API call using the existing getPositionData function from edrApi.ts. The response is now displayed as a clean table showing parameter names, values, and units.
The implementation includes:
- Live API data fetching on page load
- Material UI table with Parameter, Value, and Unit columns
- Loading spinner while fetching
- Error handling with informative messages
- Refresh button to reload data
When the API is accessible (e.g., on Firebase Hosting), the table will display real weather data from the FMI EDR API for Oslo on Nov 28, 2025.
Co-authored-by: mrauhala <[email protected]>
Co-authored-by: mrauhala <[email protected]>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
…-hour time range
- Update interface to match actual API response structure
- Handle symbol as object with {type, value} properties
- Display weather data for multiple time steps in table
- Add Time column to show hourly forecasts
- Update API query to fetch 3-hour range (12:00-15:00 UTC)
- Add proper error handling and logging
- Format parameter names for better readability




Replaces the EDR collection viewer with comprehensive onboarding instructions for trainees learning to build a weather app through issue-driven development, featuring live weather data from the FMI Open Data API.
Changes
Technical Implementation
Live Weather Data Display
edrApi.tsservice using thegetPositionDatafunctionAPI Example
The page demonstrates real-world API usage with live data:
Weather parameters are displayed in an easy-to-read table format with columns for Parameter, Value (formatted to 1 decimal place), and Unit.
Updates Based on Feedback
Screenshots
Before: Technical collection viewer

After: Trainee-focused onboarding with live API data

Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.