Skip to content

Beta to main#42

Merged
remko48 merged 241 commits intomainfrom
beta
Apr 17, 2026
Merged

Beta to main#42
remko48 merged 241 commits intomainfrom
beta

Conversation

@remko48
Copy link
Copy Markdown
Member

@remko48 remko48 commented Mar 31, 2026

No description provided.

rubenvdlinde and others added 30 commits March 3, 2026 10:21
- docs/integrations/i18n.md — explains the library's prop-based
  translation strategy (i18n-agnostic, no internal l10n calls),
  covers @nextcloud/l10n setup, l10n JSON file format, recommended
  i18n.js composable pattern, and a full per-component translatable
  props reference table
- docs/architecture/customization.md — covers all slot-based
  extension points for CnIndexPage: row action menu (actions prop
  + #row-actions slot), Actions dropdown (#action-items), mass
  actions (#mass-actions), header buttons (#header-actions), custom
  cell renderers (#column-{key}), form field overrides
  (#field-{key} / #before-fields / #after-fields), dialog
  replacements (#form-dialog / #delete-dialog), and composing
  sub-components directly

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add documentation for every undocumented or partially-documented
customisation point found in the component analysis:

- Props reference tables (page header, layout, mass actions, columns,
  form fields) — covers show-title, icon, description, row-key,
  row-class, inline-action-count, show-view-toggle, add-label,
  show-mass-*, mass-action-name-field, export-formats, import-options
- Events reference table listing all 17 emitted events
- Card view customisation — #card, #card-badges, #card-actions slots
  and view-mode / show-view-toggle props
- Dynamic row styling via row-class prop with CSS example
- Two-phase dialog pattern — explain confirm → async work → setResult
  flow; document all 7 setXResult() methods and setValidationErrors()
- Programmatic dialog control via openFormDialog(null|row)
- Import dialog #import-fields slot with file scope variable
- Sidebar #search-extra and #columns-extra slot examples
- Inline-action-count examples (controlling overflow behaviour)
- CnDataTable and CnPagination direct-composition props tables
  including scrollable, page-size-options, min-items-to-show,
  page-info-format, and row-class on CnDataTable

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- New prop `defaultTab` (default: 'search-tab') — sets the active tab
  when the sidebar first opens. Accepts any NcAppSidebarTab id, both
  built-in ('search-tab', 'columns-tab') and custom.
- New slot `#tabs` — consumers inject additional NcAppSidebarTab
  components; use order ≥ 3 to place them after the built-ins.
- New event `tab-change` — emitted with the tab id whenever the user
  switches tabs, allowing the parent to persist the choice.
- Binds NcAppSidebar's :active prop and @update:active to track the
  currently open tab internally.
- Update cn-index-sidebar.md props/events/slots tables.
- Update customization.md with sidebar tabs section (default-tab,
  custom tabs via #tabs slot, per-tab content via #search-extra /
  #columns-extra).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds css/index.css at the package root so consumers can import
'@conduction/nextcloud-vue/css/index.css' when installed via npm.
Previously only src/css/index.css existed, causing ESLint import/no-unresolved
failures in procest and pipelinq CI.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ore integration

Adds a new string-first API to both composables that connects directly to
useObjectStore, eliminating ~150 LOC of boilerplate from every list view
and ~80 LOC from every detail view.

useListView(objectType, options?):
- Accepts objectType string + options: { sidebarState, defaultPageSize,
  defaultSort, debounceMs }
- Returns schema, objects, loading, pagination as computed refs from the
  store, plus onSearch (debounced), onSort, onFilterChange, onPageChange,
  onPageSizeChange, refresh
- Handles fetchSchema, fetchCollection, sidebar wiring, and cleanup
  automatically in onMounted / onBeforeUnmount
- Backward compatible: existing useListView(options) calls unchanged

useDetailView(objectType, id, options?):
- Accepts objectType + id (string or Ref) + options: { router,
  listRouteName, detailRouteName }
- Returns object, isNew, loading, saving, editing, showDeleteDialog,
  error, validationErrors, onSave, confirmDelete
- Handles fetch on mount, id-change watcher, create/update/delete with
  optional router navigation and 422 validation error unpacking
- Backward compatible: existing useDetailView(options) calls unchanged

Also rewrites the composables documentation to reflect the new API.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…and-code

fixed store to use baseUrl + updated docs to show defaults
- fetch tags
- delete multiple objects by type and id
Add `userIsAdmin` prop to CnIndexSidebar and CnFacetSidebar, and extend
`filtersFromSchema()` with `isAdmin` and `filterFn` options. Schema
properties with `adminOnly: true` are now hidden from non-admin users,
enabling role-based filter visibility without consumer-side logic.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
I also added a extra slot to be able to more accurately reproduce the original page layout.
todo:
- add this as an "add" option in the CnIndexPage
- test test test
fixed issues with table not being scrollable
todo:
- add this as an "add" option in the CnIndexPage
- test test test
…CnWidgetWrapper, CnWidgetRenderer, CnTileWidget) + useDashboardView composable + simplify filtersFromSchema
rubenvdlinde and others added 26 commits April 9, 2026 10:02
CnChartWidget: replace dynamic import with static import for vue-apexcharts.
CnIndexPage: route all row-click emissions through onRowClick method.
Updates the CnDataTable component to cycle through ascending, descending, and no sort (null) when clicking column headers. This allows users to return the table to its unsorted state.
Implement tri-state sorting to allow clearing table sort
- Add t() from @nextcloud/l10n to 16 components with hardcoded strings
- Use function defaults () => t(...) so translation resolves at runtime
- Props still accept string overrides from consumer apps
- Create l10n/en.json (96 keys, identity-mapped) and l10n/nl.json (Dutch)
- All keys use sentence case per ADR-007
- Use t() built-in parameter substitution instead of .replace() chains
  in CnActionsBar countText computed property
- Remove duplicate header-actions slot from CnConfigurationCard
  (actions slot already exists)
- Remove duplicate header-actions slot from CnVersionInfoCard
  (actions slot already exists)
- Revert structural changes to CnSettingsCard header
- Add docs/architecture/slots.md with naming conventions for all slot
  types (header-actions, actions, row-actions, mass-actions, dialog)
- Add docs/components/cn-object-data-widget.md
- Add docs/components/cn-object-metadata-widget.md

Addresses review feedback on PR #66.
Used by decidesk (3 usages), pipelinq (2), and procest (2).
This slot passes per-widget action buttons through to CnWidgetWrapper's
#header-actions slot. Document the pattern in slots.md.
…ations

feat(i18n): add translation support to all shared components
Rename #header-actions → #actions in all components for consistency.
Every component now uses #actions for header action buttons.

Components updated: CnDashboardPage, CnDetailPage, CnActionsBar,
CnWidgetWrapper, CnDetailCard, CnIndexPage, CnObjectDataWidget,
CnObjectMetadataWidget.

Updated docs/architecture/slots.md to reflect the standard.
…ations

refactor: standardize all header action slots to #actions
Added docs check to quality check and added missing docs
@remko48 remko48 merged commit 2c77ffd into main Apr 17, 2026
6 of 7 checks passed
@remko48 remko48 deleted the beta branch April 17, 2026 12:14
@remko48 remko48 restored the beta branch April 17, 2026 12:15
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