Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add new fields to elevator widget #44

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

cmaddox5
Copy link
Contributor

Adding some new fields that will be needed when building out the "Current elevator closed" view on the widget.

@cmaddox5 cmaddox5 requested a review from a team as a code owner November 21, 2024 14:50
evergreen_content: list(EvergreenContentItem.t()),
alternate_direction_text: String.t(),
accessible_path_image_url: String.t(),
accessible_path_direction_arrow: arrow_direction()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since none of these are nullable and all are enforced when constructing, are we fine with manually updating existing elevator screen configs? Just calling out that we'd have to remember to do this (and either have content ready to go or use "stub" content).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can go ahead and stub them out. I think it's important for these to be required in the future because without them, the screens would be mostly blank if the current elevator is closed.

@@ -3,14 +3,23 @@ defmodule ScreensConfig.V2.Elevator do

alias ScreensConfig.V2.EvergreenContentItem

@type arrow_direction :: :n | :s | :e | :w
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to support diagonal arrows? There's precedent for this (Sectional header wayfinding), so I don't think it would be that difficult.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can ask Betsy that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. We want diagonal as well.

Copy link
Contributor

@digitalcora digitalcora Nov 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool. It would be nice if we could unify the types, then — maybe have a ScreensConfig.Arrow.t() referenced by both. (or maybe it's too early for that)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. There were a few other configs that supported this type so I changed those as well.

@cmaddox5 cmaddox5 force-pushed the cm/elevator-alternate-direction-config branch from 17eb9c7 to a417acd Compare November 21, 2024 18:34
@cmaddox5 cmaddox5 force-pushed the cm/elevator-alternate-direction-config branch from a417acd to 33d67b5 Compare November 21, 2024 18:36
@cmaddox5 cmaddox5 merged commit fff14c3 into main Nov 21, 2024
2 checks passed
@cmaddox5 cmaddox5 deleted the cm/elevator-alternate-direction-config branch November 21, 2024 19:11
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