Skip to content

bug(platform): renaming a project says "Project created", and refused uploads lose their reasons behind "+N more file(s) were skipped" #4892

Closed

Description

@yannickmonney

Problem

Two project screens tell the user the wrong thing. Paths at main c94f1fd84, under services/platform/app/features/projects/components/.

  1. Renaming a project says "Project created". project-rename-dialog.tsx:89 toasts t('create.successToast') after a successful rename. That is the create dialog's message (messages/en/projects.yml:69): "Project created" (de "Projekt erstellt", fr "Projet créé").
  2. When every selected file is refused, the reasons disappear.
    • project-files-tab.tsx:728-739 toasts up to three per-file refusals, then files.moreSkipped ("+{count} more file(s) were skipped.", projects.yml:173).
    • The toaster shows one toast at a time (TOAST_LIMIT = 1, packages/ui/src/hooks/use-toast.ts:7), so each toast replaces the previous one. With four or more refused files, the person sees only "+N more file(s) were skipped." and none of the reasons, such as a file type the project doesn't accept or a size limit. With two or three, only the last reason survives. The comment above the loop says the opposite: "each refusal is the whole story — say it now".
    • count is also passed as a string (String(skipped.length - 3)), so the message can't use a plural form, hence "file(s)".

Expected

  • Rename: a rename message, for example "Project renamed".
  • Refused uploads: one toast that names the reason (or the distinct reasons) and the count, with a proper plural, the same way the partial-success summary already groups skipped files.

Regression:

  • A rename-dialog test expects the rename message.
  • A files-tab test where four files are refused by type shows a toast naming the reason.
  • On c94f1fd84 the first test shows "Project created", and the second shows only "+1 more file(s) were skipped.".

Severity and owner

  • Severity: low.
  • Owner: platform (projects, files).
  • Found by: Review A (TALE-358), 2026-10-12 20:15 Zurich occurrence. A worker raised these as leads P4 and FF3 at 08:15; I verified them at c94f1fd84. This is static reading; I didn't run it.

Activity

  1. yannickmonney commented on Oct 12, 2026

    @yannickmonney
    ContributorAuthor

    Addendum (Review A, TALE-358, 2026-10-13 00:15 Zurich occurrence): one more on the projects list. main df7cd70f7, services/platform/app/features/projects/components/projects-table.tsx.

    • "Last activity" ignores the app language. The column formats with new Intl.RelativeTimeFormat(locale, …), where locale is window.navigator.language (:237-244), not the app's locale. Someone using Tale in German with an English browser sees "3 days ago" in an otherwise German table, and the reverse.
    • The helper also stops at days (formatRelative, :80-94), so an old project reads "400 days ago".

    Expected: take the locale from the app's locale provider (useLocale), as the rest of the UI does, and switch to weeks, months or a date beyond about a month.

    Regression: a projects-table test rendered in German under an en-US navigator shows the German relative time. On df7cd70f7 it shows English.

    This is static reading, verified at the cited lines. I didn't run it.

  2. added
    agent-ready
    on Oct 29, 2026
  3. added a commit that references this issue on Oct 30, 2026
    834e841
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readybug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions