Skip to content

Commit

Permalink
Update screens_config (#1960)
Browse files Browse the repository at this point in the history
* Updated screens_config dependency.

* Added column to admin table.
  • Loading branch information
cmaddox5 authored Jan 22, 2024
1 parent 23941f0 commit c95d803
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 16 additions & 1 deletion assets/src/components/admin/admin_tables.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -614,13 +614,28 @@ const GLEinkV2ScreensTable = (): JSX.Element => {
FormCell: FormTextarea,
};

const platformLocationColumn = {
Header: "Platform Location",
accessor: buildAppParamAccessor("platform_location"),
mutator: buildAppParamMutator("platform_location"),
Cell: EditableSelect,
disableFilters: true,
FormCell: buildFormSelect(["front", "back"], false),
};

const dataFilter = ({ app_id }) => {
return app_id === "gl_eink_v2";
};

return (
<AdminTable
columns={[...v2Columns, alertsColumn, lineMapColumn, audioColumn]}
columns={[
...v2Columns,
alertsColumn,
lineMapColumn,
audioColumn,
platformLocationColumn,
]}
dataFilter={dataFilter}
/>
);
Expand Down
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"plug_crypto": {:hex, :plug_crypto, "1.2.5", "918772575e48e81e455818229bf719d4ab4181fcbf7f85b68a35620f78d89ced", [:mix], [], "hexpm", "26549a1d6345e2172eb1c233866756ae44a9609bd33ee6f99147ab3fd87fd842"},
"ranch": {:hex, :ranch, "1.8.0", "8c7a100a139fd57f17327b6413e4167ac559fbc04ca7448e9be9057311597a1d", [:make, :rebar3], [], "hexpm", "49fbcfd3682fab1f5d109351b61257676da1a2fdbe295904176d5e521a2ddfe5"},
"retry": {:hex, :retry, "0.16.0", "bda95a342de242088b2a68e4e826fd2a61f080b5fb2b596bec898e26520d262c", [:mix], [], "hexpm", "bebaa63ebf7c9ebc2741fcdbbda62cf49734a8740ce0a80708b669a595e6be8e"},
"screens_config": {:git, "https://github.com/mbta/screens-config-lib.git", "1fcf167850f864b2768a39a2b1bd28f68e050793", []},
"screens_config": {:git, "https://github.com/mbta/screens-config-lib.git", "dfbdb72a2eb565c8ad7d52c0b05b3e5b7e49e1c3", []},
"sentry": {:hex, :sentry, "8.0.6", "c8de1bf0523bc120ec37d596c55260901029ecb0994e7075b0973328779ceef7", [:mix], [{:hackney, "~> 1.8", [hex: :hackney, repo: "hexpm", optional: true]}, {:jason, "~> 1.1", [hex: :jason, repo: "hexpm", optional: true]}, {:plug, "~> 1.6", [hex: :plug, repo: "hexpm", optional: true]}, {:plug_cowboy, "~> 2.3", [hex: :plug_cowboy, repo: "hexpm", optional: true]}], "hexpm", "051a2d0472162f3137787c7c9d6e6e4ef239de9329c8c45b1f1bf1e9379e1883"},
"ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.6", "cf344f5692c82d2cd7554f5ec8fd961548d4fd09e7d22f5b62482e5aeaebd4b0", [:make, :mix, :rebar3], [], "hexpm", "bdb0d2471f453c88ff3908e7686f86f9be327d065cc1ec16fa4540197ea04680"},
"stream_data": {:hex, :stream_data, "0.5.0", "b27641e58941685c75b353577dc602c9d2c12292dd84babf506c2033cd97893e", [:mix], [], "hexpm", "012bd2eec069ada4db3411f9115ccafa38540a3c78c4c0349f151fc761b9e271"},
Expand Down

0 comments on commit c95d803

Please sign in to comment.