chore(ci): correct Gitea runner to runs-on ubuntu-24.04 and feat(billing): implement US-3.7 billing/subscription UX
This commit is contained in:
@@ -17,6 +17,7 @@ import { ChevronRight } from 'lucide-react'
|
||||
import { toast } from 'sonner'
|
||||
import { Note } from '@/lib/types'
|
||||
import { GhostTags } from '@/components/ghost-tags'
|
||||
import { InlinePaywall } from '@/components/settings/inline-paywall'
|
||||
import { LabelBadge } from '@/components/label-badge'
|
||||
import { NoteAttachments } from '@/components/note-attachments'
|
||||
import { DocumentQAOverlay } from '@/components/document-qa-overlay'
|
||||
@@ -88,7 +89,7 @@ export function NoteEditorFullPage({ onClose }: NoteEditorFullPageProps) {
|
||||
{/* Title */}
|
||||
<NoteTitleBlock />
|
||||
|
||||
{(state.labels.length > 0 || (state.filteredSuggestions.length > 0)) && (
|
||||
{(state.labels.length > 0 || state.filteredSuggestions.length > 0 || state.quotaExceededFeature === 'auto_tag') && (
|
||||
<div className="flex flex-wrap gap-2 pt-2">
|
||||
{state.labels.map((label) => (
|
||||
<LabelBadge
|
||||
@@ -99,13 +100,20 @@ export function NoteEditorFullPage({ onClose }: NoteEditorFullPageProps) {
|
||||
/>
|
||||
))}
|
||||
{!readOnly && (
|
||||
<GhostTags
|
||||
suggestions={state.filteredSuggestions}
|
||||
addedTags={state.labels}
|
||||
isAnalyzing={state.isAnalyzingSuggestions}
|
||||
onSelectTag={actions.handleSelectGhostTag}
|
||||
onDismissTag={actions.handleDismissGhostTag}
|
||||
/>
|
||||
state.quotaExceededFeature === 'auto_tag' ? (
|
||||
<InlinePaywall
|
||||
feature="auto_tag"
|
||||
onDismiss={() => actions.setQuotaExceededFeature(null)}
|
||||
/>
|
||||
) : (
|
||||
<GhostTags
|
||||
suggestions={state.filteredSuggestions}
|
||||
addedTags={state.labels}
|
||||
isAnalyzing={state.isAnalyzingSuggestions}
|
||||
onSelectTag={actions.handleSelectGhostTag}
|
||||
onDismissTag={actions.handleDismissGhostTag}
|
||||
/>
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
@@ -124,6 +132,12 @@ export function NoteEditorFullPage({ onClose }: NoteEditorFullPageProps) {
|
||||
|
||||
{/* Content area — max-w-3xl for wider reading column */}
|
||||
<div className="max-w-3xl mx-auto w-full space-y-8 pb-32">
|
||||
{state.quotaExceededFeature === 'reformulate' && (
|
||||
<InlinePaywall
|
||||
feature="reformulate"
|
||||
onDismiss={() => actions.setQuotaExceededFeature(null)}
|
||||
/>
|
||||
)}
|
||||
<NoteContentArea />
|
||||
|
||||
{!readOnly && (
|
||||
|
||||
Reference in New Issue
Block a user