Skip to content

Studio: organize Data settings and make archives searchable - #10974

Merged
mahiatlinux merged 12 commits into
unslothai:mainfrom
shimmyshimmer:feat/studio-data-settings-cleanup
Sep 15, 2026
Merged

mahiatlinux merged 12 commits into
unslothai:mainfrom
shimmyshimmer:feat/studio-data-settings-cleanup

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Summary

Data settings mixed archives, export tools, and deletion controls in one long list. Managed and archived chats also used wide date/project columns with no search. Media archives had the same layout and only exposed one page at a time.

  • Group Data controls into chats and archives, import and export, deletion, and files. Add matching chat, image, video, and audio icons and remove app names from import descriptions.
  • Replace archive tables with rounded lists, dates beneath titles, and clear row actions. Group chats by project.
  • Search managed and archived chats by title or project name, including archived projects. Add searchable project filters, single/compare filters, and updated, created, oldest, and alphabetical sorting.
  • Search all archived images, videos, and audio. Read metadata in bounded pages, render 20 results at a time, and keep thumbnails lazy with the existing cache budget. Stop on failed or stalled pages and offer retry.
  • Add unarchive and delete actions for all archive items or the current search results. Confirm bulk deletion with a fixed snapshot of the affected items. Keep sandbox deletion adjustable for chats.
  • Preserve selected chat IDs across live refreshes and pagination. Selecting or deselecting visible chats preserves offscreen selections. Clear managed selections when filters change. Block duplicate archive actions and lock deletion choices while requests are pending. Preserve media page boundaries during concurrent restores or deletes.
  • Fix Data settings search from subpages without interrupting active exports, and handle failed chat-count loads.
  • Localize library controls, project labels, search, bulk actions, empty states, confirmations, and dates. Add 72 messages across all 12 locale catalogs. Localized project labels also drive search, including missing projects. Sort titles and project names using the selected app locale, including title tie-breaks for date sorting.
  • Align settings back arrows and titles with the content edge. Preserve the button hit area and place the close button on the opposite edge in right-to-left layouts.
  • Stabilize an existing Unicode search-budget test with a deterministic clock. Its machine-speed-dependent assertion also failed on the unchanged PR base.

The existing deletion APIs and project workspace protections remain in use. No backend, training, inference, or hardware paths change. Media records do not contain project links, so project filters apply to chats.

Validation

Bulk confirmation check follow-up

  • Correct the stale 23-item bulk-delete heading assertion to match the localized UI: "Delete archived items (23)".
  • Reproduced the mismatch for images, videos, and audio. All three affected browser cases now pass, retaining checks that all pages load before confirmation and canceling leaves every item intact.
  • Python lint, repository Python formatting, and diff checks pass. This follow-up changes only the test assertion. No CI or full test-suite results were awaited.

Selection and locale sorting follow-up

  • Reproduced a selected chat disappearing from bulk actions when a live refresh moved it past row 20. Reproduced Chinese titles keeping English ordering after switching the app language.
  • All 13 focused library tests pass. They cover selected-locale ordering, date-sort ties, default server order, search, and date formatting.
  • All 26 focused browser checks pass in Chrome. They cover selection across refreshes and pagination, selecting visible rows without losing hidden selections, bulk-action IDs, explicit filter clearing, and English/Chinese/Japanese sorting across chats, projects, images, videos, and audio.
  • Full typecheck, production build, startup bundle budget, targeted ESLint, Python lint, and repository Python formatting pass. No CI or full test-suite results were awaited.

Localization follow-up

  • Reproduced the mixed-language UI in Spanish and confirmed that searching for "Sin proyecto" failed to find a chat with no project before the fix.
  • 12 focused library tests pass, including localized project matching, missing-project groups, media search, and date formatting.
  • 62 focused browser checks pass in Chrome across all 12 locales. They cover chat and media controls, project search, selection, empty states, confirmations, dates, settings-search navigation, and changing language while an archive stays open.
  • Full typecheck, production build, strict locale parity, Python lint, and the adjusted startup bundle budget pass. ESLint reports the same seven existing media import/effect findings on both sides of this follow-up, with no new findings.
  • The locale messages add 2,726 raw bytes and 727 gzip bytes to startup, keeping 85 eager chunks. The raw budget moves from 5,500,000 to 5,510,000 bytes to cover the measured 5,502,720 bytes. Non-English catalogs remain loaded on demand.
  • No CI or full test-suite results were awaited for this follow-up.

