mirror of https://github.com/buster-so/buster.git
Merge pull request #1087 from buster-so/quick-prompt-changes
date truncation and sign in page update
This commit is contained in:
commit
8c6ef49415
|
@ -6,7 +6,7 @@ export function AuthLayout({ children }: PropsWithChildren) {
|
|||
<section className="h-[100vh]">
|
||||
<div className="flex h-[100vh] items-center">
|
||||
<div className="mx-auto flex min-h-[100vh] w-full">
|
||||
<div className="hidden w-1/2 bg-gray-50 md:flex dark:bg-gray-900">
|
||||
<div className="hidden w-1/2 bg-gray-50 md:flex dark:bg-gray-900 border-r border-border">
|
||||
<WelcomeToBuster hasUser={true} />
|
||||
</div>
|
||||
<div className="w-full bg-white md:w-1/2 dark:bg-black">{children}</div>
|
||||
|
|
|
@ -26,7 +26,7 @@ export const LoginForm: React.FC<{
|
|||
}> = ({ redirectTo }) => {
|
||||
const lastUsedProps = useLastUsed();
|
||||
|
||||
const [signUpFlow, setSignUpFlow] = useState(!env.VITE_PUBLIC_USER);
|
||||
const [signUpFlow, setSignUpFlow] = useState(false);
|
||||
const [signUpSuccess, setSignUpSuccess] = useState(false);
|
||||
|
||||
// Use the centralized auth mutations hook
|
||||
|
|
|
@ -23,7 +23,7 @@ export const WelcomeToBuster: React.FC<{
|
|||
>
|
||||
Welcome to Buster.
|
||||
</h1>
|
||||
<div className="text-lg">Stand up a PoC in 30 minutes.</div>
|
||||
<div className="text-lg">Explore company data & build reports with AI.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
|
|
@ -424,24 +424,26 @@ You operate in a loop to complete tasks:
|
|||
- For multi-line charts, indicate if lines represent different categories of a single metric (e.g., "lines split by `[field_name]`") or different metrics (e.g., "separate lines for `[metric1]` and `[metric2]`").
|
||||
- For combo charts, describe which metrics are on each y-axis and their type (line or bar).
|
||||
- Time Label Formatting Standards
|
||||
- Every date-style column MUST include a `dateFormat` (except year, which is style: number).
|
||||
- Months:
|
||||
- If multiple years are present → use abbreviated month + year: 'MMM YYYY' (e.g., Jan 2025).
|
||||
- If only one year is present → use full month name: 'MMMM' (e.g., January).
|
||||
- If X-axis uses [month, year] (spans multiple years) → set month.dateFormat: 'MMM' and keep year as number; combined labels render as 'MMM YYYY' (e.g., Jan 2025).
|
||||
- If only one year (X-axis [month]) → month.dateFormat: 'MMMM' (e.g., January).
|
||||
- If month is a standalone full date column (not split parts) → use 'MMM YYYY' unless the context clearly calls for full month names.
|
||||
- Quarters:
|
||||
- Always use 'Qn YYYY' (e.g., Q1 2025), never plain numbers (1, 2, 3, 4).
|
||||
- Days of Week:
|
||||
- Always use full names (e.g., Monday, Tuesday …). Do not abbreviate (Mon, Tue).
|
||||
- Always '[Q]Q YYYY' (e.g., Q1 2025).
|
||||
- Years:
|
||||
- Always set as columnType: number, style: number, numberSeparatorStyle: null.
|
||||
- Do NOT set style: date for year-only fields.
|
||||
- Never apply thousands separators (2025 not 2,025).
|
||||
- Days of Week:
|
||||
- Use full names (Monday, Tuesday …).
|
||||
- Day + Month + Year:
|
||||
- Use 'MMM D, YYYY' (e.g., Jan 15, 2025).
|
||||
- 'MMM D, YYYY' (e.g., Jan 15, 2025).
|
||||
- Week Labels:
|
||||
- Use 'MMM D' or 'MMM D, YYYY' depending on whether the year is needed for clarity.
|
||||
- General Rule:
|
||||
- Never display raw numbers for date parts (e.g., "1" → always converted to "January" or "Q1").
|
||||
- Always make labels human-readable and consistent within the same visualization.
|
||||
- 'MMM D' or 'MMM D, YYYY' depending on clarity.
|
||||
- General:
|
||||
- Never display raw numbers for month/quarter/day_of_week (use convertNumberTo + human-readable labels).
|
||||
- Ensure natural X-axis ordering: Day → Month → Year; Month → Year; Quarter → Year.
|
||||
- X-axis Ordering:
|
||||
- When multiple date parts are used, order them naturally:
|
||||
- Day → Month → Year
|
||||
|
|
|
@ -120,9 +120,10 @@ Only utilize the required/default fields unless the user specifically requests t
|
|||
# - NEVER leave raw numbers on the axis.
|
||||
#
|
||||
# DATE PART RULES
|
||||
# - year → columnType: number, style: number, numberSeparatorStyle: null
|
||||
# - month/quarter/day_of_week → columnType: number, style: date, with convertNumberTo + makeLabelHumanReadable
|
||||
# - full date/timestamp columns → columnType: date, style: date, with explicit dateFormat
|
||||
# - year → columnType: number, style: number, numberSeparatorStyle: null (no thousands separators).
|
||||
# - month/quarter/day_of_week → columnType: number, style: date, with convertNumberTo + makeLabelHumanReadable.
|
||||
# - When X-axis = [month, year] across multiple years → month.dateFormat: 'MMM' (renderer composes 'MMM YYYY' with the year part).
|
||||
# - Full date/timestamp columns → columnType: date, style: date, include explicit dateFormat appropriate to the interval.
|
||||
|
||||
# -------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue