Commit Graph

137 Commits

Author SHA1 Message Date
Rijk van Zanten
799681682d Soft delete (#395)
* Use higher res image in module avatar

* Remove glitch

* Add soft delete button / flow

* Fix tests
2020-04-13 11:53:04 -04:00
Rijk van Zanten
b3b4417b26 Add permissions store (#393)
* Fetch role nested in user store

* Use nested role in presets

* Add permissions store

* Fix tests
2020-04-13 11:08:21 -04:00
Rijk van Zanten
33062b9dd9 Add latency store / indicator (#392)
* Add latency store and track latency based on user tracking

* Add latency store to dehydration logic

* Add signal icons

* Add latency-indicator component

* Set correct size of latency spinner
2020-04-13 10:08:27 -04:00
Ben Haynes
58a0337582 Various style tweaks (#378)
* public button width and color

* improve menu arrow styling

* menu arrow placement

* define project chooser border

* adjustable min width for menus

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-04-10 17:06:41 -04:00
Rijk van Zanten
311404f092 Add install flow (#377)
* Register install route

* Install semver

* Make sure that loader fades out on top

* Add requirements string to translations

* Add transition between wide and normal

* wip add install panes

* Move tab items one level up to enable lifecycle

* Add all fields in setup

* gst

* Add slug mode to input

* Use slug and watch project key

* Finish installation flow

* Finish installation for new projects

* Fix linter warnings
2020-04-10 16:46:54 -04:00
Rijk van Zanten
c4e18c4ff2 Add updated styling for project chooser route (#375) 2020-04-10 09:37:32 -04:00
Ben Haynes
7c0976441d margin, padding, size, and color tweaks (#374)
* margin, padding, size, and color tweaks

* Remove commented out code

* Use pointer-events instead of double click event

* Use v-deep for v-sheet in v-dialog

* Add newline

* Fix stylelint complaint

* Fix tests

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-04-09 19:27:07 -04:00
Rijk van Zanten
7485a97a3b Public (#373)
* Add note to public page

* Add project chooser on public view

* Optimize loading order

So much nicer to use now

Closes #298

* Fix the private project switcher too

* Add transition to public view

* Prevent project switching if youre already on that project

* [WIP] Add reset password form

* Add request password reset page

* Add jwt-payload util

* Install base-64

* Fix test typing

* Add new errors to translations

* Finish reset password flow

* Fix foreground color on v-notice

* Fix tests

* Allow code in translateError + render project error translated on login

* Remove wrong reference to error component

* Render project key if name is unknown

* Fix date-fns version

* Fix tests
2020-04-09 19:06:15 -04:00
Rijk van Zanten
7a2ee0215f Support link-modules and add docs link (#368)
* Allow link type modules

* Add docs module

* Allow buttons to render as <a>

* Update button readme

* Use link buttons in module sidebar when needed
2020-04-09 10:23:07 -04:00
Rijk van Zanten
943fdf7a38 Fix v-button full-width (#365) 2020-04-08 15:58:26 -04:00
Rijk van Zanten
cf7d25b99f Add roles browse / detail (without permissions) (#364) 2020-04-08 15:53:29 -04:00
Rijk van Zanten
eb7153cbfc Add webhooks settings (#363) 2020-04-08 14:38:03 -04:00
Rijk van Zanten
6979fadb6c Allow hidden modules and add activity module (#362)
* Fix wrong component names

* Hide selection in table when there is no selection prop

* Add activity module

* Support hidden option in module definition
2020-04-08 14:05:44 -04:00
Rijk van Zanten
442ad58ff6 Add files module (#361) 2020-04-08 13:26:43 -04:00
Rijk van Zanten
a9bfa469d9 Add users module (#360)
* Install micromustache

* Add useCollectionPreset composition

* Add detailRoute prop to layouts

Allows for overriding where the detail view is located from the parent

* Add locale translations for users/files/activity

* Update collections module to use new composition / layout prop

* Update useItem useItems to allow for directus_ collections

* Add default width to all fields with no width

* Only fetch comment,create,update,delete activity on detail

* Fix out-transition on sign-out button

* Add users module
2020-04-08 12:35:36 -04:00
Rijk van Zanten
66e7a59c06 Add batch edit mode to detail page in collections module (#357)
* Allow multi-select when selection is active

* Add batch edit on detail page

* Use plural notifications for batch mode

* Fix code smell
2020-04-07 17:37:07 -04:00
Rijk van Zanten
5a2f291400 Add batch mode and unset value on undo (#356) 2020-04-07 16:43:56 -04:00
Rijk van Zanten
28372d8878 Various tiny tweaks (#355) 2020-04-07 16:13:58 -04:00
Rijk van Zanten
897ecfb1db Use items (#354)
* Extract tabular items logic into composition

* Fix racing condition in watchers

* Remove empty test

* Use v-select in detail sidebar tabular

* Fix pagination styles

* Reset to page 1 on sort / limit changes

* Cast limit to string

* Fix button test

* Add content padding to tabular layout
2020-04-07 15:40:49 -04:00
Rijk van Zanten
5d633936c0 Rework save options to be re-usable across modules (#346)
* Add translateShortcut util

* Add prepend/append slots to v-button

* Reduce default list item height + listen to parent dense

* Refactor save/delete logic into composition

* Tweak popper positioning

* Add v-list-item-hint component

* Reset state on primary key change to +

* Tweak save-and-x translations

* Add and use save-options component

* Move activity drawer detail to views folder

* Prevent unnecessary overflow when popper is inactive

* Revert spacing change in popper

* Move comments translation up

* Use translated title for section

* Dont grow full height by default

* Only show comments when you're not creating a new item

* Add notifications to use-item composition

* Add saveAsCopy function to useItem composition

* Use ref for parameter in useCollection

* Fix tests

* Fix codesmells
2020-04-07 11:33:55 -04:00
Rijk van Zanten
9928744f40 New collection modal (#333)
* WIP start on collections modal

* Add titles / system optional fields

* Finish add collection modal

* Fix readonly state in text input

* Fix default value in v-form
2020-04-06 21:44:37 -04:00
Rijk van Zanten
09373558c9 Fix module bar avatar color and tweak color of notifications preview (#330)
Fixes #322
2020-04-06 18:40:46 -04:00
Rijk van Zanten
6a87fbb0c6 Fix drawer contents overflow (#329) 2020-04-06 18:21:21 -04:00
Rijk van Zanten
bba4dae46d Activity sidebar (#327)
* Show activity sidebar in detail page

* Add localized format distance util

* Update use-time-from-now composition to use localized dates

* Install marked

* Add activity delta strings

* Show all activity records in sidebar

* Add correct permutations of users

* Make avatar rounded square

* Finish posting comments

* Remove empty test file

* Fix tests
2020-04-06 15:25:58 -04:00
Jacob Rienstra
417fb4371d Interface textarea (#310)
* textarea component

* textarea component files

* textarea interface

* Update v-textarea

* Fix test

* Remove resize option in textarea

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-04-06 14:07:47 -04:00
Rijk van Zanten
ba94e83d4e Add contextual save options to detail page (#309)
* Add skeleton loader, add loading to v-form, add disabled to v-menu

* Make sure height matches with input

* Add transition to skeleton loader

* Force skeleton loader to adhere to input size on form

* Sneak in this little thing unnoticed
2020-04-03 20:29:04 -04:00
Rijk van Zanten
670103a523 Add global settings form (#303)
* Add settings store

* Use brand variable in app.vue

* wip

* Add global settings form, refactor project error type

* Fix codesmell
2020-04-03 16:13:40 -04:00
Rijk van Zanten
09372c8185 Add 404 route (#299) 2020-04-03 10:16:12 -04:00
Rijk van Zanten
c8793e538b Add dark mode (#297) 2020-04-02 21:18:21 -04:00
Rijk van Zanten
e50000a05a Add v-info component (#296)
* Add v-info component

* Add test placeholder

* Add readme
2020-04-02 20:48:01 -04:00
Rijk van Zanten
f4a1a2a4fd Style the project chooser correctly (#295) 2020-04-02 20:05:36 -04:00
Rijk van Zanten
61d991f4bf Radio buttons (#293)
* Add v-radio component

* Add tests, update storybook
2020-04-02 19:38:46 -04:00
Rijk van Zanten
9f79f744f3 Add notifications inline drawer (#292)
* Render missed notifications inline in drawer

* Fix tests
2020-04-02 15:35:46 -04:00
Rijk van Zanten
eab0c66269 Add ctx menu, note, required flag to v-form (#290)
* Use correct type styles for label

* Fix sup mode in icon

* Add required star and note

* Add ctx arrow

* Add contextual menu to fields

* Add some margin to note
2020-04-02 13:01:55 -04:00
Rijk van Zanten
eaf0dbb385 Type and color treatmeant (#281)
* Switch from roboto to inter

* Add and use new color palette

* Fix tests
2020-04-02 12:10:13 -04:00
Rijk van Zanten
24ba6c0752 [Settings] Add field setup flow (#279)
* Start on field setup modal

* Add field-setup first pane

* Add interface options support

* Use updated button to add field

* Add interface and display selection and options

* Add advanced options form

* Use field name in settings

* Hide titles when editing existing field

* Add disabled handler for next / previous

* ...

* Show error on failed saves

* Rename name to field

* Fix arrow inline styles

* Fix show-arrow

* Rework tab logic to use named tabs (makes dynamic relationship tab work)

* Make it pass tests
2020-04-01 19:06:24 -04:00
Rijk van Zanten
4dd05ec2e9 Add align and dashed props to button (#277) 2020-04-01 11:40:24 -04:00
Rijk van Zanten
43c949f2a0 Add v-fancy-select component (#276)
* Add v-fancy-select component

* Fix failing tests
2020-03-31 22:20:43 -04:00
Rijk van Zanten
9ef0255746 Update v-form to accept fields prop (#275) 2020-03-31 14:49:54 -04:00
Rijk van Zanten
d72b8bbcd7 Add v-modal component (#274)
* Start on v-modal, fix layering in v-dialog

* Add shadow to v-dialog content

* Add optional group identifier to groupable compositions

This allows groupable parents to be nested more flexibly:

tabs group
  item group
    item
      tab

In the case above, we only want the tab to trigger for tabs group, not item group.

* Add active prop support to v-list-item

Allows us to manually indicate that a list item is active, useful in v-menu

* Use v-list in vertical tabs

* Finish v-modal

* Update readme for groupable composition
2020-03-31 11:33:34 -04:00
dependabot-preview[bot]
f6c05367a5 Bump nanoid from 2.1.11 to 3.0.2 (#256)
* Bump nanoid from 2.1.11 to 3.0.2

Bumps [nanoid](https://github.com/ai/nanoid) from 2.1.11 to 3.0.2.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/2.1.11...3.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Migrate to nanoid 3

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-03-30 17:01:00 -04:00
Rijk van Zanten
790e7b2eb7 [Settings] Add duplicate field option (#263)
* Add duplicate field option

* Add missing prop to readme of v-select

* Re-enable preventOverflow
2020-03-30 16:47:56 -04:00
Rijk van Zanten
6205e6bf94 Add v-select component (#262) 2020-03-30 15:49:23 -04:00
Rijk van Zanten
6486dd810e Start on data model settings (#258)
* Use menu for project switcher

* Setup base structure for settings module

* Setup routes for settings

* Tweak v-menu styling

* Rough in collection overview in settings

* Save field info based on sort

* Add accidentally renamed global route

* Add move-in-arrow util

* Add update methods for fields

* Add field sorting logic

* Handle sorting between groups

* Add support for label on the v-divider component

* Register missing components

* Allow multiple dialogs at once

* Progress in settings

* Fix full-width option of input

* Update missing translations

* Improve menu performance

* Add field sizing

* Add disabled state to list item

* Add visibility toggle

* Undo changes on API errors

* Add test for usecollectoins

* Add notifications to field updates

* Fix linter warning

* Remove useCollection directive

* Fix linter warnings
2020-03-30 13:39:45 -04:00
Rijk van Zanten
7a43e6518b Add divider component (#252) 2020-03-27 12:12:51 -04:00
Jacob Rienstra
9ab09cbec3 Menu (#218)
* getting closer, trying to add things in

* positioning and story props

* add window-size index.ts

* positioning fixes

* hover half working

* more stories, no activator, positionxy

* minor fixes

* clickable menus in story

* fixed glitch in no activator, using correct iscontentactive var

* readme for menu

* readme for clickoutside

* test for v-menu

* tests

* test mocks

* Add new v-click-outside directive

* no iscontentactive

* simplified

* tweak

* Create menu based on popper

* Finish menu

* Remove unused imports

* Remove todos from menu

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-03-27 10:27:21 -04:00
Rijk van Zanten
f7d4d3e1ac Add support for Displays (#249)
* Create displays extension type

* Optimize define

* Add missing layout component export

* Add readme

* Remove codesmell
2020-03-25 16:55:01 -04:00
Rijk van Zanten
8fb195a343 Stacking context (#247)
* Fix stacking context of nexted dialogs

* Fix test
2020-03-25 10:29:52 -04:00
Rijk van Zanten
7bcfcb9b5b Save layout options query (#246)
* Add getPresetForCollection method

* Add savePreset action

* Add useSync composition

* Sync collection presets with store / api

* Clean up browse flow

* Cleanup tabular code

* Move portal target to browse page

* Save column widths to view options

* Add must-sort prop to v-table

* Add saving flow for viewQuery / viewOptions

* Optimize saving flow

* Provide main element to sub components

* Add per page option

* Add field setup drawer detail
2020-03-25 09:49:29 -04:00
dependabot-preview[bot]
26960961e8 Bump prettier from 1.19.1 to 2.0.2 (#239)
* Bump prettier from 1.19.1 to 2.0.2

Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.0.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/1.19.1...2.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Add dangling comma's

* Update eslint config to match prettier default

* Make eslint match prettier for real this time

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-03-24 10:51:30 -04:00