Open
Fix passenger count display and force client refresh of updated ticket UI#10
Conversation
Agent-Logs-Url: https://github.com/RoToR003/Privet24/sessions/e3d0e7c4-55ef-4805-952a-8be273d30582 Co-authored-by: RoToR003 <112348330+RoToR003@users.noreply.github.com>
Agent-Logs-Url: https://github.com/RoToR003/Privet24/sessions/e3d0e7c4-55ef-4805-952a-8be273d30582 Co-authored-by: RoToR003 <112348330+RoToR003@users.noreply.github.com>
Agent-Logs-Url: https://github.com/RoToR003/Privet24/sessions/3cfcdb2c-56cb-4440-9180-53a082a3e70a Co-authored-by: RoToR003 <112348330+RoToR003@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
RoToR003
April 4, 2026 16:40
View session
There was a problem hiding this comment.
Pull request overview
This PR fixes incorrect passenger count rendering and aligns the “Пасажири” label styling with other ticket metadata labels, then forces rollout by invalidating cached assets via version bumps in HTML and the Service Worker.
Changes:
- Fix passenger count display logic by removing the offset subtraction and enforcing a minimum displayed value of 1.
- Align “Пасажири” label typography by removing the dedicated smaller label style and using the shared
.data-label. - Invalidate stale client caches by bumping
index.jsand Service Worker registration/versioned cache keys fromv=54tov=55.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| transport.html | Bumps index.js query version to force clients to fetch updated JS. |
| settings.html | Bumps index.js query version to force clients to fetch updated JS. |
| qr.html | Bumps index.js query version to force clients to fetch updated JS. |
| payment.html | Bumps index.js query version to force clients to fetch updated JS. |
| index.html | Removes .data-label-passengers style and bumps index.js + SW registration versions. |
| index.js | Fixes passenger display rendering and bumps SW registration URL version. |
| service-worker.js | Updates cache name and precache URL for index.js?v=55 to invalidate old caches. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Пасажириin ticket cards could still show0, and theПасажириlabel appeared smaller thanДата/Час. The rendering logic and styling were corrected, then stale Service Worker caches were invalidated so clients receive the fix immediately.Passenger value rendering
1:Label typography alignment
.data-label-passengers)..data-labelstyle, matchingДатаandЧас.Cache invalidation / rollout
index.js?v=54toindex.js?v=55across app pages.service-worker.js?v=55.