Skip to content

Conversation

@SebinSong
Copy link
Collaborator

@SebinSong SebinSong commented May 13, 2025

closes #2630

Please check this TODO list for details of what this PR contains.

Also, you could run npm run dev:dashboard locally and visit http://localhost:3030/dashboard/design-system to check them out. (Be noted that /design-system page currently does not contain every existing UIs yet though)

@SebinSong SebinSong self-assigned this May 13, 2025
@SebinSong SebinSong changed the title #2630 - Update backend dashboard for more UI components [WIP] #2630 - Update backend dashboard for more UI components May 13, 2025
@cypress
Copy link

cypress bot commented May 13, 2025

group-income    Run #4521

Run Properties:  status check passed Passed #4521  •  git commit 9911c0d0fc ℹ️: Merge 599cba18ad8972ef2304834f43798221dd6e507b into 91f8191a21851d10a0178a21e17d...
Project group-income
Branch Review sebin/task/#2630-more-updates-to-backend-dashboard
Run status status check passed Passed #4521
Run duration 13m 07s
Commit git commit 9911c0d0fc ℹ️: Merge 599cba18ad8972ef2304834f43798221dd6e507b into 91f8191a21851d10a0178a21e17d...
Committer Sebin Song
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 10
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 116
View all changes introduced in this branch ↗︎

@SebinSong SebinSong changed the title [WIP] #2630 - Update backend dashboard for more UI components #2630 - Update backend dashboard for more UI components May 13, 2025
Copy link
Member

@taoeffect taoeffect left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic work @SebinSong!!

Looks and works great. Review ready for you!

'use stricts'

// constants for UI related events
// constants for UI-related events
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Above this line it says 'use stricts' doesn't enable strict mode - should be 'use strict' (singular)

export const PROMPT_ACTIONS = {
PRIMARY: 'prompt-action-primary',
SECONDARY: 'prompt-action-secondary',
CLOSE: 'promps-action-close'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: 'promps-action-close' => 'prompt-action-close'

text_1: 'rgba(0, 0, 0, 0.4)',
border: 'rgba(0, 0, 0, 0.1)',
emphasis: '#1C1C1C',
emphasis: '(rgba(0, 0, 0, 0.65)',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra ( at the start of rgba here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch. fixed.

import sbp from '@sbp/sbp'
import { OPEN_PROMPT, PROMPT_RESPONSE } from './events.js'

export interface PromptParams {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Flow, it's export type instead of export interface

Comment on lines 115 to 116
color: $text-0;
border-bottom-color: $text-0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably meant $text_0?

Comment on lines 43 to 46
watch: {
colors (newVal) {
console.log('!@# colors update: ', newVal)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leftover debugging

label.inputgroup(:class='{ "is-disabled": disabled }')
span.input-label(v-if='label') {{ label }}

char-limit-indicator.c-char-len(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

o4-mini-high:

  • In StyledInput.vue, your scoped .c-char-len { position:absolute } won’t actually apply to the inner <span> of the child component because of Vue’s scoped CSS markers. You either need a deep selector (::v-deep .c-char-len) or move the positioning into the child component’s own <style>.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incorrect. Just changed the class name to clear the confusion here.


<script>
export default {
name: 'DSTableTemplate'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should This have the same name as the file?


<script>
export default {
name: 'DSTableRow',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't his have the same name as the file?

Comment on lines +4 to +6
h4.unit-name TBD...

.unit-description list UI elements used in the app
.unit-description TBD...
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these not implemented yet? I'm curious because there are the TableTemplate.vue and TableRow.vue files...

Copy link
Collaborator Author

@SebinSong SebinSong May 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@taoeffect They are implemented and used in various dashboard pages:



image

TBD.. here means I have not added demos for these in this design-system section yet.
Also, FYI TableTemplate.vue and TableRow.vue are components I created for design-system page. They are not used in the the dashboard.

Copy link
Member

@taoeffect taoeffect left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @SebinSong!

@taoeffect taoeffect merged commit 6b6f27f into master May 15, 2025
7 checks passed
@taoeffect taoeffect deleted the sebin/task/#2630-more-updates-to-backend-dashboard branch May 15, 2025 16:17
@taoeffect taoeffect mentioned this pull request May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copy updates to Modal & other components to backend dashboard

3 participants