@@ -626,56 +672,46 @@ const MyChores = () => {
Current Filter: {searchFilter}
)}
- {filteredChores.length === 0 &&
- archivedChores==null &&
- (
-
-
-
- Nothing scheduled
-
- {chores.length > 0 && (
- <>
-
- >
- )}
- ,
- )}
- {(searchTerm?.length > 0 || searchFilter !== 'All') &&
- filteredChores.map(chore => (
-
+
- ))}
+
+ Nothing scheduled
+
+ {chores.length > 0 && (
+ <>
+
+ >
+ )}
+
+ )}
+ {(searchTerm?.length > 0 || searchFilter !== 'All') &&
+ filteredChores.map(chore =>
+ renderChoreCard(chore, `filtered-${chore.id}`),
+ )}
{searchTerm.length === 0 && searchFilter === 'All' && (
{choreSections.map((section, index) => {
@@ -735,17 +771,7 @@ const MyChores = () => {
my: 0,
}}
>
- {section.content?.map(chore => (
-
- ))}
+ {section.content?.map(chore => renderChoreCard(chore))}
)
@@ -797,17 +823,7 @@ const MyChores = () => {
- {archivedChores?.map(chore => (
-
- ))}
+ {archivedChores?.map(chore => renderChoreCard(chore))}
>
)}
diff --git a/src/views/Settings/APITokenSettings.jsx b/src/views/Settings/APITokenSettings.jsx
index b896688..2d71b42 100644
--- a/src/views/Settings/APITokenSettings.jsx
+++ b/src/views/Settings/APITokenSettings.jsx
@@ -24,7 +24,7 @@ const APITokenSettings = () => {
const [tokens, setTokens] = useState([])
const [isGetTokenNameModalOpen, setIsGetTokenNameModalOpen] = useState(false)
const [showTokenId, setShowTokenId] = useState(null)
- const { userProfile, setUserProfile } = useContext(UserContext)
+ const { userProfile } = useContext(UserContext)
useEffect(() => {
GetLongLiveTokens().then(resp => {
resp.json().then(data => {
@@ -56,9 +56,16 @@ const APITokenSettings = () => {
chores
{!isPlusAccount(userProfile) && (
-
- Not available in Basic Plan
-
+ <>
+
+ Plus Feature
+
+
+ API tokens are not available in the Basic plan. Upgrade to Plus to
+ generate API tokens for integrating with external systems and
+ automating your tasks.
+
+ >
)}
{tokens.map(token => (
diff --git a/src/views/Settings/Settings.jsx b/src/views/Settings/Settings.jsx
index 58c98f2..42f7af3 100644
--- a/src/views/Settings/Settings.jsx
+++ b/src/views/Settings/Settings.jsx
@@ -422,9 +422,15 @@ const Settings = () => {
Webhooks allow you to send real-time notifications to other
- services when events happen in your Circle. Use the webhook URL
- below to
+ services when events happen in your Circle. Configure a webhook
+ URL to receive real-time updates.
+ {!isPlusAccount(userProfile) && (
+
+ Webhook notifications are not available in the Basic plan.
+ Upgrade to Plus to receive real-time updates via webhooks.
+
+ )}
{
Enable webhook notifications for tasks and things updates.{' '}
{userProfile && !isPlusAccount(userProfile) && (
- Not available in Basic Plan
+ Plus Feature
)}
diff --git a/src/views/Settings/StorageSettings.jsx b/src/views/Settings/StorageSettings.jsx
index 66115e1..114e6c7 100644
--- a/src/views/Settings/StorageSettings.jsx
+++ b/src/views/Settings/StorageSettings.jsx
@@ -1,22 +1,34 @@
import { Capacitor } from '@capacitor/core'
-import { Button, Card, Divider, LinearProgress, Typography } from '@mui/joy'
-import { useEffect, useState } from 'react'
+import {
+ Button,
+ Card,
+ Chip,
+ Divider,
+ LinearProgress,
+ Typography,
+} from '@mui/joy'
+import { useContext, useEffect, useState } from 'react'
import { useNavigate } from 'react-router-dom'
+import { UserContext } from '../../contexts/UserContext'
import { GetStorageUsage } from '../../utils/Fetcher'
+import { isPlusAccount } from '../../utils/Helpers'
const StorageSettings = () => {
const Navigate = useNavigate()
+ const { userProfile } = useContext(UserContext)
const [usage, setUsage] = useState({ used: 0, total: 0 })
const [loading, setLoading] = useState(true)
useEffect(() => {
- GetStorageUsage().then(resp => {
- resp.json().then(data => {
- setUsage(data.res)
- setLoading(false)
+ if (isPlusAccount(userProfile)) {
+ GetStorageUsage().then(resp => {
+ resp.json().then(data => {
+ setUsage(data.res)
+ setLoading(false)
+ })
})
- })
- }, [])
+ }
+ }, [userProfile])
const percent =
usage.total > 0 ? Math.round((usage.used / usage.total) * 100) : 0
@@ -30,13 +42,42 @@ const StorageSettings = () => {
Server Storage Usage
+ {!isPlusAccount(userProfile) && (
+
+ Plus Feature
+
+ )}
This is the storage used by your account on our servers (e.g. files,
images, and data you have uploaded).
- {loading ? (
- Loading...
+ {!isPlusAccount(userProfile) ? (
+ <>
+
+
+ -- MB used / -- MB total (--)
+
+
+ Server storage monitoring is not available in the Basic plan.
+ Upgrade to Plus to track your server storage usage.
+
+ >
+ ) : loading ? (
+ <>
+
+ Loading...
+ >
) : (
<>