Skip to content

Island rhythms/projection redesign#166

Merged
vkarpov15 merged 34 commits intomainfrom
IslandRhythms/projection-redesign
Mar 25, 2026
Merged

Island rhythms/projection redesign#166
vkarpov15 merged 34 commits intomainfrom
IslandRhythms/projection-redesign

Conversation

@IslandRhythms
Copy link
Copy Markdown
Contributor

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
studio Ready Ready Preview, Comment Mar 25, 2026 8:50pm

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Redesigns the Models “table” view projection UX to be inline (projection text input + add/remove columns) and persists projection selections per model, along with associated layout/styling updates.

Changes:

  • Add per-model projection persistence and new projection manipulation methods (add/remove/reset/all, parse projection input).
  • Replace the old projection modal/table header UI with an inline projection bar + add-field dropdown.
  • Refactor layout/CSS for the table/json views and the documents header area.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 9 comments.

File Description
frontend/src/models/models.js Adds projection persistence/parsing and new projection UI state/handlers; updates URL sync behavior.
frontend/src/models/models.html Replaces projection modal with inline projection controls and add-field dropdown; adjusts table/json rendering.
frontend/src/models/models.css Introduces new projection/table/dropdown styling and layout changes for documents area.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread frontend/src/models/models.js Outdated
Comment thread frontend/src/models/models.css
Comment thread frontend/src/models/models.html Outdated
Comment thread frontend/src/models/models.css
Comment thread frontend/src/models/models.html Outdated
Comment thread frontend/src/models/models.js
Comment thread frontend/src/models/models.js Outdated
Comment thread frontend/src/models/models.js Outdated
Comment thread frontend/src/models/models.css Outdated
Copy link
Copy Markdown
Member

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

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

The overflow behavior on this table needs some work: Horizontal scrollbar doesn't show up for large data sets because you can't scroll to the bottom (video 1)

Screencast.from.2026-02-25.21-34-58.mp4

Also the "copy" tooltip for individual fields gets clipped by overflow: hidden:

Image

Comment thread frontend/src/models/models.css
Comment thread frontend/src/models/models.js Outdated
Comment thread frontend/src/models/models.js Outdated
@vkarpov15
Copy link
Copy Markdown
Member

Oh and 1 more thing: also need projections for the JSON view

@IslandRhythms
Copy link
Copy Markdown
Contributor Author

@IslandRhythms
Copy link
Copy Markdown
Contributor Author

The merge from main undid a lot and the feedback here indicates that another swing needs to be taken so its just better to open a new PR at this point

@IslandRhythms
Copy link
Copy Markdown
Contributor Author

Scratch that, its because of how it looks without a workspace

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 14 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread frontend/src/models/models.js Outdated
Comment thread backend/actions/Model/getDocumentsStream.js Outdated
Comment thread frontend/src/models/models.js
Comment thread frontend/src/models/models.js Outdated
Comment thread frontend/src/models/models.js Outdated
Comment thread backend/helpers/getSuggestedProjection.js Outdated
Comment thread backend/actions/Model/getDocuments.js Outdated
Comment thread backend/actions/Model/getSuggestedProjection.js Outdated
Comment thread frontend/src/models/models.js Outdated
Comment thread frontend/src/models/models.js Outdated
@IslandRhythms
Copy link
Copy Markdown
Contributor Author

Also, I thought I had. I think its worth considering that the table view should only support projections so you have one view that shows data concisely and one view that shows everything so you don't have to go back and forth with the projection or one of the fields is a bit messy (array, embed, mixed) so you wouldn't really be able to view that in the table view anyway

Copy link
Copy Markdown
Member

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

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

Overall this is really good I just had a couple of minor things to patch up. Also right now when you click "select" there's no indication of which fields are selected.

Screencast.from.2026-03-22.22-21-12.mp4

Comment thread backend/actions/Model/getDocuments.js Outdated
Comment thread backend/helpers/getSuggestedProjection.js Outdated
Comment thread backend/helpers/getSuggestedProjection.js Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 16 out of 18 changed files in this pull request and generated 7 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread backend/helpers/parseFieldsParam.js
Comment thread frontend/src/models/models.css
Comment thread frontend/src/list-string/list-string.html
Comment thread frontend/src/list-mixed/list-mixed.html
Comment thread test/Model.streamDocumentChanges.test.js
Comment thread frontend/src/models/models.js Outdated
Comment thread frontend/src/models/models.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@vkarpov15 vkarpov15 merged commit eacd06d into main Mar 25, 2026
30 checks passed
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.

3 participants