Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 3, 2025

Project dropdown shows stale cached list after creating a new project within the same organization.

Changes

Modified src/lib/components/breadcrumbs.svelte

  • Added check for current project existence in cached list to shouldReloadProjects reactive statement
  • Triggers reload when navigating to a project not present in the dropdown cache
$: shouldReloadProjects = isLoadingProjects
    ? false
    : currentProject && loadedProjects.projects.length
      ? loadedProjects.projects[0].teamId != currentProject.teamId ||
        !loadedProjects.projects.some((p) => p.$id === currentProject.$id)
      : !loadedProjects.projects.length;

Previously only reloaded on team ID change or empty cache. Now also reloads when current project is missing from cache.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • o1.ingest.sentry.io
    • Triggering command: node (vitest) (dns block)
    • Triggering command: node build.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Project dropdown doesn't update</issue_title>
<issue_description>### 👟 Reproduction steps

  1. Create a project
  2. Open the project dropdown

👍 Expected behavior

It has the new projects

👎 Actual Behavior

It doesn't:

Image

Despite the org having 2 projects:

Image

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@appwrite
Copy link

appwrite bot commented Nov 3, 2025

Console

Project ID: 688b7bf400350cbd60e9

Sites (1)
Site Status Logs Preview QR
 console-stage
688b7cf6003b1842c9dc
Ready Ready View Logs Preview URL QR Code

Tip

You can use Avatars API to generate QR code for any text or URLs.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 3, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI changed the title [WIP] Fix project dropdown not updating with new projects Fix project dropdown not refreshing after project creation Nov 3, 2025
Copilot AI requested a review from stnguyen90 November 3, 2025 22:44
Copilot finished work on behalf of stnguyen90 November 3, 2025 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Project dropdown doesn't update

2 participants