-
Notifications
You must be signed in to change notification settings - Fork 1k
Added toggle on/off for last updated for where datarooms name #1767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@AshishViradiya153 is attempting to deploy a commit to the mftsio Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughA new boolean field, Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SettingsPage
participant API
participant Database
User->>SettingsPage: Toggle "Show Last Updated"
SettingsPage->>API: PATCH /datarooms/:id { showLastUpdated }
API->>Database: Update Dataroom.showLastUpdated
Database-->>API: Success/Failure
API-->>SettingsPage: Response
SettingsPage->>User: Show toast, update toggle state
sequenceDiagram
participant User
participant DataroomNav
participant API
participant Database
User->>DataroomNav: Visit dataroom page
DataroomNav->>API: Fetch dataroom data (includes showLastUpdated)
API->>Database: Query Dataroom (with showLastUpdated)
Database-->>API: Dataroom data
API-->>DataroomNav: Dataroom data
alt showLastUpdated == true
DataroomNav->>User: Render "Last updated" timestamp
else showLastUpdated == false
DataroomNav->>User: Hide "Last updated" timestamp
end
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
npm error Exit handler never called! 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (7)
🧰 Additional context used🧬 Code Graph Analysis (1)components/view/dataroom/nav-dataroom.tsx (1)
🔇 Additional comments (11)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
New Features
Bug Fixes
Chores