Skip to content

Commit 24492b5

Browse files
authored
exp: Show tables as frequent and look in the columns description (#3910)
This will significantly improves search experience
1 parent f213b94 commit 24492b5

File tree

4 files changed

+309
-45
lines changed

4 files changed

+309
-45
lines changed

python/generators/sql_processing/stdlib_tags.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,8 @@ def _validate_tags():
451451
# Table importance levels for documentation.
452452
# Importance levels help users discover the most relevant tables for their use case.
453453
# Levels:
454-
# 'high': Most commonly used, fundamental tables for trace analysis
455-
# 'mid': Important for specific use cases, moderately common
454+
# 'high': Very frequent - Most commonly used, fundamental tables for trace analysis
455+
# 'mid': Frequent - Important for specific use cases, moderately common
456456
# 'low': Specialized or advanced tables, less frequently needed
457457
# None/absent: Normal importance (default)
458458
TABLE_IMPORTANCE = {
@@ -481,6 +481,7 @@ def _validate_tags():
481481
'android_anrs': 'mid', # Application Not Responding events and diagnostics
482482
'android_battery_charge': 'mid', # Battery charge level tracking over time
483483
'android_charging_states': 'mid', # Device charging state transitions
484+
'android_process_metadata': 'mid', # Process metadata and information
484485

485486
# LOW IMPORTANCE - Raw/specialized tables, less frequently needed
486487
'slices':

ui/src/plugins/dev.perfetto.ExplorePage/query_builder/help.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@
8080
}
8181

8282
.pf-importance-high {
83-
background-color: #d32f2f; // Red - Important
83+
background-color: #d32f2f; // Red - Very frequent
8484
}
8585

8686
.pf-importance-mid {
87-
background-color: var(--pf-color-primary); // Primary blue - Recommended
87+
background-color: var(--pf-color-primary); // Primary blue - Frequent
8888
}
8989

9090
.pf-importance-low {

ui/src/plugins/dev.perfetto.ExplorePage/query_builder/table_list.scss

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,78 @@
3838
}
3939
}
4040
}
41+
42+
.pf-table-card-header {
43+
.pf-match-type-chip {
44+
background-color: var(--surface-variant);
45+
color: var(--on-surface-variant);
46+
font-size: 11px;
47+
opacity: 0.8;
48+
}
49+
}
50+
51+
.table-description {
52+
// Inline code styling
53+
code {
54+
background-color: var(--surface-variant);
55+
padding: 2px 6px;
56+
border-radius: 3px;
57+
font-family: "Roboto Mono", monospace;
58+
font-size: 0.9em;
59+
color: var(--on-surface);
60+
}
61+
62+
// Links
63+
a {
64+
color: var(--primary);
65+
text-decoration: none;
66+
67+
&:hover {
68+
text-decoration: underline;
69+
}
70+
}
71+
72+
// Bold text
73+
strong {
74+
font-weight: 500;
75+
}
76+
77+
// Italic text
78+
em {
79+
font-style: italic;
80+
}
81+
82+
// Paragraphs
83+
p {
84+
margin: 0.5em 0;
85+
86+
&:first-child {
87+
margin-top: 0;
88+
}
89+
90+
&:last-child {
91+
margin-bottom: 0;
92+
}
93+
}
94+
95+
// Lists
96+
ul,
97+
ol {
98+
margin: 0.5em 0;
99+
padding-left: 1.5em;
100+
}
101+
102+
// Code blocks
103+
pre {
104+
background-color: var(--surface-variant);
105+
padding: 8px 12px;
106+
border-radius: 4px;
107+
overflow-x: auto;
108+
margin: 0.5em 0;
109+
110+
code {
111+
background-color: transparent;
112+
padding: 0;
113+
}
114+
}
115+
}

0 commit comments

Comments
 (0)