[Slides] Let image search use a configurable Custom Search address
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 68/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
Línea de trabajo
Empieza en templates/slides/server/lib/media-search-providers.ts, donde se define GOOGLE_IMAGE_SEARCH_URL y se construye la solicitud de Custom Search, luego revisa server/register-secrets.ts para ver cómo se registra GOOGLE_SEARCH_CX. Añade un secreto opcional GOOGLE_SEARCH_URL, inclúyelo comentado en .env.example y cubre ambos casos en media-search-providers.test.ts. Está terminado cuando la solicitud no cambia sin nada configurado y se envía a la dirección configurada cuando se establece.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Slides image search sends every request to GOOGLE_IMAGE_SEARCH_URL, a constant set to https://www.googleapis.com/customsearch/v1 in templates/slides/server/lib/media-search-providers.ts:3. Only GOOGLE_API_KEY and GOOGLE_SEARCH_CX come from settings.
Google's overview page says "Existing Custom Search JSON API customers have until January 1, 2027 to transition to an alternative solution" (https://developers.google.com/custom-search/v1/overview). After that date image search in Slides stops for everyone who set it up, and there is no setting that changes where the request goes.
I'd like to add one optional setting, GOOGLE_SEARCH_URL, resolved the same way as the other two:
const [apiKey, searchEngineId, searchUrl] = await Promise.all([
runtime.resolveSecret("GOOGLE_API_KEY"),
runtime.resolveSecret("GOOGLE_SEARCH_CX"),
runtime.resolveSecret("GOOGLE_SEARCH_URL"),
]);
// ...
const response = await runtime.fetch(
`${searchUrl || GOOGLE_IMAGE_SEARCH_URL}?${params}`,
fetchOptions(),
);
It would be registered in server/register-secrets.ts with required: false like GOOGLE_SEARCH_CX, listed commented out in .env.example, and covered in media-search-providers.test.ts with one case that the request goes to Google when it isn't set and one that it goes to the configured address when it is. With nothing set the request is the same as today.
Since CONTRIBUTING asks for an issue before a new config option, I wanted to check the shape first. I can send it as a PR if this works for you.
- Lenguaje dominante
- TypeScript
- Estrellas
- 7.7k
- Forks
- 706
- Merge medio
- 1 d 11 h
- PR fusionados (30 d)
- 790
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de BuilderIO/agent-native
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
BuilderIO/agent-native#9217 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
An `absolute` element near the end of a long page gives the toolkit main surface a second scrollbarPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
BuilderIO/agent-native#8846 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
WebMCP helper fails with “invalid input object” in Chrome 155Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
BuilderIO/agent-native#8460 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Skill deletion succeeds but leaves Settings unclickablePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
BuilderIO/agent-native#8109 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
BuilderIO/agent-native#7922 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de BuilderIO/agent-native
Issues similares
-
area: batch
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
inabagumi/shinju-date#7294 ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
streaming-video-technology-alliance/common-media-library#700 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
vercel-labs/ui#809 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
KrisCris/village-in-the-shade-guide#75 ·
Los mantenedores suelen responder en 1 día
-
bot:ai-assisted component:platform-js status:untriaged
Dificultad 1/5 Menos de una hora Aptitud para principiantes 74/100
midnightntwrk/platform-js#38 ·