Studies Moss
v1.0A minimal SaaS research-ops workspace for a small UX research team: studies, the participant panel, sessions and highlights tagged into a searchable repository, in quiet greys with one moss-green accent.
Dirección de la página: /
Incluido
Lo que obtienes- Claro y oscuroUsa los colores de tu tema
- Escritorio, tableta y móvilLas pantallas para las que está hecho
- Paquetes…
- Tamaño del código…
- Ahorra batería30 fps, en reposo cuando está quieto
- Se pausa si no se veFuera de pantalla o en otra pestaña
- Movimiento reducidoTranquilo para quien lo pide
Revisado en cada cambio
Seguridad revisada el 3 dic- Comprobación de tiposTypeScript estricto
- Lint y formatoESLint · Prettier
- Pruebas y buildCapturas en claro y oscuro
- Auditoría de seguridadSin avisos altos ni críticos
- Antigüedad de paquetesCada versión es pública desde hace 7+ días
- CPU en reposoMenos de medio núcleo en reposo, ≤ 30 fps
Código
studies-mossReact
- studies-moss.tsxThe page: the sections in order.
- content.tsEvery word and number: brand, nav links, each section's copy and lists.
- theme.tsThe colors as CSS variables, and the shared class strings.
- README.mdHow to install it, and where to change the text, colors and form.
- pagesOne file per page: the sections it shows, in order.
- insights.tsxInsights (#/insights): Highlights lists every line from sessions with a search and a study filter; Repository finds highlights by tag (one or several, every or any), with how many studies they come from. Results glide to their new places as the filter changes.
- overview.tsxThe overview (#/): today's date and session count, the four numbers, the tagging inbox beside highlights by tag, then today's sessions beside the live feed.
- participants.tsxThe panel (#/participants): search, segment and consent filters, then one row per person with their segment, consent, sessions done and when they were last or are next seen. Check rows to mark consent signed or remove them; Show more pages through all 200.
- sessions.tsxThe sessions list (#/sessions): Upcoming, Today or Past, grouped by day, each row its time range, state, participant, study and moderator. A session a participant just confirmed glows once; open one to take notes and mark it done.
- settings.tsxThe settings page: tags and segments side by side, the session defaults with the team, then Appearance (theme and language).
- sign-in.tsxThe sign-in page (#/sign-in): the logo and the form on one card over the backdrop, without the sidebar and top bar.
- studies.tsxThe studies list (#/studies): status tabs with counts, a method filter and a search, then the studies grouped by status, each with its recruiting progress and owner. Check rows to move or delete several at once from the floating bar.
- sectionsOne file per page section.
- account-menu.tsxThe account menu under the avatar in the top bar: who is signed in, Settings and Sign out; the arrow keys move through it, Escape, Tab or a click outside closes it.
- appearance.tsxSettings → Appearance: the theme (System, Dark or Light), each choice shown as a small preview, and the language (System or one of locales/list.ts).
- bottom-tabs.tsxThe phone's tab bar: the four pages used most, and More, which opens the sidebar in a sheet (Participants, Settings, the live strap).
- bulk-bar.tsxThe floating bulk bar: rises at the bottom while rows are checked, with how many, the page's actions and a way to clear; plus the row checkbox it counts.
- highlight-card.tsxOne highlight: the quote, who said it in which study, and its tags; a tag comes off with its ×, another goes on from Add a tag, and the pencil opens it to edit.
- kpi-strip.tsxThe overview's four numbers in one box split by hairlines: active studies, sessions this week, confirmed bookings and tagged highlights, each with a small trend line. Numbers roll to their new values when the panel replies.
- live-feed.tsxThe live feed: what the team and the panel just did (a participant confirming, a consent signed, a highlight tagged), newest first. A new line slides in at the top as it arrives.
- overlays.tsxWhat opens over any page from the address: a study, session or participant side sheet (?study=, ?session=, ?person=) and the new or edit forms (?new=study|session|participant|highlight, ?edit=). Closing drops those from the address, so Back reopens them.
- person-sheet.tsxA participant's side sheet (?person=P-0001): their segment, consent, city and history on Profile, every session with them on Sessions, and the actions to edit them or book them.
- session-form.tsxThe schedule and reschedule form: the study, the participant, the moderator, the day, the time and the length; it opens with the study or person it came from already picked (?for=, ?who=).
- session-sheet.tsxA session's side sheet (?session=SE-301): who, which study, when and with whom, the state with its next step (Mark confirmed, Mark done, No-show), the notes that save with it, and the highlights already pulled from it.
- sessions-today.tsxToday's sessions in time order: the time, the state glyph, who and which study. The one running now fills a ring as it goes, with the minutes left; a session the participant just confirmed glows once.
- settings-lists.tsxSettings → Tags, Segments and Sessions: the tags highlights are coded with (name, colour, how many use it), the panel's segments, and the booking defaults with the team of moderators.
- sidebar.tsxThe sidebar: the workspace, search with the ⌘K shortcut, the pages in two groups with their counts and a pill that glides to the current one, Settings, and the live strap with its pause.
- sign-in-form.tsxThe sign-in form: email and password with their errors under them, show or hide the password, keep me signed in, and the demo account to fill in; a wrong pair says so above the fields.
- small-forms.tsxThe add and edit forms for a participant (name, email, city, segment, consent) and for a highlight (the line they said, the study, who, the tags); a highlight opened from a session starts with its study and person.
- study-form.tsxThe new study and edit study form: title, goal, method, status, owner, how many participants, the dates and the segments, each checked on save with its error under it.
- study-sheet.tsxA study's side sheet (?study=S-101): its goal, method, owner, dates, segments and recruiting progress, then its sessions and its highlights on their own tabs. Edit and Schedule a session open their forms over it.
- tag-bars.tsxHighlights by tag: one bar per tag, most first, with this week's gain. When a highlight is filed under a tag its bar grows, its count rolls and it glows once; bars that pass each other glide to their new places.
- tag-inbox.tsxThe tagging inbox, the app's signature: new lines from sessions waiting for a tag, each with three suggested tags (keys 1, 2, 3). Picking one flies the chip into that tag's bar, the bar grows and its count rolls, and the row folds away; Undo takes it back out.
- top-bar.tsxThe top bar: the menu button on narrow screens, where you are, the live dot, search, the theme switch, the one main action (+ New study) and the account menu. Its ground blurs only once the page scrolls under it.
- partsWhat several sections share.
- buildWhat several sections share.
- cardsWhat several sections share.
- iris.tsThe iris card style: each card opens as a circle from its center.
- rowsWhat several sections share.
- zigzag.tsThe zigzag row motion: odd rows slide in from the left, even ones from the right, from faint.
- core.tsxThe page's build-in: on first load and on every page switch the cards arrive in the app's card style and their contents build: bars grow, lines draw, rings fill, the list rows on screen ripple in in the app's row motion, numbers count. The two picks are wired in ./index.ts.
- index.tsThe app's two build-in picks, wired here and nowhere else: its card style (cards/) and its row motion (rows/). npm run new-app copies only the two it is given (--cards, --rows).
- appearance.tsHow the app looks right now: dark or light, Glass or Solid, from Settings → Appearance, the page around it and the Style setting.
- avatar.tsxA person's initials in a round badge, tinted with the primary.
- backdrop.tsxThe Glass style's backdrop: what shows through the see-through panels, faded out in Solid; with followBackground it paints your background instead.
- bar-chart.tsxA bar chart: bars grow in, and the picked bar (in the primary), its guide line and tooltip glide to the bar you point at or pick with the arrow keys; a new range morphs the bars instead of drawing them again.
- command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
- dialog.tsxA centered modal dialog (a form, a confirm): rises in, plays its way out, Escape or a tap outside closes it, and the focus goes back where it was.
- field.tsxA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
- flip.tsFLIP for a list that re-sorts or filters: after each change every row that stayed glides from where it was to where it is now. Rows carry data-flip="<id>"; positions are measured inside the list, so a page scroll never reads as a move.
- format.tsHow numbers and dates are written: by Intl, the current language's way ("1,240", "1.240"; "Nov 19", "19 nov."). Add a helper here when a page needs money, times or a list.
- icons.tsxThe logo and the line icons, drawn on a 24-unit grid with round ends.
- language.tsThe app's language: the words every page reads (useWords), how dates and numbers are written (parts/format.ts) and the reading direction. Picked in Settings → Appearance (or System: the page's own language) and kept in this browser; English is built in, any other language loads only when it shows (locales/list.ts).
- line-chart.tsxA line chart with a soft area under it, in the primary: the line draws itself in, the latest point marked, and new values roll the line to its new shape.
- live-clock.tsxOne shared clock for everything live: it ticks only while something on screen listens, the tab is visible and live isn't paused, and the bare button that pauses it. What a tick does (move the demo's time, bring in an event, reload) is the app's, passed to liveClock.
- live.tsThe app's one live clock: every 6 seconds the panel does something (data/live.ts: a confirm, a consent, a new booking) and every page reloads in place; every 5 the running session's ring redraws. It rests while nothing live is on screen, the tab is hidden or live is paused.
- moments.tsThe animations the sidebar, the sign-in card, menus, dialogs, the phone sheet and toasts play, timed by their moments in theme.ts.
- moss.tsxThe small marks every page shares: status glyphs (a ring, a half ring, a filled dot, like a work tracker), tag chips with their colour dot, method and consent chips, initials, and which rows just arrived.
- motion.tsMotion helpers: the reduced-motion check, live, and run-once-in-view.
- read.tsOne read of the fake API by its key, through useApi: useRead("overview"), useRead<"deal">(`deal:${id}`). Each key keeps one load function, so a page that mounts again finds its answer.
- router.tsThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
- scroll-to-view.tsScrolls an element into view moving only its own scroll container, never the page around it.
- select-box.tsxA native select dressed to match the app: no browser arrow, a drawn chevron instead.
- session.tsWhether someone is signed in: a first visit is signed in as the demo account; Sign out holds until the next sign-in, and a sign-in without Keep me signed in lasts only this tab.
- sheet.tsxThe phone sheet: a modal panel that springs in from the left with the sidebar; Escape, a tap outside or its close button slides it away.
- side-sheet.tsxThe detail sheet: a modal panel that slides in from the end edge over the page (a study, a session, a participant), with tabs whose underline glides to the one picked. Escape, a tap outside or its close button slides it away; the address keeps what it shows (?study=S-101&dtab=sessions).
- states.tsxThe data states every page shares: a calm skeleton while loading, an error with Try again, and an empty note with a way out.
- store.tsThe app-wide state several parts share: the theme mode and style (kept in the browser) and the toasts.
- ticker.tsxA number that counts up while its page builds in, and rolls to its new value whenever it changes.
- toasts.tsxThe toasts: short notes that confirm what just happened, at the bottom end.
- use-api.tsLoads data through the fake API with loading, error and retry, remembering each answer so a page you come back to shows at once.
- use-dialog.tsOpens and closes a native <dialog> as a modal; on close it plays its way out first (data-closing), so dialogs, sheets and the palette never vanish in one frame.
- dataThe pretend data and the fake API: swap it for your backend.
- account.tsThe demo account: who is signed in (the account menu shows them) and the email and password the sign-in page takes.
- api.tsThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only.
- db.tsThe pretend database every read and save goes through: the seed copied once, then changed by saves and by the live demo (data/live.ts). Wire your backend and these become its calls.
- highlights.tsThe pretend highlights: lines participants said in sessions, coded with the team's tags, and a few still untagged in the To tag inbox (each with the tags it most likely needs).
- live.tsThe live demo: the panel answering while you watch. Each call is one thing that happens (a participant confirms a session, signs a consent form, a teammate books a new one) through the same database the pages read. Wire your backend's events here instead.
- now.tsThe demo's "now": today at 10:40 plus the real time since the app loaded, so today is busy at any hour; every seeded date is set from it. Wire your backend and use the real time.
- people.tsThe pretend research panel: 200 participants with unique names, and the sessions booked with them (done ones with notes, today's around the demo's 10:40, and invites for the coming days).
- seed.tsThe pretend research team: three researchers at Ledgerly (a bookkeeping app for small businesses), their twelve studies, the tags they code highlights with and the panel's segments. Dates are days from the demo's today (data/now.ts).
- types.tsThe shapes the pretend data and the fake API share: studies, participants, sessions, highlights (the tagged insights), tags, segments and the activity feed.
- views.tsWhat each page reads, worked out from the pretend database: the Overview's numbers, the lists with their counts, one study, session or participant with what hangs off it, and the feed in words.
- localesEvery word the app shows, one JSON file a language; list.ts names them.
- en.jsonOne language's words, with the keys of en.json.
- es.jsonOne language's words, with the keys of en.json.
- list.tsThe languages the app offers, in the picker's order: one JSON file each, en.json the source. To remove one, delete its file and its line; to add one, copy es.json, translate it and add a line. English is built in; the rest load only when picked. TypeScript checks each file has en.json's keys, scripts/check/check-locales.mjs the rest (no extra keys, plural forms, {slots}).
studies-moss.tsx
The page: the sections in order.
Cargando…
- Ideal para
- UX research teams who run a handful of studies a quarter and want studies, panel, sessions and insights in one calm tool.
- Cómo funciona
- Tag a highlight: the chip flies into its tag's bar, the bar grows and the count rolls, while participants confirm sessions live.
- Cómo usarlo
- Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.