shefing

reset list view

by shefing
payload-tools
Admin customization
v3
>=3.0.0
Apache-2.0

Overview

Summary generated from the README

Adds a Reset Preferences button to the list view menu of Payload collections. Clicking it deletes the user's saved list view preferences for that collection through the Payload API and reloads the page, restoring the default view. Collections can be included or excluded through plugin options, and the plugin can be disabled. Requires Payload 3 or later.

Features

  • Reset Preferences button in the collection list view menu
  • Clears saved columns, filters, sort and pagination preferences
  • Include only specific collections via includedCollections
  • Exclude collections via excludedCollections
  • Plugin can be disabled with a single option

Use cases

  • Restore a list view to defaults after messy column or filter changes
  • Give editors a quick way to undo saved list view preferences
  • Limit the reset button to selected collections in the admin panel

From the author

Reset List View Preferences

Installation

npm i @shefing/reset-list-view

183

Stars

8

Forks

89

Open Issues

3 months ago

Last Updated

272

Weekly Downloads

v0.2.14

npm Version

29.7 KB

Unpacked Size

1

Dependencies

Repository stars

183+4 since Sep 6

Show data
Repository stars by day (UTC)
DateStars
Dec 5, 2026183
Dec 4, 2026183
Dec 3, 2026183
Dec 2, 2026183
Dec 1, 2026183
Nov 30, 2026183
Nov 29, 2026183
Nov 28, 2026183
Nov 27, 2026183
Nov 26, 2026183
Nov 25, 2026182
Nov 24, 2026182
Nov 23, 2026182
Nov 22, 2026182
Nov 21, 2026182
Nov 20, 2026182
Nov 19, 2026182
Nov 18, 2026182
Nov 17, 2026182
Nov 16, 2026183
Nov 15, 2026183
Nov 14, 2026183
Nov 13, 2026183
Nov 12, 2026183
Nov 11, 2026183
Nov 10, 2026183
Nov 9, 2026182
Nov 8, 2026182
Nov 7, 2026182
Nov 6, 2026182
Nov 5, 2026182
Nov 4, 2026182
Nov 3, 2026181
Nov 2, 2026181
Nov 1, 2026181
Oct 31, 2026181
Oct 30, 2026181
Oct 29, 2026181
Oct 28, 2026181
Oct 27, 2026181
Oct 26, 2026181
Oct 25, 2026181
Oct 24, 2026181
Oct 23, 2026181
Oct 22, 2026181
Oct 21, 2026180
Oct 20, 2026180
Oct 19, 2026180
Oct 18, 2026180
Oct 17, 2026180
Oct 16, 2026180
Oct 15, 2026180
Oct 14, 2026180
Oct 13, 2026180
Oct 12, 2026180
Oct 11, 2026180
Oct 10, 2026180
Oct 9, 2026180
Oct 8, 2026180
Oct 7, 2026180
Oct 6, 2026180
Oct 5, 2026180
Oct 4, 2026180
Oct 3, 2026180
Oct 2, 2026180
Oct 1, 2026180
Sep 30, 2026180
Sep 29, 2026180
Sep 28, 2026180
Sep 27, 2026180
Sep 26, 2026180
Sep 25, 2026180
Sep 24, 2026179
Sep 23, 2026179
Sep 22, 2026179
Sep 21, 2026179
Sep 20, 2026179
Sep 19, 2026179
Sep 18, 2026179
Sep 17, 2026179
Sep 16, 2026179
Sep 15, 2026179
Sep 14, 2026179
Sep 13, 2026179
Sep 12, 2026179
Sep 11, 2026179
Sep 10, 2026179
Sep 9, 2026179
Sep 8, 2026179
Sep 7, 2026179
Sep 6, 2026179

Shared by 4 plugins in shefing/payload-tools.

npm weekly downloads

