Skip to content

add/edit row: fix fields order taking into account columns_view#1755

Merged
lyubov-voloshko merged 2 commits into
mainfrom
fix-column-order
May 5, 2026
Merged

add/edit row: fix fields order taking into account columns_view#1755
lyubov-voloshko merged 2 commits into
mainfrom
fix-column-order

Conversation

@lyubov-voloshko
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 5, 2026 11:56
@lyubov-voloshko lyubov-voloshko enabled auto-merge May 5, 2026 11:56
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 5, 2026

Warning

Rate limit exceeded

@lyubov-voloshko has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 59 minutes and 1 second before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 229ab3fe-01e1-4ea5-ba2c-694f36e7e241

📥 Commits

Reviewing files that changed from the base of the PR and between 59902aa and 2587264.

📒 Files selected for processing (2)
  • frontend/src/app/components/dashboard/db-table-view/db-table-view.component.ts
  • frontend/src/app/components/db-table-row-edit/db-table-row-edit.component.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-column-order

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.

❤️ Share

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

@lyubov-voloshko lyubov-voloshko merged commit d073b1b into main May 5, 2026
14 of 15 checks passed
@lyubov-voloshko lyubov-voloshko deleted the fix-column-order branch May 5, 2026 11:59
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

This PR aims to make the add/edit row form respect the user’s column visibility/order preferences (via columns_view / list_fields) when determining the order of fields shown.

Changes:

  • Updated add/edit row field ordering logic to prefer columns_view when present, falling back to list_fields or row keys.
  • Updated table view “column visibility change” handler to persist both columns_view and an explicitly ordered list_fields (selected columns first, then hidden).

Reviewed changes

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

File Description
frontend/src/app/components/db-table-row-edit/db-table-row-edit.component.ts Tries to order edit/add form fields using columns_view before list_fields.
frontend/src/app/components/dashboard/db-table-view/db-table-view.component.ts Persists list_fields ordering alongside columns_view when toggling column visibility.

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

Comment on lines +202 to +203
if (res.columns_view && res.columns_view.length) {
this.fieldsOrdered = [...res.columns_view].filter((field) => shownFieldsList.includes(field));
Comment on lines +249 to +250
if (res.columns_view && res.columns_view.length) {
this.fieldsOrdered = [...res.columns_view];
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