WIP: add collection_times (text-only display) #7950

Draft
RedAuburn wants to merge 2 commits from RedAuburn/collection_times-support into master
Member

Initial part of organicmaps/organicmaps#2431, pending the opening_hours parser re-write (organicmaps/organicmaps#7974)

<img width="300px" src="https://github.com/organicmaps/organicmaps/assets/26939824/cebd2bbd-2d5f-4556-a2f8-77635a04c3fd"/> Initial part of https://git.omaps.dev/organicmaps/organicmaps/issues/2431, pending the opening_hours parser re-write (https://git.omaps.dev/organicmaps/organicmaps/issues/7974)
vng (Migrated from github.com) reviewed 2024-04-18 15:58:57 +00:00
biodranik (Migrated from github.com) reviewed 2024-04-24 22:25:45 +00:00
biodranik (Migrated from github.com) left a comment

Will it be displayed properly in the UI? Does our UI support displaying single-time values, not ranges?

And what about the editor? It should have a different UI, right?

Which OSM objects have this feature?

Will it be displayed properly in the UI? Does our UI support displaying single-time values, not ranges? And what about the editor? It should have a different UI, right? Which OSM objects have this feature?
biodranik (Migrated from github.com) approved these changes 2024-04-26 19:35:58 +00:00
biodranik (Migrated from github.com) left a comment

I'm ok to add it to generator now and properly add into the UI/editor later. @vng WDYT?

I'm ok to add it to generator now and properly add into the UI/editor later. @vng WDYT?
biodranik (Migrated from github.com) reviewed 2024-07-01 21:59:59 +00:00
biodranik (Migrated from github.com) left a comment

Thanks! Can the same rendering for PP cell as for the opening hours be used instead of a plain string? Or does the OH rendering only work with ranges?

And is it hard to enable the Editor?

@euf maybe a hand holding a clock can distinguish opening hours vs collection times?

@kirylkaveryn would it be feasible to render "Collection times" small text on the cell like on the screenshot?

Thanks! Can the same rendering for PP cell as for the opening hours be used instead of a plain string? Or does the OH rendering only work with ranges? And is it hard to enable the Editor? @euf maybe a hand holding a clock can distinguish opening hours vs collection times? @kirylkaveryn would it be feasible to render "Collection times" small text on the cell like on the screenshot?
biodranik (Migrated from github.com) commented 2024-07-01 20:42:10 +00:00
    uk = Час збору

@strump right?

```suggestion uk = Час збору ``` @strump right?
biodranik (Migrated from github.com) commented 2024-07-01 20:45:01 +00:00

Would it be better to print collection_times closer to opening_hours?

Would it be better to print collection_times closer to opening_hours?
vng (Migrated from github.com) reviewed 2024-07-02 11:48:33 +00:00
vng (Migrated from github.com) commented 2024-07-02 11:48:33 +00:00

No, please, keep as-is in the end. Or skip this change at all.

No, please, keep as-is in the end. Or skip this change at all.
biodranik (Migrated from github.com) approved these changes 2024-07-02 17:33:02 +00:00
biodranik (Migrated from github.com) left a comment

i don't think the OH table works with points instead of ranges yet, but it's definitely something that should be added. Hopefully when i have more time.

Have you already tried it? Let's create an issue for that.

Another issue to create and fix later is to show the opening times collapsed by default, like on iOS (so only the Today line is visible), and only expand the opening hours/collection times if a user taps on the cell.

LGTM, @vng PTAL

> i don't think the OH table works with points instead of ranges yet, but it's definitely something that should be added. Hopefully when i have more time. Have you already tried it? Let's create an issue for that. Another issue to create and fix later is to show the opening times collapsed by default, like on iOS (so only the Today line is visible), and only expand the opening hours/collection times if a user taps on the cell. LGTM, @vng PTAL
This repo is archived. You cannot comment on pull requests.
No reviewers
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps-tmp#7950
No description provided.