Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export default function PlaylistClimbsList({
<Alert
type="info"
showIcon
message={`Not showing ${hiddenCount} ${hiddenCount === 1 ? 'climb' : 'climbs'} from other layouts`}
title={`Not showing ${hiddenCount} ${hiddenCount === 1 ? 'climb' : 'climbs'} from other layouts`}
className={styles.hiddenClimbsNotice}
/>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export default function PlaylistEditDrawer({ open, playlist, onClose, onSuccess
label="Visibility"
valuePropName="checked"
>
<Space direction="vertical" size={4}>
<Space orientation="vertical" size={4}>
<Switch
checked={isPublic}
onChange={handleVisibilityChange}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const CreatorNameSelect = ({
value={value}
onChange={onChange}
onSearch={setSearchValue}
onDropdownVisibleChange={setIsOpen}
onOpenChange={setIsOpen}
loading={isLoading}
showSearch
filterOption={false}
Expand Down
4 changes: 2 additions & 2 deletions packages/web/app/about/about-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function AboutContent() {

<Content className={styles.content}>
<Card>
<Space direction="vertical" size="large" className={styles.cardContent}>
<Space orientation="vertical" size="large" className={styles.cardContent}>
{/* Hero Section */}
<div className={styles.heroSection}>
<Logo size="lg" linkToHome={false} />
Expand Down Expand Up @@ -68,7 +68,7 @@ export default function AboutContent() {
type="warning"
showIcon
icon={<LockOutlined />}
message="Single Vendor Risk"
title="Single Vendor Risk"
description="Thousands of dollars worth of climbing equipment relies on software from two small companies. If that software stops working, your expensive LED system becomes unusable."
/>

Expand Down
4 changes: 2 additions & 2 deletions packages/web/app/auth/error/auth-error-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ export default function AuthErrorContent() {
}}
>
<Card style={{ width: '100%', maxWidth: 400, textAlign: 'center' }}>
<Space direction="vertical" size="large" style={{ width: '100%' }}>
<Space orientation="vertical" size="large" style={{ width: '100%' }}>
<CloseCircleOutlined style={{ fontSize: 48, color: themeTokens.colors.error }} />
<Title level={3}>Authentication Error</Title>
<Alert type="error" message={getErrorMessage()} showIcon />
<Alert type="error" title={getErrorMessage()} showIcon />
<Button type="primary" href="/auth/login" block size="large">
Back to Login
</Button>
Expand Down
2 changes: 1 addition & 1 deletion packages/web/app/auth/login/auth-page-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export default function AuthPageContent() {
}}
>
<Card style={{ width: '100%', maxWidth: 400 }}>
<Space direction="vertical" style={{ width: '100%', textAlign: 'center', marginBottom: 24 }}>
<Space orientation="vertical" style={{ width: '100%', textAlign: 'center', marginBottom: 24 }}>
<Logo size="md" />
<Text type="secondary">Sign in or create an account to continue</Text>
</Space>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ export default function VerifyRequestContent() {
}}
>
<Card style={{ width: '100%', maxWidth: 400, textAlign: 'center' }}>
<Space direction="vertical" size="large" style={{ width: '100%' }}>
<Space orientation="vertical" size="large" style={{ width: '100%' }}>
{errorMessage ? (
<>
<CloseCircleOutlined style={{ fontSize: 48, color: themeTokens.colors.error }} />
<Alert type="error" message={errorMessage} showIcon />
<Alert type="error" title={errorMessage} showIcon />
</>
) : (
<>
Expand Down
8 changes: 5 additions & 3 deletions packages/web/app/components/auth/auth-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export default function AuthModal({
{
key: 'login',
label: 'Login',
forceRender: true,
children: (
<Form form={loginForm} layout="vertical" onFinish={handleLogin}>
<Form.Item
Expand Down Expand Up @@ -156,6 +157,7 @@ export default function AuthModal({
{
key: 'register',
label: 'Create Account',
forceRender: true,
children: (
<Form form={registerForm} layout="vertical" onFinish={handleRegister}>
<Form.Item
Expand Down Expand Up @@ -225,14 +227,14 @@ export default function AuthModal({
width={400}
centered
>
<Space direction="vertical" size="large" style={{ width: '100%' }}>
<Space direction="vertical" style={{ width: '100%', textAlign: 'center' }}>
<Space orientation="vertical" size="large" style={{ width: '100%' }}>
<Space orientation="vertical" style={{ width: '100%', textAlign: 'center' }}>
<HeartFilled style={{ fontSize: 32, color: '#ff4d4f' }} />
<Text strong style={{ fontSize: 18 }}>{title}</Text>
<Text type="secondary">{description}</Text>
</Space>

<Tabs activeKey={activeTab} onChange={setActiveTab} items={tabItems} centered />
<Tabs activeKey={activeTab} onChange={setActiveTab} items={tabItems} centered destroyOnHidden={false} />

<Divider style={{ margin: '8px 0' }}>
<Text type="secondary">or</Text>
Expand Down
2 changes: 1 addition & 1 deletion packages/web/app/components/board-page/angle-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default function AngleSelector({ boardName, currentAngle, currentClimb }:
>
{currentClimb && (
<Alert
message={currentClimb.name}
title={currentClimb.name}
type="info"
style={{ marginBottom: 12, textAlign: 'center' }}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export function PlaylistAction({
<Text strong>Add to Playlist</Text>
</div>
{playlists.length === 0 && !showCreateForm ? (
<Space direction="vertical" style={{ width: '100%', textAlign: 'center', padding: themeTokens.spacing[2] }}>
<Space orientation="vertical" style={{ width: '100%', textAlign: 'center', padding: themeTokens.spacing[2] }}>
<Text type="secondary">No playlists yet</Text>
<Button
type="primary"
Expand Down Expand Up @@ -195,7 +195,7 @@ export function PlaylistAction({
onClick={() => handleTogglePlaylist(playlist.uuid, isInPlaylist)}
>
<Space style={{ width: '100%', justifyContent: 'space-between' }}>
<Space direction="vertical" size={0}>
<Space orientation="vertical" size={0}>
<Text strong style={{ fontSize: 13 }}>{playlist.name}</Text>
<Text type="secondary" style={{ fontSize: 11 }}>
{playlist.climbCount} {playlist.climbCount === 1 ? 'climb' : 'climbs'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function TickAction({
}, [boardDetails, climb.uuid, angle, closeDrawer]);

const renderSignInPrompt = () => (
<Space direction="vertical" size="large" style={{ width: '100%', textAlign: 'center', padding: '24px 0' }}>
<Space orientation="vertical" size="large" style={{ width: '100%', textAlign: 'center', padding: '24px 0' }}>
<Text strong style={{ fontSize: 16 }}>Sign in to record ticks</Text>
<Paragraph type="secondary">
Create a Boardsesh account to log your climbs and track your progress.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export default function CreateClimbForm({ boardDetails, angle, forkFrames, forkN
{/* Auth alerts */}
{!isAuthenticated && (
<Alert
message="Sign in required"
title="Sign in required"
description="Sign in to your Boardsesh account to save your climb."
type="warning"
showIcon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default function MoonBoardCreateClimbForm({
return (
<div className={styles.pageContainer}>
<Alert
message={`MoonBoard Beta - ${layoutName} @ ${angle}°`}
title={`MoonBoard Beta - ${layoutName} @ ${angle}°`}
description="MoonBoard support is in beta. Climbs are saved locally for now. Database sync coming soon!"
type="info"
showIcon
Expand All @@ -174,7 +174,7 @@ export default function MoonBoardCreateClimbForm({

{saveSuccess && (
<Alert
message="Climb saved successfully!"
title="Climb saved successfully!"
description="Your climb has been saved locally. You can create another climb."
type="success"
showIcon
Expand All @@ -185,7 +185,7 @@ export default function MoonBoardCreateClimbForm({

{ocrError && (
<Alert
message="Import Failed"
title="Import Failed"
description={ocrError}
type="error"
showIcon
Expand All @@ -197,7 +197,7 @@ export default function MoonBoardCreateClimbForm({

{ocrWarnings.length > 0 && (
<Alert
message="Import Warnings"
title="Import Warnings"
description={ocrWarnings.map((w, i) => <div key={i}>{w}</div>)}
type="warning"
showIcon
Expand Down
2 changes: 1 addition & 1 deletion packages/web/app/components/logbook/tick-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const TickButton: React.FC<TickButtonProps> = ({ currentClimb, angle, boa
open={drawerVisible}
styles={{ wrapper: { height: '50%' } }}
>
<Space direction="vertical" size="large" style={{ width: '100%', textAlign: 'center', padding: '24px 0' }}>
<Space orientation="vertical" size="large" style={{ width: '100%', textAlign: 'center', padding: '24px 0' }}>
<Text strong style={{ fontSize: 16 }}>Sign in to record ticks</Text>
<Paragraph type="secondary">
Create a Boardsesh account to log your climbs and track your progress.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export default function MoonBoardBulkImport({
{/* Errors */}
{state.errors.length > 0 && (
<Alert
message={`${state.errors.length} Warning(s)`}
title={`${state.errors.length} Warning(s)`}
description={
<ul className={styles.errorList}>
{state.errors.map((err, i) => (
Expand All @@ -271,7 +271,7 @@ export default function MoonBoardBulkImport({
{/* Success Summary */}
{state.climbs.length > 0 && (
<Alert
message={`${state.climbs.length} climb(s) ready to import`}
title={`${state.climbs.length} climb(s) ready to import`}
description="Review the climbs below. You can edit or remove any before saving."
type="success"
showIcon
Expand Down
2 changes: 1 addition & 1 deletion packages/web/app/components/queue-control/queue-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ const QueueList = forwardRef<QueueListHandle, QueueListProps>(({ boardDetails, o
open={tickDrawerVisible}
styles={{ wrapper: { height: '50%' } }}
>
<Space direction="vertical" size="large" style={{ width: '100%', textAlign: 'center', padding: '24px 0' }}>
<Space orientation="vertical" size="large" style={{ width: '100%', textAlign: 'center', padding: '24px 0' }}>
<Text strong style={{ fontSize: 16 }}>Sign in to record ticks</Text>
<Paragraph type="secondary">
Create a Boardsesh account to log your climbs and track your progress.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const BasicSearchForm: React.FC<BasicSearchFormProps> = ({ boardDetails }) => {
if (!isAuthenticated) {
return (
<Alert
message="Sign in to filter by progress"
title="Sign in to filter by progress"
description="Login to filter climbs based on your attempt and completion history."
type="info"
showIcon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const SetterNameSelect = () => {
value={uiSearchParams.settername}
onChange={(value) => updateFilters({ settername: value })}
onSearch={setSearchValue}
onDropdownVisibleChange={setIsOpen}
onOpenChange={setIsOpen}
loading={isLoading}
showSearch
filterOption={false} // Server-side filtering
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function BoardCredentialCard({
type="warning"
icon={<WarningOutlined />}
showIcon
message={`${totalUnsynced} item${totalUnsynced > 1 ? 's' : ''} pending sync`}
title={`${totalUnsynced} item${totalUnsynced > 1 ? 's' : ''} pending sync`}
description={
<Text type="secondary">
{unsyncedCounts.ascents > 0 && `${unsyncedCounts.ascents} ascent${unsyncedCounts.ascents > 1 ? 's' : ''}`}
Expand Down Expand Up @@ -293,7 +293,7 @@ export default function AuroraCredentialsSection() {
Data created in Boardsesh stays local and does not sync back to Aurora.
</Text>

<Space direction="vertical" size="middle" className={styles.cardsContainer}>
<Space orientation="vertical" size="middle" className={styles.cardsContainer}>
<BoardCredentialCard
boardType="kilter"
credential={getCredentialForBoard('kilter')}
Expand Down
8 changes: 4 additions & 4 deletions packages/web/app/components/setup-wizard/join-session-tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const JoinSessionTab = () => {
{error && (
<Alert
type="warning"
message={getGeolocationErrorMessage(error)}
title={getGeolocationErrorMessage(error)}
style={{ marginBottom: themeTokens.spacing[4] }}
/>
)}
Expand Down Expand Up @@ -122,7 +122,7 @@ const JoinSessionTab = () => {
<div style={{ textAlign: 'center', padding: themeTokens.spacing[8] }}>
<Empty
description={
<Space direction="vertical" size="small">
<Space orientation="vertical" size="small">
<Text>No backend server configured</Text>
<Paragraph type="secondary" style={{ marginBottom: 0 }}>
To join sessions, you need to connect to a Boardsesh backend server.
Expand All @@ -140,7 +140,7 @@ const JoinSessionTab = () => {
<div style={{ textAlign: 'center', padding: themeTokens.spacing[8] }}>
<Alert
type="error"
message={fetchError}
title={fetchError}
style={{ marginBottom: themeTokens.spacing[4] }}
/>
<Button icon={<ReloadOutlined />} onClick={refresh}>
Expand All @@ -156,7 +156,7 @@ const JoinSessionTab = () => {
<div style={{ textAlign: 'center', padding: themeTokens.spacing[8] }}>
<Empty
description={
<Space direction="vertical" size="small">
<Space orientation="vertical" size="small">
<Text>No sessions found nearby</Text>
<Paragraph type="secondary" style={{ marginBottom: 0 }}>
There are no active climbing sessions within 500 meters.
Expand Down
2 changes: 1 addition & 1 deletion packages/web/app/settings/settings-page-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export default function SettingsPageContent() {

<Form form={form} layout="vertical">
<Form.Item label="Avatar">
<Space direction="vertical" align="center" style={{ width: '100%' }}>
<Space orientation="vertical" align="center" style={{ width: '100%' }}>
<Avatar size={96} src={previewUrl} icon={<UserOutlined />} />
<Space>
<Upload {...uploadProps}>
Expand Down
Loading