-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(storybook): profile fetching updated
Profile fetching page, which is part of onboarding flow, is updated so it matches the latest figma changes now.
- Loading branch information
1 parent
2e65796
commit 9d382b1
Showing
8 changed files
with
328 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
import QtQuick 2.14 | ||
import QtQuick.Controls 2.14 | ||
import QtQuick.Layouts 1.14 | ||
|
||
import utils 1.0 | ||
|
||
Item { | ||
id: root | ||
|
||
property alias model: listView.model | ||
|
||
signal stateChanged(string state) | ||
|
||
ComboBox { | ||
id: comboBox | ||
|
||
width: parent.width | ||
|
||
model: [Constants.startupState.profileFetching, | ||
Constants.startupState.profileFetchingSuccess, | ||
Constants.startupState.profileFetchingTimeout] | ||
|
||
onCurrentIndexChanged: { | ||
root.stateChanged(model[currentIndex]) | ||
} | ||
} | ||
|
||
ListView { | ||
id: listView | ||
|
||
anchors.top: comboBox.bottom | ||
anchors.bottom: parent.bottom | ||
anchors.left: parent.left | ||
anchors.right: parent.right | ||
anchors.topMargin: 32 | ||
|
||
spacing: 25 | ||
ScrollBar.vertical: ScrollBar { x: root.width } | ||
|
||
delegate: ColumnLayout { | ||
id: rootDelegate | ||
|
||
width: ListView.view.width | ||
|
||
Label { | ||
Layout.fillWidth: true | ||
text: model.entity | ||
font.weight: Font.Bold | ||
} | ||
|
||
Row { | ||
Label { | ||
anchors.verticalCenter: parent.verticalCenter | ||
text: "loadedMessages:\t" | ||
} | ||
|
||
SpinBox { | ||
editable: true | ||
height: 30 | ||
from: 0; to: model.totalMessages | ||
value: model.loadedMessages | ||
onValueChanged: model.loadedMessages = value | ||
} | ||
} | ||
|
||
Row { | ||
Label { | ||
anchors.verticalCenter: parent.verticalCenter | ||
text: "totalMessages:\t" | ||
} | ||
|
||
SpinBox { | ||
editable: true | ||
height: 30 | ||
from: 0; to: 10 * 1000 * 1000 | ||
value: model.totalMessages | ||
onValueChanged: model.totalMessages = value | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.