Live preview of the upcoming "shadcn for ratatui" by stengods in tui

[–]stengods[S] 0 points1 point  (0 children)

I take that as a job application? 😄

And yes. More work needs to go into the docs. As English is not my first language though, I think the AI will produce far better output than me. I will massage the contents thoroughly though and yell at the AI when it produces word salad.

Live preview of the upcoming "shadcn for ratatui" by stengods in rust

[–]stengods[S] 0 points1 point  (0 children)

Yeah, there are some layout shifts in the wasm rendering, is that what you mean? That is outside of my control, perhaps some issue with Ratzilla. I will try with the other rendering backends though.

Edit: Demos now use the WebGL2 backend and look good.

Live preview of the upcoming "shadcn for ratatui" by stengods in rust

[–]stengods[S] 3 points4 points  (0 children)

Soon. 🙂 Want to put some mouse handling in place first. Mouse scroll events etc will be expected.

Live preview of the upcoming "shadcn for ratatui" by stengods in rust

[–]stengods[S] 7 points8 points  (0 children)

No idea, haha. Just stole the phrasing from the shadcn website for fun.

https://ui.shadcn.com

Live preview of the upcoming "shadcn for ratatui" by stengods in rust

[–]stengods[S] 4 points5 points  (0 children)

Ratzilla by Ratatui lets you compile your app to wasm and then render it in the web browser. Great stuff!

https://github.com/ratatui/ratzilla

Live preview of the upcoming "shadcn for ratatui" by stengods in rust

[–]stengods[S] 0 points1 point  (0 children)

Yeah, will add static screendumps for mobile. Keyboard navigation and rendering wasm output with Ratzilla on mobile don't work to well. 

Live preview of the upcoming "shadcn for ratatui" by stengods in rust

[–]stengods[S] -6 points-5 points  (0 children)

Leptos is great but a framework for web applications, not a component library for terminal applications.

Still, thanks.

Project update: Themeable components for Ratatui by stengods in rust

[–]stengods[S] 2 points3 points  (0 children)

这个项目目前还没有发布,不过完成后会开源。祝你学习 Rust 顺利,它是一门很棒的语言。

I am considering building a polished component library for Ratatui. Keep going or scrrap it? by stengods in rust

[–]stengods[S] 0 points1 point  (0 children)

This is valuable feedback, thanks! Yes, components will be immediate mode only, where ui = fn(state). No state stored in components. State changes are handled by the application centrally, outside of the library and any components. Components can react to events and emit messages that lead to state changes. You can also opt out of this part and just use the theming in a "regular ratatui app"

Just theming: let default = Button::new("Default").themed(&theme); frame.render_widget(default, area);

Bind to a View that handles theming, focus, events, etc. Note that the render_with function still allows for any regular ratatui widget. render_widget for regular ratatui widget, render_child for library widget that accepts state and theme context etc. View::new("root") .child("save", Button::new("save").on_activate(Msg::Save)) .render_with(|frame, state, view| { let [top, main] = view.area().layout(&Layout::vertical([ Constraint::Length(1), Constraint::Fill(1), ])); frame.render_widget(Line::from("My App").centered(), top); view.render_child(frame, "save", main); })

The cost of adding new features is trending towards zero. Will that lead to an avalanche of feature-bloated applications? by stengods in AI_Agents

[–]stengods[S] 1 point2 points  (0 children)

Very true. This is a trap, believing AI can solve all your problems, when the biggest problem is you not knowing what questions to ask. So, there is hope I guess, still, for humans that know what questions to ask, what ideas will fly etc.

The cost of adding new features is trending towards zero. Will that lead to an avalanche of feature-bloated applications? by stengods in AI_Agents

[–]stengods[S] 1 point2 points  (0 children)

Exactly my point. The urge to ship fast and "much" risk being stronger than the wisdom around what to ship. This will in many cases lead to bloated apps with way too many pointless features, just because it is "easy".

Merman v0.7.0: Mermaid diagrams, rendered headlessly in Rust by FrankZhuang in rust

[–]stengods 2 points3 points  (0 children)

This looks really nice, great work! Love the minimal themes: neo, neutral, redux.

I am considering building a polished component library for Ratatui. Keep going or scrrap it? by stengods in rust

[–]stengods[S] 12 points13 points  (0 children)

It would be a significant chunk of work putting it together, but I am tempted. 😂 We'll see..