Commit graph

84 commits

Author SHA1 Message Date
Ankush Menat
4ab98b998d
fix: setup wizard recursion in routing (#21101)
- setup wizard shows slide from index in route
- if you visit `/app/setup-wizard` then index in route is `undefined`
- because of hacky code we do `id + ''` so `undefined` becomes `"undefined"` a truthy value

The recursion of undefined > 0 > undefined > 0 continues until browser
intervenes and stops further routing.
2023-05-24 17:43:51 +05:30
Ankush Menat
c643d4a33c chore: capitalization 2023-05-22 16:15:53 +05:30
Ankush Menat
9f83ead7a2 fix: remove setup_complete events
This can trigger along side actual setup complete event causing two
parallel requests.
2023-05-22 14:48:19 +05:30
Ankush Menat
97959d7b88
fix: validate email on setup wizard (#20979)
* chore: remove unused gravatar code

* fix: Check invalid field in setup wizard

* chore: typo

---------

Co-authored-by: Michelle Alva <50285544+michellealva@users.noreply.github.com>
2023-05-14 19:16:31 +05:30
Ankush Menat
93c326b971 feat: let user opt out of telemetry from setup 2023-04-25 14:46:53 +05:30
Ankush Menat
f63c420798 feat: add python posthog library 2023-04-25 13:10:14 +05:30
Ankush Menat
6c3f29efe7 feat: setup wizard progress telemetry 2023-04-25 11:54:56 +05:30
Deepesh Garg
0f5d17663d
fix: Remove setup wizard user image (#19601) 2023-01-16 16:44:04 +05:30
Ankush Menat
40f27f908a style: format JS files with prettier 2022-08-04 14:51:01 +05:30
Gavin D'souza
6cb8127e8d fix(setup_wizard): Make language field Autocomplete 2022-05-02 16:56:25 +05:30
Gavin D'souza
a688577a3f fix(setup_wizard): Merge language & country info slides
Minimizing the number of slides required for setting up a new site. In
developer mode, only one slide is visible now titled "Hello" or
selected language equivalent.
2022-05-02 16:19:38 +05:30
Himanshu
8947a542d1
fix: translations in setup wizard (#15401)
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
2021-12-29 10:15:52 +05:30
Suraj Shetty
b530beb503 revert: Empty value checks 2021-12-21 09:36:09 +05:30
Suraj Shetty
1dd870ce73 refactor: Use placeholder instead of additional option in select
- Additional options were still selectable which could have got through
- Minor formatting changes
2021-12-21 08:54:31 +05:30
saxenabhishek
91bd5ed2e2 fix: misc setup_wizard region slide
placeholder on all fields
autocomplete on country input
default selected values on inputs
2021-12-16 22:37:03 +05:30
leela
72fa9a3c19 fix: Move site setup into background to fix timeouts
Provide an option to trigger site setup as a background task.
2021-11-30 10:34:04 +05:30
prssanna
ab76d2d519 fix: setup wizard error state 2021-02-04 18:10:36 +05:30
prssanna
a47b55546b style: fix formatting 2021-01-29 17:01:08 +05:30
Suraj Shetty
d5f4edcda9 style: Fix sider issues 2021-01-28 22:18:12 +05:30
Rushabh Mehta
bebfc491a4 fix(minor): setup-wizard page_name shows as undefined 2021-01-13 16:23:00 +05:30
Rushabh Mehta
90363f4ba9 fix(routes): minor fixes to route, favion, setup-wizard 2020-12-18 13:17:28 +05:30
Rushabh Mehta
75fe8a615a feat(app): move /desk to /app 2020-11-11 16:31:47 +05:30
Shivam Mishra
68eda6b472 feat(setup-wizard): update loading & error state 2020-10-29 12:47:12 +05:30
Shivam Mishra
16a27e839c feat(setup-wizard): complete button is a button 2020-10-29 12:36:25 +05:30
Shivam Mishra
277eb5bba0 feat(setup-wizard): update setup_wizard and slides.js
* use button instead of a for buttons
* fix done_state on next
* update steps indicator
* remove inline styles
2020-10-29 12:11:35 +05:30
Faris Ansari
d719f77edb
fix(ui-tests): Pick admin password from config (#7842) 2019-07-05 12:24:07 +05:30
Valmik
467604ba93 Function to remove a slide from the list of slides (#5570) 2018-05-21 12:28:57 +05:30
Achilles Rasquinha
cfa2006bf3 Non Pour Accent! (#5427) 2018-04-10 22:53:42 -08:00
Prateeksha Singh
51fd6fa2b7
[hotfix] remove setup fail message
Else it also appears for non-cloud users, where we don't receive an email: https://discuss.erpnext.com/t/initial-setup-failed-dont-worry-its-not-you-its-us/31948/5
2017-12-25 18:47:41 +05:30
Prateeksha Singh
d5ad0ff2e8 Setup stages (#4618)
* setup complete stages

* [setup] better setup-in-progress card

* restructure setup exception flow

* use setup_stages hook

* Add message for non-dev mode, fail instead of error

* message to not include commits in app setup stages
2017-12-21 11:55:49 +05:30
Prateeksha Singh
d1aa5c60b4 [Multicheck control] (#4529)
* multicheck control

* [checkboxes] replace in domain settings

* [checkboxes] use in setup_wizard domains

* [multicheck] minor

* [multicheck] set and get value as an array

* [multicheck] make controls.less

* basic view control with value as array object

* load active domains

* selenium helper: multicheck

* [multicheck] make field if not present

* [multicheck] append control in an HTML field
2017-12-06 13:25:33 +05:30
Rushabh Mehta
5a9d38f767
[enhance] bench run-tests --doctype-list app/path/to/test.txt (#4561)
* [enhance] bench run-tests --doctype-list app/path/to/test.txt

* [fix] tests for doctype-list-path

* [fix] tests for doctype-list-path
2017-12-01 12:05:06 +05:30
pratu16x7
e9209151cf [fix] setup complete state colors 2017-11-06 10:10:01 +05:30
Rushabh Mehta
f0e23a5a6c [refactor] domain and domain settings (#4163)
* [refactor] domain and domain settings

* [fix] test_domain.py

* [fix] patches

* [fix] domain activation after setup

* [fix] tests and lint

* [fix] tests and lint

* [enhance] better prompt naming

* [fix] setup wizard test

* [fix] testing

* [minor] new item in quick entry from form dashboard
2017-10-17 12:29:08 +05:30
Faris Ansari
d20f9e2895 Data Migration Tool (for hub) (#4144)
* migration tool

* custom field for primary key added

* foreign key and multiple linking F_key issue resolved

* refined code

* many-to-one mapping temp fix

* added support for pre-process + cleaned up code

* [various] fixes to setup wizard for developer mode, frappe.enqueue_doc, share with assign

* Refactor data migration module

* added migration for hub

* Add "Skip errors" in data import tool

* move db_set to document.py

* Add Data Migration Run

* Dynamic Migration ID

* move run() from Mapping to Run

* Push Deleted Documents

* fixes

* [migration] doc operation counts

* insert and update instead of push in connection

* fix count and total_pages, skip sync if total_pages is 0

* [migration] child tables

* fix complete()

* [page] remove required libs

* Add sidebar.js, rename old sidebar.js to form_sidebar.js

* [minor] get_empty_state fixes

* svg in icon

* remove image check

* fix codacy

* fix is_child_table check

* [connector] add get_list()

* Add test for Data Migration Run

* fix test

* truncate tabNote

* fix test

* sync todo with event to fix test

* fix db count

* [mapping] export Mapping to json

* Add docs for Data Migration Tool

* [migration] pull data as list, test case

* [hub] remove mapping export to files

* Pull refactor

* [test]

* Add comments

* [mapping] exec in mapping formula

* fix codacy

* fix codacy

* Remove exec for pre-process and post-process

* Add pre and post process for Push

* Remove formula

* fixes

* [refactor] add failed_log to pull, handle error in pull

* [test] Push, pull, update

* Fix codacy, fix insert_doc for pull

* Set migration id on successful insert

* fix update_doc

* fix update_doc

* method is a function

* child table mapping

* Refactor logging

* fix update_doc again

* fix hostname, password

* update docs, minors

* Remove assign_if_none

* Remove error handling from connection methods

* [refactor] Data migration run

* Break push stages into methods

* Migration run refactor

- fix test
- add separate fields for logging

* fix codacy

* fix hostname password

* fix test
2017-10-05 11:15:35 +05:30
Nabin Hait
b2945fd5b5 Fixed merge conflict 2017-09-26 16:05:38 +05:30
pratu16x7
a15c2a53a2 [minor] 2017-09-26 12:27:47 +05:30
pratu16x7
40e57efa52 [setup] indicator and check color 2017-09-26 12:05:50 +05:30
Faris Ansari
5162d2d3e9 Better keyboard navigation in setup wizard
- call action_complete when enter is pressed on last slide
- disable keyboard navigation on action_complete
- fixed eslint
2017-09-23 14:45:47 +05:30
pratu16x7
70e1158c45 [fix] don't make toolbar while in setup 2017-09-22 03:07:44 +05:30
Rushabh Mehta
da0a4ea7fd Merge pull request #4065 from pratu16x7/page-fixes
[page] add empty state, required libs, callback
2017-09-14 11:24:47 +05:30
Nabin Hait
1d2525d6ce [refactor] Load languages on load of slide 2017-09-13 19:41:33 +05:30
pratu16x7
3589a0b8b1 [page] add empty state, required libs, callback 2017-09-13 09:21:11 +05:30
pratu16x7
c87710f25b [fix] remove reload after setup 2017-09-06 12:06:32 +05:30
pratu16x7
11709b31ec [setup] keyboard nav 2017-09-05 13:31:04 +05:30
pratu16x7
0776e79cb2 [setup] new loading state, remove setup_wizard.css 2017-09-04 10:29:14 +05:30
pratu16x7
bf4eab3bc2 [progress] dismiss on completion 2017-09-01 17:48:09 +05:30
pratu16x7
7d2c96b2d4 [progress] add is_first_startup flag to show dialog 2017-08-31 14:57:14 +05:30
pratu16x7
ce8d3e6871 [user-progress] route post setup route 2017-08-29 10:20:30 +05:30
pratu16x7
91c2e57fdb [setup wiz] fixes 2017-08-29 10:03:06 +05:30