Earlier validation

  • All 7,524 frontend tests passed before the localization follow-up.
  • 112 browser checks passed in each of Chrome 152, Edge 153, Firefox 153, and WebKit 26.5, for 448 checks total. The committed script uses memory-only fixtures and is wired into Linux and Windows frontend CI.
  • Coverage included 447-item media archives, matches beyond the first page, archived project names, paired chats, combined filters, sorting, failed/stalled pages, pagination during restores, deletion failures, sandbox choices, pending-action locks, and keyboard/layout checks at 360, 768, and 1280 pixels in light and dark themes.
  • Another 276 layout checks passed across Chrome, Edge, Firefox, and WebKit: all 15 main settings headings and nine subpages at three widths in both text directions.
  • All 87 related CI helper tests and the earlier 335 backend storage/sandbox tests passed. Backend code is unchanged.
  • Across the complete PR, startup increases by 3,800 raw bytes and 1,076 gzip bytes. The Data tab continues to load separately.
  • A local Node benchmark filtering/sorting 10,000 chats over 100 runs measured a median of 1.72 ms and a 95th percentile of 1.96 ms. This is a local measurement, not a guarantee for every device.

Local execution was on macOS. Linux and Windows verification remains with CI. Native Safari automation is disabled on this host; WebKit results do not establish a native Safari pass.

@chatgpt-codex-connector

This comment has been minimized.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

This comment has been minimized.

@shimmyshimmer shimmyshimmer changed the title Studio: organize Data settings and add sandbox deletion choices Studio: organize Data settings and make archives searchable Sep 15, 2026
chatgpt-codex-connector[bot]

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

chatgpt-codex-connector[bot]

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d70d077255

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@mahiatlinux

mahiatlinux commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Verified and repaired at 305693264cee992a3f28a289d4e6cfef53b9a5cb, against merge base f93c523f09c09870c851a883557f2f5882787db6.

Thumbnail follow-up

305693264 retains visible thumbnail IDs while replacing the intersection observer. With six 6 MiB PNG fixtures, the prior head downloaded a seventh thumbnail after sorting. The fix stays at six through sorting and searching, for images and videos in Chromium 153 and Firefox 155. All 219 Data settings browser checks pass in Google Chrome 153.0.8010.47 on this final head. All 61 related unit tests, typecheck, production build, bundle budget, Python lint and formatting pass. The six screenshot pairs were recaptured and inspected at this head. Observer delivery is asynchronous (MDN); clearing visibility before its first callback exposed visible blobs to eviction.

Confirmed fixes at d8c87fb78

  • Restoring 23 archived images emitted 23 gallery refresh notifications. The repaired batch emits one. All 15 image/video/audio cases pass, including partial success, failure on the first item, single restores, and deletion without a refresh.
  • The existing selection-label test passed on base and failed on the original head because it expected a literal English label. 7b803e144 checks the translation key and its English value.
  • The original browser suite reopened Settings before its closing dialog unmounted and reused stale archive state. The fixture now waits for hidden dialogs to leave the DOM before reseeding.

Executed checks

  • 243 focused Node tests passed: library filtering/sorting, bulk selection, gallery flags, thumbnails, and find-in-page.
  • 209 Data settings browser checks passed in Google Chrome 153.0.8010.47 and 209 in Playwright Firefox 155.0. These cover all 12 locales, filtering, pagination, selection, deletion scope, failure/retry, settings-search navigation, and responsive layouts. The final 15 notification cases also passed in Chromium 153.0.8010.12.
  • Microsoft Edge 153.0.4234.32 passed all 215 browser checks, including the final 15 notification cases.
  • The repaired prospective merge d93751311 passed the same 243 focused tests and all 31 workflow guards; the earlier integration failures are fixed in current upstream.
  • Typecheck, production build, startup bundle budget, strict locale parity, Python lint, repository Python formatting, and diff checks passed.
  • Targeted ESLint reports the same seven findings on the original and repaired heads.
  • The three workflow guard failures from the earlier CI run reproduce unchanged on both its integration base ae295db16 and merge result 5f16b724f; all 31 guards pass at this PR's merge base. They are pre-existing integration failures.

