File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed
Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ LABEL org.opencontainers.image.title="Labspaces" \
2323 com.docker.extension.publisher-url="https://github.com/dockersamples/labspace-extension" \
2424 com.docker.extension.additional-urls="[{\" title\" :\" Create your own Labspace\" ,\" url\" :\" https://github.com/dockersamples/labspace-starter\" }]" \
2525 com.docker.extension.categories="cloud-development" \
26- com.docker.extension.changelog="- Persist filter settings and a few minor bug fixes "
26+ com.docker.extension.changelog="- Support for new labspace.yaml schema "
2727COPY beaker.svg /
2828COPY metadata.json /
2929COPY --from=build /usr/local/app/dist /ui
Original file line number Diff line number Diff line change @@ -77,7 +77,10 @@ export function CatalogContextProvider({ children }) {
7777 const allLabspaces = [ ...customLabspaces ] ;
7878 catalogDetails . forEach ( ( catalog ) => {
7979 catalog . labspaces . forEach ( ( labspace ) => {
80- allLabspaces . push ( { ...labspace , catalog : { name : catalog . name , url : catalog . url } } ) ;
80+ allLabspaces . push ( {
81+ ...labspace ,
82+ catalog : { name : catalog . name , url : catalog . url } ,
83+ } ) ;
8184 } ) ;
8285 } ) ;
8386 return allLabspaces . sort ( ( a , b ) => {
Original file line number Diff line number Diff line change @@ -39,7 +39,11 @@ export function Home() {
3939 < RunningNotice
4040 hasLabspace = { hasLabspace }
4141 isRunning = { ! ! runningLabspace }
42- labspaceTitle = { runningLabspace ? runningLabspace . title : "" }
42+ labspaceTitle = {
43+ runningLabspace
44+ ? ( runningLabspace ?. metadata ?. title ?? runningLabspace . title )
45+ : ""
46+ }
4347 onRemove = { stopLabspace }
4448 isStopping = { stoppingLabspace }
4549 />
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export function CatalogSidebar({ onFilterChange }) {
88 const { catalogs, tags } = useCatalogs ( ) ;
99 const [ searchTerm , setSearchTerm ] = useState ( "" ) ;
1010 const [ activeCategory , setActiveCategory ] = useState (
11- localStorage . getItem ( "labspaces.activeCategory" ) || null
11+ localStorage . getItem ( "labspaces.activeCategory" ) || null ,
1212 ) ;
1313 const [ selectedCatalogs , setSelectedCatalogs ] = useState (
1414 localStorage . getItem ( "labspaces.selectedCatalogs" )
@@ -20,8 +20,7 @@ export function CatalogSidebar({ onFilterChange }) {
2020 useEffect ( ( ) => {
2121 if ( activeCategory )
2222 localStorage . setItem ( "labspaces.activeCategory" , activeCategory ) ;
23- else
24- localStorage . removeItem ( "labspaces.activeCategory" ) ;
23+ else localStorage . removeItem ( "labspaces.activeCategory" ) ;
2524 } , [ activeCategory ] ) ;
2625
2726 useEffect ( ( ) => {
You can’t perform that action at this time.
0 commit comments