271−55 since Sep 6

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 5, 2026271
Dec 4, 2026303
Dec 3, 2026291
Dec 2, 2026252
Dec 1, 2026266
Nov 30, 2026264
Nov 29, 2026267
Nov 28, 2026228
Nov 27, 2026162
Nov 26, 2026128
Nov 25, 2026145
Nov 24, 2026129
Nov 23, 2026129
Nov 22, 2026191
Nov 21, 2026194
Nov 20, 2026217
Nov 19, 2026223
Nov 18, 2026205
Nov 17, 2026215
Nov 16, 2026222
Nov 15, 2026215
Nov 14, 2026237
Nov 13, 2026258
Nov 12, 2026267
Nov 11, 2026267
Nov 10, 2026259
Nov 9, 2026266
Nov 8, 2026207
Nov 7, 2026346
Nov 6, 2026326
Nov 5, 2026382
Nov 4, 2026493
Nov 3, 2026488
Nov 2, 2026476
Nov 1, 2026532
Oct 31, 2026378
Oct 30, 2026392
Oct 29, 2026307
Oct 28, 2026157
Oct 27, 2026168
Oct 26, 2026170
Oct 25, 2026113
Oct 24, 2026126
Oct 23, 202677
Oct 22, 2026110
Oct 21, 2026128
Oct 20, 2026132
Oct 19, 2026129
Oct 18, 2026129
Oct 17, 2026105
Oct 16, 2026145
Oct 15, 2026150
Oct 14, 2026154
Oct 13, 2026146
Oct 12, 2026145
Oct 11, 2026172
Oct 10, 2026164
Oct 9, 2026153
Oct 8, 2026147
Oct 7, 2026136
Oct 6, 2026131
Oct 5, 2026132
Oct 4, 2026106
Oct 3, 2026111
Oct 2, 202696
Oct 1, 202695
Sep 30, 2026151
Sep 29, 2026165
Sep 28, 2026164
Sep 27, 2026169
Sep 26, 2026214
Sep 25, 2026257
Sep 24, 2026283
Sep 23, 2026256
Sep 22, 2026244
Sep 21, 2026267
Sep 20, 2026350
Sep 19, 2026310
Sep 18, 2026302
Sep 17, 2026294
Sep 16, 2026291
Sep 15, 2026290
Sep 14, 2026272
Sep 13, 2026202
Sep 12, 2026231
Sep 11, 2026227
Sep 10, 2026236
Sep 9, 2026263
Sep 8, 2026264
Sep 7, 2026258
Sep 6, 2026326

Each point is npm's rolling 7-day download count.

Health Score

57/100Good

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/888484677-reset-list-view.svg)](https://payloaddirectory.dev/plugins/888484677-reset-list-view)
HTML
<a href="https://payloaddirectory.dev/plugins/888484677-reset-list-view"><img src="https://payloaddirectory.dev/badge/888484677-reset-list-view.svg" alt="Payload Directory"></a>
Updated Aug 18, 2026Created Nov 14, 2024Published May 4, 2026

README

Reset List View Plugin for Payload CMS

A plugin for Payload CMS that adds a "Reset Preferences" button to collection list views, allowing users to reset their list view preferences to the default state.

Features

  • Adds a "Reset Preferences" button to the list view menu of collections
  • Allows users to quickly reset their list view preferences (columns, filters, pagination, etc.)
  • Configurable to include or exclude specific collections

Installation

npm install @shefing/reset-list-view
# or
yarn add @shefing/reset-list-view
# or
pnpm add @shefing/reset-list-view

Usage

Add the plugin to your Payload config:

import { buildConfig } from 'payload/config'
import { CollectionResetPreferencesPlugin } from '@shefing/reset-list-view'

export default buildConfig({
  plugins: [
    CollectionResetPreferencesPlugin({
      // Plugin options here
    }),
  ],
  // Rest of your Payload config
})

Configuration Options

The plugin accepts the following configuration options:

OptionTypeDescriptionDefault
disabledbooleanDisable the pluginfalse
includedCollectionsstring[]List of collection slugs to add the reset button to. If provided, only these collections will have the reset button.undefined
excludedCollectionsstring[]List of collection slugs to exclude from having the reset button. Only used if includedCollections is not provided.undefined

Examples

Add the reset button to all collections:

CollectionResetPreferencesPlugin()

Add the reset button to specific collections:

CollectionResetPreferencesPlugin({
  includedCollections: ['posts', 'categories'],
})

Exclude specific collections from having the reset button:

CollectionResetPreferencesPlugin({
  excludedCollections: ['users', 'media'],
})

Disable the plugin:

CollectionResetPreferencesPlugin({
  disabled: true,
})

How It Works

The plugin adds a "Reset Preferences" button to the list view menu of collections. When clicked, the button makes a DELETE request to the Payload API to delete the user's preferences for that collection's list view, and then reloads the page. This resets the list view to its default state, clearing any custom column configurations, filters, pagination settings, etc.

Roadmap

See the consolidated ROADMAP.md at the repo root and the live RoadMap issues for Reset List View.

P0

  • Granular reset menu — split into Reset columns, Reset filters, Reset sort, Reset page size, Reset all.
  • Per-user default preset — admin can save a view and force it as the default for everyone.

P1

  • Named saved views per user with a quick switcher — pairs with QuickFilter saved presets.
  • Auto-reset on logout option for shared workstations.

P2

  • Admin button to bulk-reset preferences for all users (e.g., after a schema change).

License

MIT

Similar plugins