T16 Finance: market charts with kinds, volume, profile, studies, drawings, compare, alerts and sync (T16a–b); quotes, book, tape and DOM (T16c); order entry, blotter, risk, options and payoff (T16d); markets, calendars, portfolio and wallet (T16e); typography::Ellipsis ends lines that gpui's truncate clipped; chart notes stack and ticks label round values

This commit is contained in:
ZacharyZhang-NY committed 2026-09-25 23:30:04 -04:00
1 parent efde9d64b0
commit 8d43b7a880
76 files changed
+10311 -173

No files matched your search

+1 -12
View File
@@ -12,24 +12,13 @@ use gpui::{App, ClipboardItem, IntoElement, ParentElement, SharedString, Styled,
use crate::{
probe::probe,
ui::{keep, row, section, set},
ui::{keep, noise, row, section, set},
};
const MONTHS: [&str; 12] = [
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
];
/// A steady pseudo-random series, so captures repeat.
pub(super) fn noise(seed: u64) -> impl FnMut() -> f64 {
let mut state = seed;
move || {
state = state
.wrapping_mul(6364136223846793005)
.wrapping_add(1442695040888963407);
(state >> 33) as f64 / (1u64 << 31) as f64
}
}
pub fn lines(window: &mut Window, cx: &mut App) -> impl IntoElement + use<> {
let turn = keep("lines-turn", || 0usize, window, cx);
let (now, next) = (*turn.read(cx), turn.clone());
+4 -2
View File
@@ -5,8 +5,10 @@ use ely_gpui_component::charts::{
use gpui::{App, IntoElement, ParentElement, Styled, div, px};
use jiff::civil::date;
use super::cartesian::noise;
use crate::{probe::probe, ui::section};
use crate::{
probe::probe,
ui::{noise, section},
};
pub fn flows(cx: &mut App) -> impl IntoElement + use<> {
let budget = SankeyChart::new(
+1 -2
View File
@@ -1,8 +1,7 @@
use ely_gpui_component::charts::{BoxPlot, Histogram, ViolinPlot, WaterfallChart};
use gpui::{App, IntoElement, ParentElement, Styled, div, px};
use super::cartesian::noise;
use crate::ui::section;
use crate::ui::{noise, section};
pub fn distributions(cx: &mut App) -> impl IntoElement + use<> {
let mut rng = noise(13);
+4 -2
View File
@@ -4,8 +4,10 @@ use ely_gpui_component::charts::{
use gpui::{App, IntoElement, ParentElement, Styled, div, px};
use jiff::civil::date;
use super::cartesian::noise;
use crate::{probe::probe, ui::section};
use crate::{
probe::probe,
ui::{noise, section},
};
pub fn pies(cx: &mut App) -> impl IntoElement + use<> {
let traffic = [