Implement device analytics middleware for data-driven responsive design decisions#554
Draft
Implement device analytics middleware for data-driven responsive design decisions#554
Conversation
… tracking Co-authored-by: SIkebe <17608272+SIkebe@users.noreply.github.com>
| }; | ||
|
|
||
| _analytics.Add(analytics); | ||
| _logger.LogDebug("Recorded {DeviceType} request", deviceType); |
Check warning
Code scanning / CodeQL
Exposure of private information Medium
Copilot Autofix
AI 4 months ago
Copilot could not generate an autofix suggestion
Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.
Co-authored-by: SIkebe <17608272+SIkebe@users.noreply.github.com>
…ases Co-authored-by: SIkebe <17608272+SIkebe@users.noreply.github.com>
Co-authored-by: SIkebe <17608272+SIkebe@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add responsive navigation for mobile access analysis
Implement device analytics middleware for data-driven responsive design decisions
Dec 22, 2025
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.
Addresses the need to collect mobile/tablet/desktop access data to determine if additional responsive optimizations beyond existing Bootstrap navigation are justified based on a 30% mobile traffic threshold.
Changes
Analytics Infrastructure
DeviceAnalyticsService: Singleton service with concurrent data collection and device classification via UserAgent parsingDeviceAnalyticsMiddleware: Transparent request tracking across application (excludes/Analyticsendpoint)DeviceAnalytics,DeviceAnalyticsSummary,DeviceTypeenumDashboard UI
/Analyticspage with bilingual (EN/JP) supportDevice Classification Logic
Performance Optimizations
Testing
Current Responsive State
Bootstrap navbar-toggler already provides:
Screenshots
Analytics Dashboard (Desktop)

Mobile Navigation (375px)

Tablet Navigation (768px)

Usage
/Analyticsafter deploymentSee
ANALYTICS.mdfor technical details and device classification logic.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:
edge.microsoft.com/proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --ignore-certificate-errors --use-angle=swiftshader-webgl --ignore-certificate-errors --crashpad-handler-pid=6601 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/.com.microsoft.Edge.scoped_dir.cJ9PXQ --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,12820573873075244273,10548539892897506984,262144 --enable-features=msMetricsLogFastStartup,msSendMetricsLogOnClose --disable-features=IgnoreDuplicateNavs,PaintHolding,Prewarm --variations-seed-version --trace-process-track-uuid=3190708992871164437 --enable-logging=stderr(dns block)/proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --ignore-certificate-errors --use-angle=swiftshader-webgl --ignore-certificate-errors --crashpad-handler-pid=6602 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/.com.microsoft.Edge.scoped_dir.wXTNVl --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,12011732676175542562,4865515630464326742,262144 --enable-features=msMetricsLogFastStartup,msSendMetricsLogOnClose --disable-features=IgnoreDuplicateNavs,PaintHolding,Prewarm --variations-seed-version --trace-process-track-uuid=3190708992871164437 --enable-logging=stderr(dns block)/proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --ignore-certificate-errors --use-angle=swiftshader-webgl --ignore-certificate-errors --crashpad-handler-pid=6600 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/.com.microsoft.Edge.scoped_dir.6d1Idu --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,7442337410144660019,10814119633297112930,262144 --enable-features=msMetricsLogFastStartup,msSendMetricsLogOnClose --disable-features=IgnoreDuplicateNavs,PaintHolding,Prewarm --variations-seed-version --trace-process-track-uuid=3190708992871164437 --enable-logging=stderr(dns block)self.events.data.microsoft.com/proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --ignore-certificate-errors --use-angle=swiftshader-webgl --ignore-certificate-errors --crashpad-handler-pid=6600 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/.com.microsoft.Edge.scoped_dir.6d1Idu --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,7442337410144660019,10814119633297112930,262144 --enable-features=msMetricsLogFastStartup,msSendMetricsLogOnClose --disable-features=IgnoreDuplicateNavs,PaintHolding,Prewarm --variations-seed-version --trace-process-track-uuid=3190708992871164437 --enable-logging=stderr(dns block)/proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --ignore-certificate-errors --use-angle=swiftshader-webgl --ignore-certificate-errors --crashpad-handler-pid=6602 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/.com.microsoft.Edge.scoped_dir.wXTNVl --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,12011732676175542562,4865515630464326742,262144 --enable-features=msMetricsLogFastStartup,msSendMetricsLogOnClose --disable-features=IgnoreDuplicateNavs,PaintHolding,Prewarm --variations-seed-version --trace-process-track-uuid=3190708992871164437 --enable-logging=stderr(dns block)/proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --ignore-certificate-errors --use-angle=swiftshader-webgl --ignore-certificate-errors --crashpad-handler-pid=6601 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/.com.microsoft.Edge.scoped_dir.cJ9PXQ --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,12820573873075244273,10548539892897506984,262144 --enable-features=msMetricsLogFastStartup,msSendMetricsLogOnClose --disable-features=IgnoreDuplicateNavs,PaintHolding,Prewarm --variations-seed-version --trace-process-track-uuid=3190708992871164437 --enable-logging=stderr(dns block)www.bing.com/proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --ignore-certificate-errors --use-angle=swiftshader-webgl --ignore-certificate-errors --crashpad-handler-pid=6601 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/.com.microsoft.Edge.scoped_dir.cJ9PXQ --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,12820573873075244273,10548539892897506984,262144 --enable-features=msMetricsLogFastStartup,msSendMetricsLogOnClose --disable-features=IgnoreDuplicateNavs,PaintHolding,Prewarm --variations-seed-version --trace-process-track-uuid=3190708992871164437 --enable-logging=stderr(dns block)/proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --ignore-certificate-errors --use-angle=swiftshader-webgl --ignore-certificate-errors --crashpad-handler-pid=6600 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/.com.microsoft.Edge.scoped_dir.6d1Idu --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,7442337410144660019,10814119633297112930,262144 --enable-features=msMetricsLogFastStartup,msSendMetricsLogOnClose --disable-features=IgnoreDuplicateNavs,PaintHolding,Prewarm --variations-seed-version --trace-process-track-uuid=3190708992871164437 --enable-logging=stderr(dns block)/proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --ignore-certificate-errors --use-angle=swiftshader-webgl --ignore-certificate-errors --crashpad-handler-pid=6602 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/.com.microsoft.Edge.scoped_dir.wXTNVl --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,12011732676175542562,4865515630464326742,262144 --enable-features=msMetricsLogFastStartup,msSendMetricsLogOnClose --disable-features=IgnoreDuplicateNavs,PaintHolding,Prewarm --variations-seed-version --trace-process-track-uuid=3190708992871164437 --enable-logging=stderr(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 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.