akhaliq HF Staff commited on
Commit
7f9535b
Β·
1 Parent(s): c11485f
anycoder_app/ui.py CHANGED
@@ -1659,7 +1659,7 @@ CMD ["streamlit", "run", "streamlit_app.py", "--server.port=7860", "--server.add
1659
  )
1660
  space_url = f"https://huggingface.co/spaces/{repo_id}"
1661
  action_text = "Updated" if is_update else "Deployed"
1662
- return gr.update(value=f"βœ… {action_text}! [Open your Space here]({space_url})", visible=True)
1663
  except Exception as e:
1664
  error_msg = str(e)
1665
  if "403 Forbidden" in error_msg and "write token" in error_msg:
@@ -1690,7 +1690,7 @@ CMD ["streamlit", "run", "streamlit_app.py", "--server.port=7860", "--server.add
1690
  )
1691
  space_url = f"https://huggingface.co/spaces/{repo_id}"
1692
  action_text = "Updated" if is_update else "Deployed"
1693
- return gr.update(value=f"βœ… {action_text}! [Open your Space here]({space_url})", visible=True)
1694
  except Exception as e:
1695
  error_msg = str(e)
1696
  if "403 Forbidden" in error_msg and "write token" in error_msg:
 
1659
  )
1660
  space_url = f"https://huggingface.co/spaces/{repo_id}"
1661
  action_text = "Updated" if is_update else "Deployed"
1662
+ return gr.update(value=f"{action_text}! [Open your app here]({space_url})", visible=True)
1663
  except Exception as e:
1664
  error_msg = str(e)
1665
  if "403 Forbidden" in error_msg and "write token" in error_msg:
 
1690
  )
1691
  space_url = f"https://huggingface.co/spaces/{repo_id}"
1692
  action_text = "Updated" if is_update else "Deployed"
1693
+ return gr.update(value=f"{action_text}! [Open your app here]({space_url})", visible=True)
1694
  except Exception as e:
1695
  error_msg = str(e)
1696
  if "403 Forbidden" in error_msg and "write token" in error_msg:
frontend/src/app/page.tsx CHANGED
@@ -26,8 +26,8 @@ export default function Home() {
26
  // Landing page state - show landing page if no messages exist
27
  const [showLandingPage, setShowLandingPage] = useState(true);
28
 
29
- // Mobile view state: 'chat', 'editor', or 'settings'
30
- const [mobileView, setMobileView] = useState<'chat' | 'editor' | 'settings'>('editor');
31
 
32
  // Load messages from localStorage on mount (client-side only to avoid hydration issues)
33
  useEffect(() => {
@@ -480,8 +480,8 @@ export default function Home() {
480
  const deployMessage: Message = {
481
  role: 'assistant',
482
  content: existingSpace
483
- ? `βœ… Updated! [Open your Space here](${response.space_url})`
484
- : `βœ… Deployed! [Open your Space here](${response.space_url})`,
485
  timestamp: new Date().toISOString(),
486
  };
487
  setMessages((prev) => [...prev, deployMessage]);
 
26
  // Landing page state - show landing page if no messages exist
27
  const [showLandingPage, setShowLandingPage] = useState(true);
28
 
29
+ // Mobile view state: 'chat', 'editor', or 'settings' - start on chat for mobile
30
+ const [mobileView, setMobileView] = useState<'chat' | 'editor' | 'settings'>('chat');
31
 
32
  // Load messages from localStorage on mount (client-side only to avoid hydration issues)
33
  useEffect(() => {
 
480
  const deployMessage: Message = {
481
  role: 'assistant',
482
  content: existingSpace
483
+ ? `Updated! [Open your app here](${response.space_url})`
484
+ : `Deployed! [Open your app here](${response.space_url})`,
485
  timestamp: new Date().toISOString(),
486
  };
487
  setMessages((prev) => [...prev, deployMessage]);
frontend/src/components/ChatInterface.tsx CHANGED
@@ -68,6 +68,9 @@ export default function ChatInterface({ messages, onSendMessage, isGenerating, i
68
  <ReactMarkdown
69
  remarkPlugins={[remarkGfm]}
70
  className="prose prose-invert prose-sm max-w-none [&>p]:my-0 [&>ul]:my-1 [&>ol]:my-1"
 
 
 
71
  >
72
  {message.content}
73
  </ReactMarkdown>
 
68
  <ReactMarkdown
69
  remarkPlugins={[remarkGfm]}
70
  className="prose prose-invert prose-sm max-w-none [&>p]:my-0 [&>ul]:my-1 [&>ol]:my-1"
71
+ components={{
72
+ a: ({ node, ...props }) => <a {...props} target="_blank" rel="noopener noreferrer" />
73
+ }}
74
  >
75
  {message.content}
76
  </ReactMarkdown>
frontend/src/components/LandingPage.tsx CHANGED
@@ -479,7 +479,7 @@ export default function LandingPage({
479
  {trendingApps.length > 0 && (
480
  <div className="mt-16">
481
  <h3 className="text-2xl font-semibold text-white mb-6 text-center">
482
- Top 6 Trending Apps Built with AnyCoder
483
  </h3>
484
  <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
485
  {trendingApps.map((app) => (
 
479
  {trendingApps.length > 0 && (
480
  <div className="mt-16">
481
  <h3 className="text-2xl font-semibold text-white mb-6 text-center">
482
+ Top Trending Apps Built with AnyCoder
483
  </h3>
484
  <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
485
  {trendingApps.map((app) => (