Skip to content

feat: tabsbar component #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Jan 3, 2023
Merged

Conversation

devartstar
Copy link
Member

@devartstar devartstar commented Jul 24, 2022

fixes: #12

Progress made -

  • Creating tabsbar component.
  • Replace DOM manupulation using string with Vue logic
  • Fixing the change in circuitName in Properties Panel on switching between tabs.
  • Sorting of tabs by dragging. (using Vue-SortableJS)
  • CSS Refactoring.

@commit-lint
Copy link

commit-lint bot commented Jul 24, 2022

Features

  • created tabsbar component (c953e2b)
  • circuitList in store and updating value in external js (a752e5c)
  • replace tab rendering as string to dom with vue-for (95d7c7a)
  • removing item from tabList on closing tab (095ff02)
  • add sortability of tabs (31b7614)
  • added message modal (1d5debe)
  • add dialog boxes for messages instead of prompt (94863d1)
  • persistent dialog box for dependencies (2c0a4e0)
  • moved circuit deleting cheching to vue component (7c9c3bf)
  • made message Box reusable (58566b4)
  • linked dialog box conformation for delete to logic (a97a267)
  • create circuit prompt to dialog box (ca7fa86)
  • completed converting all prompts of tabsbar to dialog box (4ab5090)

Bug Fixes

  • new circuit was not working after sorting tabs (05e2ada)
  • multiple tabs closing (4bce317)
  • propper current-tab display on sorting, switching, creating, deleting (225de3d)
  • lined circuitName in tabsbar and properties panel (dae55e7)
  • lined-updated properties panel with switching tabs (6950d9e)
  • displaying circuit name from scopeList (5efa081)
  • acessing only states instead of complete pinia store in Tabsbar (cb77ce0)
  • initially no circuit name should be visible but default set to untitled-circuit (8cda493)
  • default values for array and object in props (5ac9faf)
  • replaces x with icon cross (0d9eba5)
  • all tabs circuits deleting from properties panel (7ed700b)

Code Refactoring

  • circuit-list store only list of ids(more generalized) as name can be changed (d7b718c)

Reverts

  • on changing tabs only circuitname changes (9dee575)

Contributors

devartstar

Commit-Lint commands

You can trigger Commit-Lint actions by commenting on this PR:

  • @Commit-Lint merge patch will merge dependabot PR on "patch" versions (X.X.Y - Y change)
  • @Commit-Lint merge minor will merge dependabot PR on "minor" versions (X.Y.Y - Y change)
  • @Commit-Lint merge major will merge dependabot PR on "major" versions (Y.Y.Y - Y change)
  • @Commit-Lint merge disable will desactivate merge dependabot PR
  • @Commit-Lint review will approve dependabot PR
  • @Commit-Lint stop review will stop approve dependabot PR

@netlify
Copy link

netlify bot commented Jul 24, 2022

Deploy Preview for circuitverse ready!

Name Link
🔨 Latest commit 7ed700b
🔍 Latest deploy log https://app.netlify.com/sites/circuitverse/deploys/63039cf4d5eed80008387e9a
😎 Deploy Preview https://deploy-preview-14--circuitverse.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@devartstar
Copy link
Member Author

I have linked the tabs-bar circuitName with the properties-panel circuitName
@abstrekt @ayan-biswas0412 can you please review this PR

@abstrekt
Copy link
Member

abstrekt commented Aug 7, 2022

I'm able to delete all circuits from the properties panel, and then not able to add any any circuit.
image

@abstrekt
Copy link
Member

abstrekt commented Aug 7, 2022

can you also compare the nav and tabs bar with the production version? some CSS differences can be observed ..

@abstrekt
Copy link
Member

abstrekt commented Aug 7, 2022

When we select a tab from the tabs bar the tabs name field is focused and text selected in the properties tab, but this is not happening with the last tab.
image
Works fine with other tabs
image

lets also have this anytime we click the tab.

@abstrekt
Copy link
Member

abstrekt commented Aug 7, 2022

Low hanger: When we select the create button , the input text resets to "Untitled-Circuit" before closing, this shouldn't be visible in the UI.
image

@abstrekt
Copy link
Member

abstrekt commented Aug 7, 2022

When we click + to create a new sub-circuit, lets focus and select the default text "Untitled-Circuit" just like in production, as most of the time user will try to change this, so it is a good UX.
image

@@ -30,7 +30,8 @@ import HelpButton from '#/components/Panels/Shared/HelpButton.vue'
import ElementProperty from '#/components/Panels/PropertiesPanel/ModuleProperty/ElementProperty/ElementProperty.vue'
import ProjectProperty from '#/components/Panels/PropertiesPanel/ModuleProperty/ProjectProperty/ProjectProperty.vue'
import SubcircuitPropert from '#/components/Panels/PropertiesPanel/ModuleProperty/SubcircuitProperty/SubcircuitProperty.vue'
import { toRefs } from '@vue/reactivity'
import { ref, toRefs } from '@vue/reactivity'
import { onMounted } from '@vue/runtime-core'
Copy link
Member

Choose a reason for hiding this comment

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

I guess we can directly import from "vue"


onMounted(() => {
// checking if circuit or tab is switched
setInterval(() => {
Copy link
Member

Choose a reason for hiding this comment

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

we'd need a better way to do this, setInterval won't be a good option here,

Copy link
Member Author

Choose a reason for hiding this comment

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

will create an issue for it to be looked at afterward.

<button @click="createNewCircuit()">&#43;</button>
</div>
<MessageBox
v-model="SimulatorState.dialogBox.create_circuit"
Copy link
Member

Choose a reason for hiding this comment

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

I'm not able to find the MessageBox component accepting v-model, can you add some context here?

@devartstar devartstar changed the title feat(wip): tabsbar component feat: tabsbar component Aug 22, 2022
@devartstar devartstar enabled auto-merge (squash) January 2, 2023 22:08
@devartstar devartstar merged commit 25a160f into CircuitVerse:main Jan 3, 2023
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.

Vue Component: Tabsbar - GSoC'22
3 participants