Skip to content

Addition to the Construction Dialog for "End date unknown"#890

Open
mcliquid wants to merge 1 commit intoHelium314:modifiedfrom
mcliquid:feature/enhance-construction-dialog
Open

Addition to the Construction Dialog for "End date unknown"#890
mcliquid wants to merge 1 commit intoHelium314:modifiedfrom
mcliquid:feature/enhance-construction-dialog

Conversation

@mcliquid
Copy link

@mcliquid mcliquid commented Feb 11, 2026

I tried to improve the "It's under construction" dialog in the Road/Path Form. The date picker dialog has been replaced with a custom AlertDialog containing an embedded DatePicker, allowing the addition of a new "End date unknown" option. This provides a faster way to mark long-term construction without forcing the user to select an arbitrary future date. A short explanatory hint was added below the date picker to clarify when this option should be used. The existing behavior for short-term construction (using access:conditional) and long-term construction (switching to highway=construction with optional construction=*) remains unchanged. The new button simply triggers the specification of the construction value directly, without adding an opening_date.

Everything works fine in the app, but the UI could certainly be optimized, but I didn't want to make any more/deeper changes in the dialog; the changes have already gone further than I intended.

image

@Helium314
Copy link
Owner

I remember requiring an end date to avoid just leaving roads under construction for possibly a long time just because e.g. there was no sign how long a 2 week construction would take. So I'm afraid the might be convenient but could cause more damage than good.

Btw this is a bad time for working on Android dialogs, as they will be replaced with compose rather soon.

@mcliquid
Copy link
Author

I remember requiring an end date to avoid just leaving roads under construction for possibly a long time just because e.g. there was no sign how long a 2 week construction would take. So I'm afraid the might be convenient but could cause more damage than good.

That was the reason why I explicitly added the note to the calendar. I think we can trust SCEE users to read and take this into account.

Btw this is a bad time for working on Android dialogs, as they will be replaced with compose rather soon.

I wasn't sure when it would be ready and wanted to develop the feature at least for myself because I need it often. Anyway, regardless of whether it gets merged or not, I will of course try to help with the upcoming conversion to compose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants