feat(web): adapt storage content according to the scenario#1972
feat(web): adapt storage content according to the scenario#1972ancorgs merged 21 commits intoagama-project:storage-config-uifrom
Conversation
deb6c6b to
2237aa3
Compare
9f22956 to
bb677de
Compare
83d2add to
d644216
Compare
d644216 to
879f32d
Compare
9493e79 to
fbff5a3
Compare
17f740d to
38ec631
Compare
| errors: Issue[]; | ||
| }; | ||
|
|
||
| function ErrorsEmptyState({ errors }: ErrorsEmptyStateProps) { |
There was a problem hiding this comment.
I think we have gone too far accumulating functionality on this file (just look at the size of the "import" section). Can't we extract the empty pattern component(s) to separate files? Similar to what is done for ProposalTransactionalInfo and ProposalFailedInfo?
There was a problem hiding this comment.
I don't know if extracting single-usage-components like these, which don't have any kind of logic, is good or not.
IMHO, in cases like this, I prefer to have such components defined directly there in the only file where they are needed. Otherwise, there is a lot of chance of forgetting about them when the main component is refactored (that has already happened). Of course, there could be exceptions, like having complex components with too much logic.
But I can extract them if you guys prefer to go with that approach.
There was a problem hiding this comment.
We decided to keep that components directly there, but in the future we will extract them to separate files, testing each component separately. Moreover, each component will have the logic to decide whether to render any content. The proposal page will simply mount all those components.
There was a problem hiding this comment.
Why did you guys decide to postpone something agreed less than 3 hours ago? Just curious because it is, again, a kick to the front-end code.
I start having the feeling that does not payoff to invest time in meetings.
There was a problem hiding this comment.
In a few words: "time pressure" 😓
There was a problem hiding this comment.
Why did you guys decide to postpone something agreed less than 3 hours ago? Just curious because it is, again, a kick to the front-end code.
JFTR: because just after talking to you, the PO decided to go with the current code if it works. As @imobachgs said, time pressure. We agreed a) to add a FIXME, b) follow the agreed approach from now on, c) redo this code (and many other things) once time permits.
I start having the feeling that does not payoff to invest time in meetings.
I disagree. Our agreement is ok and we will follow it from now on.
Pull Request Test Coverage Report for Build 13334350448Details
💛 - Coveralls |
2ae6d40 to
9209e90
Compare
- Buttons right after the table. - Do not use page section.
221c24e to
d13b85f
Compare
d13b85f to
43e340c
Compare
ancorgs
left a comment
There was a problem hiding this comment.
This LGTM.
I'm not merging because the last commit was added by me (together with all the screenshots at the description). Somebody would need to review those texts. Once the texts are reviewed, we can merge.
imobachgs
left a comment
There was a problem hiding this comment.
Just some suggestions.
| <Content component="p">{_("Do you want to reset to the default settings?")}</Content> | ||
| <Content component="p"> | ||
| {_( | ||
| "You may want to discard those settings and start from scratch with a simple configuration.", |
There was a problem hiding this comment.
I would say "those" because the settings are not really displayed. And the reference to them is at a previous paragraph. Both sound like "distance" to me.
Prepare for releasing Agama 12: * #1858 * #1887 * #1890 * #1892 * #1893 * #1894 * #1896 * #1898 * #1899 * #1900 * #1901 * #1906 * #1908 * #1909 * #1910 * #1911 * #1912 * #1914 * #1915 * #1917 * #1919 * #1920 * #1921 * #1922 * #1923 * #1924 * #1926 * #1927 * #1928 * #1929 * #1930 * #1931 * #1932 * #1933 * #1934 * #1935 * #1936 * #1937 * #1938 * #1939 * #1942 * #1943 * #1945 * #1948 * #1949 * #1952 * #1953 * #1954 * #1955 * #1957 * #1958 * #1959 * #1961 * #1963 * #1964 * #1967 * #1969 * #1970 * #1971 * #1972 * #1973 * #1974 * #1975 * #1976 * #1977 * #1979 * #1980 * #1981 * #1982 * #1984 * #1986 * #1987 * #1988 * #1990 * #1991 * #1992 * #1993 * #1995 * #1996 * #1997 * #1999 * #2000 * #2001 * #2002 * #2003 * #2004 * #2005 * #2006 * #2007 * #2008 * #2009 * #2010 * #2011 * #2012 * #2013 * #2014 * #2015 * #2016 * #2017 * #2019 * #2021 * #2022 * #2025 * #2027 * #2029 * #2030 * #2031 * #2033 * #2034 * #2035 * #2036 * #2037 * #2038 * #2039 * #2040 * #2045 * #2046 * #2050 * #2053 * #2054 * #2055 * #2056 * #2058 * #2060 * #2061 * #2062 * #2063 * #2064 * #2066 * #2067 * #2068 * #2069 * #2070 * #2071 * #2072 * #2073 * #2075 * #2076 * #2080 * #2082 * #2083
The `toValidationError` function is no longer in use. It was originally introduced in the storage area implementation (#540, commit 1fc1f6f) but its usage was gradually phased out across later changes (e.g., #1112), until it became fully unused in commit 9cfc9c7 (part of #1972). Removing it to reduce dead code and simplify the utils namespace.
Adapt the content of the storage page according to the situation:
The encryption section is dropped for now.
Note: for now, the config is considered as non-editable if there are config errors. In the future, some components like
ConfigEditorcould be improved to make possible fixing an invalid config.Screenshots
Normal screen
Correct settings but impossible setup
Unhandled settings but possible setup
Unhandled settings and impossible setup
Invalid settings
No target disks in s390
No target disks in other architectures