Linux x86_64, Node 26.8.2, Python 3.12.13, Playwright 1.63.0. Browser execution used the actual Settings components with memory-only API fixtures inside a credential-free sandbox. Screenshots used separate frontend installs, fresh contexts, matching data, English, UTC, light mode, and a 1280×1000 viewport.

Reports, reproduction scripts, environment metadata, and all six screenshot pairs.

Inspected before/after UI

Data controls change from a long list to grouped sections and archive cards. Chat libraries gain search and project groups; media libraries gain search, dates below titles, and explicit bulk actions.

Data settings before and after

Managed chats before and after

Archived chats, images, videos, and audio

Archived chats
Archived images
Archived videos
Archived audio

@mahiatlinux

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d8c87fb783

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@mahiatlinux

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 305693264c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@mahiatlinux
mahiatlinux self-requested a review September 15, 2026 22:08

@mahiatlinux mahiatlinux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Ready to merge, all manually checked.

@mahiatlinux
mahiatlinux merged commit 0ab40fe into unslothai:main Sep 15, 2026
36 of 38 checks passed
danielhanchen added a commit that referenced this pull request Sep 16, 2026
… itself (#11013)

`main` fails **Frontend build + bundle sanity** with nothing on a branch to blame, and has been bought back twice in one day: #10974 added 10,000 bytes and did not survive a single merge, and the next raise added 10,000 more. Each leaves a few kilobytes, which is one locale string, and the next PR to cross it pays for drift it did not cause.

Both halves move together to the headroom the earlier raise chose, which is what the note beside it asked for:

- `rawBytes` to 5,730,000
- `transferBytes` to 1,715,000

Verified on a real runner rather than only locally. The staging run of this branch reports:

```
eager startup JS: 5394.1 KB raw, 1612.3 KB transfer, 84 chunks
within budget (62.5 KB transfer, 201.6 KB raw to spare)
```

Nothing became eager. The eager set is still 84 chunks with the same top five (chat, index, chunk-BO2N2NFS, providers-api, katex); the raw total grew inside chunks that were already eager, the locale messages most of all. That is drift, so there is nothing here to lazy-load.

The per-raise ledger in the comment above the constants, which had grown a paragraph per raise, is reduced to the current measurement and the invariant.
shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
…i#10974)

Group Data settings controls and add searchable, localized chat and media archives. Preserve bulk selection and deletion scope, refresh galleries once per restore batch, and retain visible thumbnails during filtering and sorting.
shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
… itself (unslothai#11013)

`main` fails **Frontend build + bundle sanity** with nothing on a branch to blame, and has been bought back twice in one day: unslothai#10974 added 10,000 bytes and did not survive a single merge, and the next raise added 10,000 more. Each leaves a few kilobytes, which is one locale string, and the next PR to cross it pays for drift it did not cause.

Both halves move together to the headroom the earlier raise chose, which is what the note beside it asked for:

- `rawBytes` to 5,730,000
- `transferBytes` to 1,715,000

Verified on a real runner rather than only locally. The staging run of this branch reports:

```
eager startup JS: 5394.1 KB raw, 1612.3 KB transfer, 84 chunks
within budget (62.5 KB transfer, 201.6 KB raw to spare)
```

Nothing became eager. The eager set is still 84 chunks with the same top five (chat, index, chunk-BO2N2NFS, providers-api, katex); the raw total grew inside chunks that were already eager, the locale messages most of all. That is drift, so there is nothing here to lazy-load.

The per-raise ledger in the comment above the constants, which had grown a paragraph per raise, is reduced to the current measurement and the invariant.
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.

2 participants