Conversation
… 5K+ Co-authored-by: tayyebi <14053493+tayyebi@users.noreply.github.com>
…ance, Application, and OS Co-authored-by: tayyebi <14053493+tayyebi@users.noreply.github.com>
…grids Co-authored-by: tayyebi <14053493+tayyebi@users.noreply.github.com>
…(mobile, tablet, desktop, large-desktop, 4k, ultra-wide) Co-authored-by: tayyebi <14053493+tayyebi@users.noreply.github.com>
…re, improve region indicators Co-authored-by: tayyebi <14053493+tayyebi@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update UI templates and implement mobile-first design
Add OpenAPI-aligned fields and mobile-first responsive design (300px-4K+)
Jan 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates data structures to match new OpenAPI schema and implements comprehensive responsive design supporting 300px to 5K+ displays.
API Layer Changes
Structs updated with new optional fields:
Region:abbr,image,is_active,is_out_of_stock,overall_activeness,ddos_activeness,is_premium,is_hidden,has_offset_price,max_discount_percent,position,configInstanceView: Raw fields (vcpu_count,ram,disk,product_id,network_status,class,is_ddos_protected,inserted_at) +ExtraResourcestruct (cpu,ram_in_gb,disk_in_gb)Application:price,pricing_type,is_active,tag,is_experimental,os_family,os_listOsItem:is_activeAll API parsing logic updated to extract new fields. Legacy Region fields (
slug,country,city,latitude,longitude) retained as optional for backward compatibility.Responsive CSS Architecture
Replaced monolithic responsive.css with 6 dedicated files:
Enhanced base styles:
clamp()scaling (300px-5K+)auto-fitTemplate Updates
is_activedata-labelattributes for mobile card layoutgrid-auto-fitAll templates wrapped in
.containerfor consistent max-width behavior across breakpoints.Mobile Table Pattern
Mobile CSS transforms tables to cards using
data-labelfor field names, maintaining accessibility while optimizing for small screens.Original prompt
Update UI Templates + Implement Rich Mobile-First Responsive Design
Objective
Part 1: Template Updates for New Schema
1.1 Region Template Updates
Old Region struct fields (REMOVED):
slug,country,city,latitude,longitudeNew Region struct fields (ADD):
abbr,image,is_active,is_out_of_stock,overall_activeness,ddos_activeness,is_premium,is_hidden,has_offset_price,max_discount_percent,position,configFiles to update:
templates/step_1.html- Region selection wizardChanges needed:
1.2 Product Template Updates
Old Product struct (REMOVED):
display_name,description,tags,spec_entries,price_entries,cpu,ram,storage,bandwidth(as strings)New Product struct (ADD):
plan(nested object withspecification:cpu,ram,storage,bandwidth_in_tb)price_items(array withmonthly_price,hourly_price, etc.)region_id,plan_id,network_max_rate,discount_percent,overall_activeness,ddos_activenessFiles to update:
templates/step_3_fixed.html- Product selectiontemplates/step_7.html- Review pagetemplates/resize.html- Resize optionsChanges needed:
1.3 Instance Template Updates
Old Instance struct:
status_display,vcpu_count_display,ram_display,disk_displayNew Instance struct (ADD):
vcpu_count,ram,disk,inserted_at,product_id,network_status,extra_resource,class,is_ddos_protected, etc.#[serde(skip)]Files to update:
templates/instances.html- Instance listtemplates/instance_detail.html- Instance detailstemplates/change_os_instance.htmltemplates/change_pass_instance.htmltemplates/resize.htmlChanges needed:
1.4 Application Template Updates
New Application fields:
price,pricing_type,is_active,tag,is_experimental,os_family,os_listFiles to update:
templates/step_4.html- Application ...This pull request was created from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.