diff --git a/python/lsst/ts/rubintv/templates/mosaic.jinja b/python/lsst/ts/rubintv/templates/mosaic.jinja
index 2409d58..e9633a6 100644
--- a/python/lsst/ts/rubintv/templates/mosaic.jinja
+++ b/python/lsst/ts/rubintv/templates/mosaic.jinja
@@ -4,12 +4,6 @@
Latest Mosaic
{% endblock pagesubtitle %}
-{% block undertitle %}
-{% if date %}
-
-{% endif %}
-{% endblock undertitle %}
-
{% block breadcrumb %}
Home
diff --git a/src/js/components/MosaicView.js b/src/js/components/MosaicView.js
index 61b53b1..1678644 100644
--- a/src/js/components/MosaicView.js
+++ b/src/js/components/MosaicView.js
@@ -6,14 +6,12 @@ import {
metadataType,
mosaicSingleView,
} from "./componentPropTypes"
-import { simpleGet } from "../modules/utils"
const commonColumns = ["seqNum"]
-export default function MosaicView({ locationName, camera, initialDate }) {
+export default function MosaicView({ locationName, camera }) {
const [historicalBusy, setHistoricalBusy] = useState(null)
const [currentMeta, setCurrentMeta] = useState({})
- const [date, setDate] = useState(initialDate)
const initialViews = camera.mosaic_view_meta.map((view) => ({
...view,
@@ -23,7 +21,7 @@ export default function MosaicView({ locationName, camera, initialDate }) {
useEffect(() => {
function handleMetadataChange(event) {
- const { datestamp, data, dataType } = event.detail
+ const { data, dataType } = event.detail
if (Object.entries(data).length < 1 || dataType !== "metadata") {
return
}
@@ -51,7 +49,7 @@ export default function MosaicView({ locationName, camera, initialDate }) {
useEffect(() => {
function handleChannelEvent(event) {
- const { datestamp, data } = event.detail
+ const { data } = event.detail
if (!data) {
return
}
@@ -70,9 +68,6 @@ export default function MosaicView({ locationName, camera, initialDate }) {
return (
-
- Mosaic View: {date}
-
{views.map((view) => {
return (
@@ -93,7 +88,6 @@ export default function MosaicView({ locationName, camera, initialDate }) {
MosaicView.propTypes = {
locationName: PropTypes.string,
camera: cameraType,
- initialDate: PropTypes.string,
}
function ChannelView({ locationName, camera, view, currentMeta }) {
@@ -103,9 +97,14 @@ function ChannelView({ locationName, camera, view, currentMeta }) {
} catch (error) {
return Channel {view.channel} not found
}
+ const { latestEvent: { day_obs: dayObs }} = view
return (
<>
- {channel.title}
+ {channel.title}
+ { dayObs && (
+ : { dayObs }
+ ) }
+
- {columns.map((column) => {
- const value = metadatum[column] ? metadatum[column] : "No value set"
- return (
-
- {column} |
- {value} |
-
- )
- })}
+
+ {columns.map((column) => {
+ const value = metadatum[column] ? metadatum[column] : "No value set"
+ return (
+
+ {column} |
+ {value} |
+
+ )
+ })}
+
)
}
diff --git a/src/js/pages/mosaic-view.js b/src/js/pages/mosaic-view.js
index 418340e..d8ab518 100644
--- a/src/js/pages/mosaic-view.js
+++ b/src/js/pages/mosaic-view.js
@@ -7,7 +7,6 @@ import { _getById } from "../modules/utils"
;(function () {
const locationName = window.APP_DATA.locationName || ""
const camera = window.APP_DATA.camera || {}
- const date = window.APP_DATA.date || ""
const ws = new WebsocketClient()
ws.subscribe("historicalStatus")
ws.subscribe("service", "camera", locationName, camera.name)
@@ -22,7 +21,6 @@ import { _getById } from "../modules/utils"
)