Commit Graph

23 Commits

Author SHA1 Message Date
Ramesh Mane
93734e5b03 Nc feat: form view conditional fields (#9433)
* chore(nocodb): add fk_parent_column_id in filter schema

* feat(nocodb): form view field level filter support

* fix(nc-gui): add migration for `fk_parent_column_id` filter property

* fix: add support to fetch all view filters

* fix(nc-gui): filter castType issue

* fix(nc-gui): form field title autofocus issue

* fix(nc-gui): small changes

* fix(nc-gui): update local form view filter on updating filter

* fix(nc-gui): add validate field visibility function

* fix(nc-gui): toggle eye icon based on field conditional visibility

* fix(nc-gui): show tooltip on hover form field visibility icon

* fix(nc-gui): show unique errors

* fix(nc-gui): sort form view field issue

* fix(nc-gui): add error handleling in form conditional field

* fix(nc-gui): validate field on reorder

* fix(nc-gui): disable add new filter if form field is first

* fix(nc-gui): disable undo redo filters in form view

* fix(nc-gui): move form filter class to ee

* fix(nc-gui): prevent unwanted api call on form field select

* fix(nc-gui): remove unwanted console

* feat(nc-gui): shared form view conditional fields

* fix(nc-gui): form filter cache issue

* fix(nc-gui): delete form filters by fk_parent_col_id

* fix(nc-gui): form view duplicate filters

* fix(nc-gui): column meta copy issue while duplicating form view

* fix(nc-gui): review changes

* docs: show on conditions

* fix(nc-gui): remove merge conflict code part

* fix(nc-gui): show first validation error in visible form columns on hover over config error

* fix(nc-gui): form view filter validate link field issue

* fix(nc-gui): duplicate form column filters on duplicating table

* fix(nc-gui): rename form field filters label to conditions

* fix(nc-gui): minor changes

* chore(nc-gui): lint

* fix(nocodb): migration conflict issue

* fix(nc-gui): currency field ui issue in filter input

* fix(nc-gui): rating field overflow issue in filter menu

* fix(nc-gui): form conditional field oss visibility issue

* test(nc-gui): form conditional field test

* fix(nc-gui): typo error

* chore(nc-gui): lint

* fix(nc-gui): filter input width issue

* fix: pw test fail issue

* fix(nc-gui): update pw test

* fix(nc-gui): show field field config error in form field list

* fix(nc-gui): grayed out form field list icon color

* fix(nc-gui): give precedence to hidden pre-filled fields over conditional fields

* fix(nocodb): use string type instead of any

* fix(nocodb): typo mistake

* fix(nocodb): use stringifyMetaProp instead of JSON.stringify

* fix(nc-gui): remove lazy loading from child components of form field settings

* fix(nc-gui): increase gap between plus & delete btn from group filter menu

* fix(nc-gui): max callstack issue after adding group filter from form view

* fix(nc-gui): increase min width of filter dropdown in form view

* chore(nc-gui): lint

* fix(nc-gui): required virtual field validation issue in shared form

* fix(nc-gui): delete conditionally hidden field data while submiting form

* fix(nc-gui): handle bt or oo cell conditional field validation issue

* chore(nc-gui): lint

* fix(nc-gui): new is utils file function name conflicts

* fix(nc-gui): remove console

---------

Co-authored-by: Raju Udava <86527202+dstala@users.noreply.github.com>
2024-09-17 16:15:53 +05:30
Ramesh Mane
6b70d683eb fix(nc-gui): form field validation issue if column title contains . (#8657)
* fix(nc-gui): form field validation issue if column title contains .

* chore(nc-gui): lint

* test(nc-gui): add `.` included column name in form validation test

* test: remove only from test

* fix(nc-gui): pr review changes
2024-06-06 19:34:20 +05:30
Ramesh Mane
b5962ad591 Nc test/form view validations (#8548)
* fix(nc-gui): bulk update field header issue

* test: add custom validation test cases

* test: add custom validation test cases

* test: custom validation all type test cases

* test: add email, phone number validation test cases

* test: fix form fill textarea issue

* test: add form validation shared view test cases

* test: add survey form custom validation test cases

* test: add limit to range survery form test cases

* test: add attachment validation survey form test cases

* chore(nc-gui): lint
2024-05-25 06:42:31 +05:30
Ramesh Mane
2a78930923 Nc feat/form view builder field settings in right pannel and fixed column delete modal virtual cell icon issue (#7927)
* feat(nc-gui): form field in right pannel setup

* fix(nc-gui): inline form field reorder issue

* fix(nc-gui): make edit form field right panel scrollable

* fix(nc-gui): form field limit option hide btn focus box shadow style issue

* fix(nc-gui): add support to edit form column in form view builder

* feat(nc-gui): added form field header menu dropdown

* fix(nc-gui): tab issue in form builder

* feat(nc-gui): add support to edit column from form builder itself

* fix(nc-gui): wrong virtual cell icon in column delete modal

* feat(nc-gui): column edit, hide, delete option in form builder field settings

* fix(nc-gui): move all form field settings radio btns to the right side

* chore(nc-gui): lint

* chore(nc-gui): lint errors

* chore(nc-gui): lint

* fix(nc-gui): update 'change icon color' text case

* fix(nc-gui): small changes

* fix(nc-gui): form builder side panel field div key issue

* fix(nc-gui): form view outsideclick fild toggle issue

* chore(nc-gui): lint

* fix(nc-gui): hide select dropdown in value is selected and show if value is not selected

* fix(nc-gui): suggested review changes

* fix(nc-gui): make form field rich text options sticky at bottom

* chore(nc-gui): lint

* fix(nc-gui): small changes

* fix(nc-gui): lazy import richtext component

* fix(nc-gui): set the max height for form rich text fields

* fix(nc-gui): move form settings switch inputs to the right side

* fix(nc-gui): move form select type field layout option to appearance settings section

* fix(nc-gui): select form active field text on focus

* fix(nc-gui): form rich text element menu option tabindex issue

* fix(nc-gui): form search field input autofill issue

* fix(nc-gui): update position of rich text menu option of form description

* feat(nc-gui): adjustable form view sidebar width

* chore(nc-gui): lint

* fix(nc-gui): typo mistake

* fix(nc-gui): PR review changes
2024-03-26 14:31:02 +05:30
Ramesh Mane
34cc8197d4 Nc fix: Form view bug fixes (#7899)
* fix(nc-gui): show inline form field validation errors

* fix(nc-gui): display inline validation error in shared form and form builder

* fix(nc-gui): shared form default value issue

* fix(nc-gui): limit option spell mistake

* fix(nc-gui): form title update issue when toggle between grid & form view

* fix(nc-gui): form banner & logo display issue on upload

* chore(nc-gui): lint

* fix(nc-gui): show error message on press non numeric keys in numeric field

* fix(nc-gui): add key for form banner and logo

* fix(nc-gui): show currency suffix only in form

* fix(nc-gui): edit column default value input height issue

* fix(nc-gui): form checkbox field enter keypress should navigate to next question in survey form

* fix(nc-gui): escape should blur focus field in survey form

* fix(nc-gui): add currency code suffix in form view currency field

* chore(nc-gui): lint

* fix(nc-gui): add percent suffix in form view percent field

* fix(nc-gui): survey form pw test fail issue

* fix(nc-gui): filter pw test fail issue

* fix(nc-gui): add missing classname in oss

* fix(nc-gui): survey form ui break issue

* fix(nc-gui): update oss survey form file

* fix(nc-gui): in survey form branding text color should be dynamic based on form bg color

* chore(nc-gui): lint

* fix(nc-gui): ai pr review changes

* fix(nc-gui): pr review changes #2555

* fix(nc-gui): use handler instead on ternery condition
2024-03-20 20:10:34 +05:30
Ramesh Mane
73d23036b7 test(nc-gui): form view pw test fail issue 2024-03-02 07:32:42 +00:00
Ramesh Mane
902f332b19 fix: PR review changes #2334 2024-02-22 16:18:14 +00:00
Ramesh Mane
cccc2babfc test: fix form view test fail issue 2024-02-22 16:17:52 +00:00
Raju Udava
facb1184a5 test: form elements validation 2024-02-22 16:16:39 +00:00
Raju Udava
3fb7ead13e test: form field re-order operations 2024-02-22 16:16:39 +00:00
Pranav C
75c9b7e3eb refactor: meta path corrections in tests 2023-10-11 06:25:51 +00:00
Pranav C
e790abdbaf refactor: rename project and base
- Rename `Project`  => `Base`
- Rename `Base` => `Source`
- Remove `db` from data/meta api endpoints
- Add backward compatibility for old apis
- Migrations for renaming table and columns

Signed-off-by: Pranav C <pranavxc@gmail.com>
2023-10-02 23:52:18 +05:30
Muhammed Mustafa
ee8411f370 fix: Fixed flakyness with form test 2023-09-30 13:59:03 +05:30
Muhammed Mustafa
e463481d66 fix: Fixed flakyness with form test 2023-09-30 13:57:25 +05:30
Muhammed Mustafa
46e652e5f3 fix: Fixed issue with test 2023-09-28 04:27:01 +00:00
Muhammed Mustafa
142bb9b88c fix: Fixed tests 2023-09-27 17:21:50 +05:30
Raju Udava
eddd118280 test: remove unintended awaits
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
2023-09-01 10:10:26 +05:30
Pranav C
33ee9bfa62 feat: Improved UI (#6222)
* feat: Improved ui (#6156)

* refactor: revert

Signed-off-by: Pranav C <pranavxc@gmail.com>

feat: shared base

Signed-off-by: Pranav C <pranavxc@gmail.com>

fix: remove duplicate import statement

Signed-off-by: Pranav C <pranavxc@gmail.com>

fix: disable starred & license menu

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: fix airtable wait issue

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: enable mysql in ci

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: fix checkbox order for sqlite

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: disable quick tests

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: fix dbType env variable for CI

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: workspace API access error fix

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: enable SQLite CI CD

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: use DB_TYPE env variable

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: enable SQLite UT

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: isHub cleanup

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: add check for EE Timezone spec

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

chore: cleanup

Signed-off-by: Pranav C <pranavxc@gmail.com>

chore: cleanup

Signed-off-by: Pranav C <pranavxc@gmail.com>

test: EE check fix

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

chore: test correction

Signed-off-by: Pranav C <pranavxc@gmail.com>

chore: sync latest changes

Signed-off-by: Pranav C <pranavxc@gmail.com>

test: set EE=false

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

test: set NC Edition to community in workflow file

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

chore: update sdk build command

Signed-off-by: Pranav C <pranavxc@gmail.com>

refactor: i18n and other changes

Signed-off-by: Pranav C <pranavxc@gmail.com>

feat: new ui

Signed-off-by: Pranav C <pranavxc@gmail.com>

* chore: sync tests

Signed-off-by: Pranav C <pranavxc@gmail.com>

* chore: lint

Signed-off-by: Pranav C <pranavxc@gmail.com>

* fix: shared view/base related bugs

Signed-off-by: Pranav C <pranavxc@gmail.com>

* test: checkbox verification sort order fix

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: fix sqlite reset

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: enable selfhosted runners

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* docs: table ops (draft)

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* Docs: screenshots for table-operations.md

* refactor: introduce missing buttons

Signed-off-by: Pranav C <pranavxc@gmail.com>

* fix: get all fields

Signed-off-by: Pranav C <pranavxc@gmail.com>

* test: UT fix- new data API response

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: EE is false

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: webhook lookup as string in CE

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* fix: include created_at and updated_at

Signed-off-by: Pranav C <pranavxc@gmail.com>

* test: fix UT newDataAPI response for PG

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* fix: separate api for webhook related plugins

Signed-off-by: Pranav C <pranavxc@gmail.com>

* test: msyql filter corrections

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: mysql group by test corrections

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: fix datatype for rating field in groupby spec for pg

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: kanban datatype correction

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: column edit for mysql- rating field

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: misc fixes

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: enable 4 workers

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: enable 2 workers per shard only

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* docs: table CRUD

* Rename table-operations.md to table-crud.md

* Create column-crud.md

* docs: row CRUD

* Rename row.md to row-crud.md

* docs: project crud

* docs: toolbar (skeleton)

* refactor: single page UI and bug fixes

Signed-off-by: Pranav C <pranavxc@gmail.com>

* chore: sync tests playwright

Signed-off-by: Pranav C <pranavxc@gmail.com>

* chore: add missing dependency

Signed-off-by: Pranav C <pranavxc@gmail.com>

* feat: single page ui, test corrections

Signed-off-by: Pranav C <pranavxc@gmail.com>

* chore: tests

Signed-off-by: Pranav C <pranavxc@gmail.com>

* test: project rename test correction

Signed-off-by: Pranav C <pranavxc@gmail.com>

* chore: remove only

Signed-off-by: Pranav C <pranavxc@gmail.com>

* test: remove wrong import statement

Signed-off-by: Pranav C <pranavxc@gmail.com>

* fix: delete option not visible in project context menu

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: move ws access within isEE()

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: fix groupby

* test: groupby fix

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* docs: signup & landing page

* docs: project crud

* docs: project-crud misc

* docs: toolbar fields

* docs: toolbar / filters

* docs: toolbar / group by

* docs: toolbar / sort

* docs: toolbar / row height

* docs: filters additional options

* docs: file re-order

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* docs: add links to column types

* docs: code snippets

* docs: links

* docs: lookup

* docs: rollup

* docs: formula

* docs: primary key

* docs: display value

* docs: development setup

* docs: swagger

* fix(nc-gui): encodeURIComponent for row id

- closes: #6202

* docs: language

* docs: expanded record

* docs: import airtable

* docs: airtable

* docs: webhook

* docs: revert file rename

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* docs: account settings

* docs: audit

* docs: meta management

* docs: project settings

* docs: shared base

* docs: shared view

* docs: meta sync

* docs: team-auth

* docs: views

* docs: fix URL

* docs: URL corrections

* fix:  shared base, view related bugs

Signed-off-by: Pranav C <pranavxc@gmail.com>

* test: EE check for WSaccess

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* test: exclude EE tests

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>

* fix: missing project delete

closes #6215

Signed-off-by: Pranav C <pranavxc@gmail.com>

* fix: merge existing project meta  if found

closes #6216

Signed-off-by: Pranav C <pranavxc@gmail.com>

* fix: merge existing project meta  if found

closes #6216

Signed-off-by: Pranav C <pranavxc@gmail.com>

---------

Signed-off-by: Pranav C <pranavxc@gmail.com>
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
Co-authored-by: Raju Udava <86527202+dstala@users.noreply.github.com>
Co-authored-by: DarkPhoenix2704 <anbarasun123@gmail.com>
Co-authored-by: Wing-Kam Wong <wingkwong.code@gmail.com>

* refactor: docs and other bug fixes

Signed-off-by: Pranav C <pranavxc@gmail.com>

* feat: populate default project on super admin signup

Signed-off-by: Pranav C <pranavxc@gmail.com>

* fix: include created project details in signup response if avail, missing Dockerfile

Signed-off-by: Pranav C <pranavxc@gmail.com>

* chore: use custom function for resolving ts path aliases

Signed-off-by: Pranav C <pranavxc@gmail.com>

* chore: add missing generate script

Signed-off-by: Pranav C <pranavxc@gmail.com>

* chore: webpack build correction - ts path resolve

Signed-off-by: Pranav C <pranavxc@gmail.com>

---------

Signed-off-by: Pranav C <pranavxc@gmail.com>
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
Co-authored-by: mertmit <mertmit99@gmail.com>
Co-authored-by: Raju Udava <86527202+dstala@users.noreply.github.com>
Co-authored-by: DarkPhoenix2704 <anbarasun123@gmail.com>
Co-authored-by: Wing-Kam Wong <wingkwong.code@gmail.com>
2023-08-24 02:58:19 +05:30
Raju Udava
9625f77707 test: pw update for reorder
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
2023-06-05 17:42:52 +05:30
Wing-Kam Wong
cbf2431703 fix(playwrights): use adjacent sibling combinator for required button 2023-03-21 12:27:25 +08:00
Wing-Kam Wong
bf5d0f19c7 fix(playwright): form test logic 2023-03-21 12:21:30 +08:00
Muhammed Mustafa
93dcbb82b0 fix(playwright): Added PW tests to verify that photo upload works on formshare and on attachment cell on grid 2022-11-30 12:29:45 +05:30
Muhammed Mustafa
aa5fbdffd4 fix(test): Moved playwright folder from nc-gui 2022-11-12 15:29:36 +05:30