Skip to content

Conversation

@danasiongsin
Copy link
Collaborator

@danasiongsin danasiongsin commented Oct 17, 2025

Describe what you are trying to do
Redesigned the Shubble header and footer, and the Live Location schedule column.

Steps for review
npm run dev and view the changes.

Issues
Fixes #109

Screenshots
Screenshot 2025-10-17 172021
Screenshot 2025-10-17 172227

Additional Information

import rawAggregatedSchedule from '../data/aggregated_schedule.json';

export default function RouteToggle({selectedRoute, setSelectedRoute}) {
const today = new Date();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should use selectedDay to enable day selection

};

export default function Schedule({ selectedRoute, setSelectedRoute }: ScheduleProps) {
export default function Schedule() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

You're gonna want to include the selectedRoute and setSelectedRoute here. They are needed for the feature that flips the schedule to a specific route when a user clicks on a stop on the map.

const [routeNames, setRouteNames] = useState(Object.keys(aggregatedSchedule[selectedDay]));
const [stopNames, setStopNames] = useState<string[]>([]);
const [schedule, setSchedule] = useState<AggregatedDaySchedule>(aggregatedSchedule[selectedDay]);
const [selectedStop, setSelectedStop] = useState("all");
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we got rid of selectedStop? This might be from a merge.

if (!scheduleDiv) return;

if (selectedDay !== now.getDay()) return; // only scroll if viewing today's schedule
// if (selectedDay !== now.getDay()) return; // only scroll if viewing today's schedule
Copy link
Collaborator

Choose a reason for hiding this comment

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

Delete if unneeded.

padding: 0 20px;
}

.banner {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we lost the staging domain banner styling here

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.

[UI] Shubble Redesign!

3 participants