Skip to content

Add ability to pin columns in a col list profile - #102

Merged
kflemin merged 4 commits into
mainfrom
column-list-profiles
Oct 23, 2026
Merged

kflemin merged 4 commits into
mainfrom
column-list-profiles

Conversation

@kflemin

@kflemin kflemin commented Oct 23, 2026

Copy link
Copy Markdown
Contributor
  • Restore drag-and-drop ordering and add keyboard-editable order in the profile editor.
  • Add pin/unpin controls for list profiles and persist each column’s order and pinned state.
  • Apply saved profile order and pins to the inventory grid.
  • NEW: allow pinning of derived columns
  • Add regression tests for profile editing and inventory grid behavior.

Copilot AI 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.

🟡 Changes recommended

Save-response races, stale pin callbacks, and keyboard-inaccessible pin controls remain unresolved.

3 open issues
What changed in this PR

Adds saved column ordering and pinning to SEED’s profile editor and applies those settings to the inventory grid.

Changes:

  • Restores drag ordering and adds numeric order editing and pin controls, including support for derived columns.
  • Preserves profile order and pinned state when saving and displaying inventory.
  • Adds regression tests, translated labels, and wrapping editor controls.

Validation was limited to targeted source inspection; tests and live-browser checks were not run.

File Description
src/​app/​modules/​inventory-list/​list/​inventory.component.ts Applies saved profile order and pins to grid columns.
src/​app/​modules/​inventory-list/​list/​inventory.component.spec.ts Tests profile mapping and no-profile behavior.
src/​@seed/​components/​column-profiles/​column-profiles.component.ts Implements ordering, pinning, selection synchronization, and saving.
src/​@seed/​components/​column-profiles/​column-profiles.component.spec.ts Tests profile editing and saved column settings.
src/​@seed/​components/​column-profiles/​column-profiles.component.html Allows editor controls to wrap.
public/​i18n/​fr_CA.json Adds French ordering and pin labels.
public/​i18n/​es.json Adds Spanish ordering and pin labels.
public/​i18n/​en_US.json Adds English labels and removes a duplicate key.

Review effort: Balanced

Comment thread src/@seed/components/column-profiles/column-profiles.component.ts Outdated
sortable: false,
filter: false,
resizable: false,
cellRenderer: this.profileType === 'list' ? this.pinRenderer : undefined,

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.

Added Enter/Space activation for the focused pin cell and suppresses conflicting grid shortcuts. Covered both keys in tests. Commit: 686c9d9.

Comment thread src/@seed/components/column-profiles/column-profiles.component.ts Outdated
kflemin and others added 2 commits October 23, 2026 11:40
Update currentProfile only if it matches the updated profile.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: kflemin <2205659+kflemin@users.noreply.github.com>
@kflemin
kflemin merged commit ee92c0c into main Oct 23, 2026
2 checks passed
@kflemin
kflemin deleted the column-list-profiles branch October 23, 2026 22:32
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