diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-30 19:17:02 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-30 19:17:02 +0100 |
| commit | cee521142a4e0673b155d97c3e4825b7fec1987f (patch) | |
| tree | e8030687f62a63c34ad69cb81eefe8470c55cfee /src/frontend/app/components/Stops/ConsolidatedCirculationListSkeleton.tsx | |
| parent | e7283ba10d45b42e1274cd13c3d6aabec57c85b4 (diff) | |
Refactor street name processing and remove unused stop downloader script
- Updated `street_name.py` to simplify street name handling by removing the `re_remove_street_type` regex and exception streets list, replacing them with a dictionary for name replacements.
- Deleted the `download-stops.py` script from the Santiago stop downloader, which was no longer needed.
- Removed the empty `.gitkeep` file from the overrides directory.
- Added a new `VigoController` class to handle stop estimates and timetables, including error handling for missing data.
- Introduced `LineFormatterService` to format circulation routes based on specific line conditions.
Diffstat (limited to 'src/frontend/app/components/Stops/ConsolidatedCirculationListSkeleton.tsx')
| -rw-r--r-- | src/frontend/app/components/Stops/ConsolidatedCirculationListSkeleton.tsx | 50 |
1 files changed, 24 insertions, 26 deletions
diff --git a/src/frontend/app/components/Stops/ConsolidatedCirculationListSkeleton.tsx b/src/frontend/app/components/Stops/ConsolidatedCirculationListSkeleton.tsx index 90d92e2..c99b883 100644 --- a/src/frontend/app/components/Stops/ConsolidatedCirculationListSkeleton.tsx +++ b/src/frontend/app/components/Stops/ConsolidatedCirculationListSkeleton.tsx @@ -9,41 +9,39 @@ export const ConsolidatedCirculationListSkeleton: React.FC = () => { baseColor="var(--skeleton-base)" highlightColor="var(--skeleton-highlight)" > - <div className="consolidated-circulation-container"> + <> <div className="consolidated-circulation-caption"> <Skeleton width="60%" style={{ maxWidth: "300px" }} /> </div> - <div className="consolidated-circulation-list"> - {[1, 2, 3, 4, 5].map((i) => ( - <div key={i} className="consolidated-circulation-card"> - <div className="card-header"> - <div className="line-info"> - <Skeleton width={40} height={28} borderRadius={4} /> - </div> - - <div className="route-info"> - <Skeleton width="80%" height={18} /> - </div> + {[1, 2, 3, 4, 5].map((i) => ( + <div + key={i} + className="consolidated-circulation-card" + style={{ marginBottom: "0.75rem" }} + > + <div className="card-row main"> + <div className="line-info"> + <Skeleton width={40} height={28} borderRadius={4} /> + </div> - <div className="time-info"> - <Skeleton width={70} height={24} /> - <Skeleton width={50} height={14} /> - </div> + <div className="route-info"> + <Skeleton width="80%" height={18} /> </div> - <div className="card-footer"> - <Skeleton width="90%" height={14} /> - <Skeleton - width="70%" - height={14} - style={{ marginTop: "4px" }} - /> + <div className="eta-badge"> + <Skeleton width={50} height={40} borderRadius={12} /> </div> </div> - ))} - </div> - </div> + + <div className="card-row meta"> + <Skeleton width={90} height={20} borderRadius={999} /> + <Skeleton width={70} height={20} borderRadius={999} /> + <Skeleton width={60} height={20} borderRadius={999} /> + </div> + </div> + ))} + </> </SkeletonTheme> ); }; |
