# Changelog

All notable changes to Moey. The format follows [Keep a Changelog](https://keepachangelog.com/), and versions follow [Semantic Versioning](https://semver.org/) (before 1.0, a minor version may change things that already exist).

## 0.3.1 - 2026-11-28

- **Fixed: Griddy inside a box that scrolls could flip back and forth forever.** When the grid's height was right at the box's edge, its items were tall enough to bring up a scrollbar, the scrollbar made the grid narrower and the items shorter, the scrollbar went away again, and so on, every frame; some items could sit past the grid's edge. Griddy now notices the flip-flop and settles on the narrower layout until the width really changes.

## 0.3.0 - 2026-11-28

- **Masonry is now Griddy.** `.griddy`, `data-moey-griddy`, `.griddy-dense`, `--mo-griddy-min` and `Moey.griddy()`, with its own docs page next to CSS Grid. The old names (`.masonry`, `.masonry-dense`, `--mo-masonry-min`, `data-moey-masonry`, `Moey.masonry()`) still work, and the old docs address forwards to the new page.
- **New: gliding.** `.griddy-glide` makes the items already on the page slide to their new place (.4s) when the layout changes: an item gets wider, the columns or the gap change, the window is resized, a filter hides some. An item placed for the first time goes straight to its spot, so new items never fly in from a corner. Griddy now also lays out again when a class changes the columns, the gap or an item's width, and when fonts arrive.
- **New: more ways to arrive.** `data-moey-enter` takes a value: `pop` (grows from nothing, 55ms apart), `rise`, `drop`, `fade`, `zoom`, `slide`, `flip`, `blur` or `none`. No value is today's fade up. `data-moey-enter-first` makes the items already on the page arrive too, `Moey.enter(list, items?)` plays it again, and `--mo-enter-stagger` sets the wait between items. Items appended by any script arrive, not only Moey's infinite scroll.
- **Infinite scroll: `data-moey-infinite="once"`** shows the Load more button the first time, then loads by itself (up to `data-moey-infinite-auto` loads, then the button again). `data-moey-infinite-auto="all"` never stops, and `data-moey-infinite-more` changes the button's words.
- **The Load more button stays in place while loading**, with a spinner and "Loading…" inside it, instead of being replaced by a spinner, so nothing on the page jumps. If the button goes away after a click, keyboard focus moves to the first new item.
- **Fixed: `data-moey-infinite="button"` always waits for the button**, as documented. One click used to turn on automatic loading for 3 more pages.
- **Dialogs, drawers and sheets close smoothly.** While closing, their parts used to fall out of their top-to-bottom layout into one row for a moment, so the content jumped and flickered. They now keep their exact size and layout until they're gone, and a dialog closes with a plain fade instead of shrinking.
- **Lighter scrolling: no blur behind floating bars by default.** The app header, tab bar, sticky form buttons and chat day labels are now slightly see-through (97%, the new `--mo-glass` setting) instead of frosted, and the video play button is a solid dark circle. A blur is redrawn every time the page moves behind it, which costs smoothness and battery on older phones.
- **New: `.frosted`** brings the frosted-glass look back on any of those bars, or on anything with a background. `.navbar-blur` still does the same for the navbar.
- **Embeds are generic: Moey no longer knows about any video site.** The lightbox has a new `data-type="embed"` for any video player's embed address (shown in a 16:9 frame), and click-to-load embeds (`data-moey-embed`) load `data-src` (else `href`) exactly as given. **Changed:** YouTube and Vimeo links are no longer recognized or rewritten; use the site's embed address with `data-type="embed"` in the lightbox, or in `data-src` for an embed, with the site's own options (autoplay, privacy mode) in the address.
- **Dialogs open faster.** The 2px blur behind dialogs, drawers, sheets and the command palette is gone (the dim stays). It was barely visible, but it stalled the first opening in a browser session by about 0.1s and made every frame of the animation heavier: the first opening's slowest frame went from 146ms to 49ms, later ones from 28ms to 21ms.
- **The command palette closes smoothly too**, with the same plain fade and no reflow.
- **A flush list straight in a card or dialog lines up.** A `.list-group-flush` placed directly in a `.card` (no `.card-body` around it), or directly in a dialog, drawer or sheet, had no side padding, so its rows touched the edges. It now gets the card's or dialog's padding and lines up with the title.
- **Data tables, expandable rows:** the detail panel is inset evenly (it had no space above it).
- **Data tables, grouped rows:** no empty strip between the header and the first group. Group headers now stick at the header's real height instead of a guessed 44px.
- **Data tables, checkboxes with a fixed first column:** the name column's header stays above the rows scrolling under it, and the name column sits flush against the checkbox column, with no gap showing other columns through.
- **Sortable headers:** right-aligned ones (Total, Price) no longer sit 2px higher than the others.
- **Phone sheets from menus, selects and pickers slide away.** On phones they used to vanish in one frame when closed; now they slide back down at full size, the reverse of how they open.

## 0.2.0 - 2026-11-26

- **Masonry places items exactly.** Each item gets its own position (the shortest column so far) instead of 1px grid rows. It measures the real layout size, so zoom, scaling or an entrance animation no longer makes items overlap; gaps stay exact on long pages; and very long feeds work in every browser (Firefox stops 1px grid rows at about 10,000px).
- **New items glide in:** `data-moey-enter` (`="fade"`, `="zoom"`) on any list or grid animates items added later, such as infinite scroll and "Load more". Items that only move don't animate.
- **`.dialog-fullscreen-phone`:** a normal dialog on larger screens, the whole screen on phones instead of a bottom sheet.
- **Page-wide dialog colors:** `--mo-dialog-bg` and the new `--mo-dialog-fg` can be set on `:root` and every dialog, drawer and sheet follows (before, each dialog set its own `--mo-dialog-bg`, so a page-level value was ignored).
- **Stat tiles fit small phones.** Two to a row at 280px, the value no longer gets cut off and the icon no longer hangs over the next tile: the value scales down a little on small screens, and the icon moves under the label when they don't fit side by side.
- **Smooth scrolling only for in-page links.** `html` no longer has `scroll-behavior: smooth`; moey.js turns it on just for a click on a `#link`. Scripts that scroll the page (`scrollTo`, `scrollIntoView`) land at once again.

## 0.1.0 - 2026-11-24

The first release.

- **One stylesheet, one script, no dependencies.** `dist/moey.css` (cascade layers: tokens, reboot, layout, content, forms, components, helpers, utilities) and `dist/moey.js`, plus minified copies. Inter and JetBrains Mono are bundled and self-hosted.
- **Mobile first.** Every page works down to 280px wide with no sideways scrolling; menus and dialogs become bottom sheets on phones and sit on the on-screen keyboard; fields never zoom the page.
- **Colors and themes.** 14 named colors × 12 shades, six strengths per component, painted areas (`theme-<color>-<strength>`), light and dark mode, and a brand switch (`data-mo-brand`), black "tuxedo" by default. Contrast checked to WCAG AA in both modes.
- **Layout.** Containers, a 12-column grid, CSS grid with `grid-cols-*` and `grid-min-*`, masonry, an app shell and sidebar, container queries, right-to-left.
- **Forms.** Fields, Moey dropdowns for every select, checkboxes, switches (also with a word inside), range, color picker, input groups, floating labels, chips, combobox, datepicker, time picker, OTP, password strength, validation, and rich text with the Mob editor.
- **Components.** Accordion, alert, avatar, badge, bottom sheet, breadcrumb, button, card, carousel, dialog, drawer, list group, menu, nav, navbar, tab bar, pagination, popover, progress, scrollspy, spinner, tabs, toasts, tooltip and more.
- **Work-app extras.** Data tables you edit in place (virtual scrolling, expandable, tree and grouped rows), charts, Kanban, split view, calendar, chat (with files, pictures and voice notes), keyboard shortcuts, tours, command palette, notification center, swipe actions, pull to refresh, sortable lists, filter & sort, infinite scroll, lightbox, audio and video player, click-to-load embeds.
- **Utilities.** Display, flex, grid, spacing (the number × 4px), sizing, text, colors, backgrounds, borders, effects, position, overflow, aspect ratio, interactions. Phone first, with responsive prefixes.
- **Accessible by default.** Keyboard support, focus rings, screen-reader roles and announcements, reduced motion.
- **Smaller builds.** `node build.mjs --without=… --breakpoints=… --out=…`.
- **For AI assistants.** `dist/ai-rules.md`, and `docs/llms.txt` / `docs/llms-full.txt`.
