Refactor subscription logic and replace quill-sense references with ritor equivalents

- Updated `getCurrentSubscription` and related functions to reflect terminology changes.
- Adjusted subscription levels and access checks to streamline logic.
- Removed unused cases in `getSubLevel` and optimized conditionals for clarity.
This commit is contained in:
natreex
2026-03-30 21:13:55 -04:00
parent dbbe33b19b
commit e1d87c6997
5 changed files with 14 additions and 17 deletions

View File

@@ -29,7 +29,7 @@ export default function QuillSenseComponent(): React.JSX.Element {
const subLevel: number = getSubLevel(session)
const isGPTEnabled: boolean = isOpenAIEnabled(session);
const isSubTierTwo: boolean = getSubLevel(session) >= 1;
const isSubTierTwo: boolean = getSubLevel(session) >= 2;
const hasAccess: boolean = isGPTEnabled || isSubTierTwo;
const qsOptions: QSOption[] = [
@@ -77,7 +77,7 @@ export default function QuillSenseComponent(): React.JSX.Element {
</div>
</div>
{
isBYOK || subLevel >= 1 ? (
isBYOK || subLevel >= 2 ? (
<>
{view === 'list' ? (
<QuillList handleSelectConversation={handleSelectConversation}/>