Comments (14)
@ezhil56x see #8579 (comment) for instructions to get started - feel free to work on this issue.
from highlight.
HIG-4662 dashbaord should show default title based on metric being graphed
from highlight.
To implement default titles for metrics being graphed, follow these steps:
-
Update
getDefaultMetricConfig
in/frontend/src/pages/Dashboards/Metrics.ts
:- Modify the function to include a default title based on the metric name.
export const getDefaultMetricConfig = (name: string): DashboardMetricConfig => ({ name, title: `Default Title for ${name}`, // Add this line aggregator: MetricAggregator.AVG, ... });
-
Modify
CreateDashboardModal
in/frontend/src/pages/Dashboards/components/CreateDashboardModal/CreateDashboardModal.tsx
:- Ensure the modal uses the default title when creating a new dashboard.
const handleCreate = () => { const defaultConfig = getDefaultMetricConfig(metricName); const newDashboard = { title: defaultConfig.title, // Use default title ... }; ... };
-
Update
DashboardPage
in/frontend/src/pages/Dashboards/pages/Dashboard/DashboardPage.tsx
:- Ensure the dashboard page displays the default title if no custom title is provided.
const DashboardPage = ({ dashboard }) => { const title = dashboard.title || `Default Title for ${dashboard.metricName}`; return ( <h1>{title}</h1> ... ); };
-
Modify
GraphingEditor
in/frontend/src/pages/Graphing/GraphingEditor.tsx
:- Ensure the graph editor uses the default title when creating a new graph.
const handleCreateMetricView = () => { const defaultConfig = getDefaultMetricConfig(selectedMetric); const newMetricView = { title: defaultConfig.title, // Use default title ... }; ... };
References
/backend/model/model.go
/frontend/src/pages/Graphing/Dashboard.tsx
/frontend/src/pages/Dashboards/Metrics.ts
/frontend/src/pages/Dashboards/components/CreateDashboardModal/CreateDashboardModal.tsx
/frontend/src/pages/Dashboards/pages/Dashboard/DashboardPage.tsx
/frontend/src/pages/Graphing/GraphingEditor.tsx
from highlight.
/bounty $50
from highlight.
💎 $50 bounty • Highlight (YC W23)
Payment will be awarded to the first person to successfully merge a PR meeting all requirements. In the event that multiple PRs are submitted for the issue, we will award payment to the highest quality PR (the one that has cleanest code, best test coverage, most thorough, etc.).
Steps to solve:
- Start working: Comment
/attempt #8579
with your implementation plan - Submit work: Create a pull request including
/claim #8579
in the PR body to claim the bounty - Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts
Thank you for contributing to highlight/highlight!
Add a bounty • Share on socials
Attempt | Started (GMT+0) | Solution |
---|---|---|
🔴 @ezhil56x | May 17, 2024, 2:19:32 AM | WIP |
🟢 @rajeshj11 | May 17, 2024, 5:51:26 AM | #8602 |
from highlight.
@Vadman97
What should be the default title?
from highlight.
@neo773 updated the description, thanks
from highlight.
I would like to work on this.
Currently for all Metrics the title is Dashboard
. But the goal is to update the title with the Metrics name.
For example if the Metrics name is Insights then the title should be Dashboard - Insights
.
Is this what you're expecting?
from highlight.
@ezhil56x please see the description. the default is currently Untitled metric view
but should update based on the function / metric that are being graphed. In the description image example, the title should update to CountDistinct(Identifier)
from highlight.
I would like to work on this
Can I get assigned?
from highlight.
/attempt #8579
Algora profile | Completed bounties | Tech | Active attempts | Options |
---|---|---|---|---|
@ezhil56x | 28 bounties from 11 projects | JavaScript, TypeScript, Java & more |
Cancel attempt |
from highlight.
/attempt #8579
Algora profile | Completed bounties | Tech | Active attempts | Options |
---|---|---|---|---|
@rajeshj11 | 1 bounty from 1 project | JavaScript, TypeScript, HTML |
Cancel attempt |
from highlight.
💡 @rajeshj11 submitted a pull request that claims the bounty. You can visit your bounty board to reward.
from highlight.
🎉🎈 @rajeshj11 has been awarded $50! 🎈🎊
from highlight.
Related Issues (20)
- Errors search should order by `max(object.created_at)` HOT 1
- Selects disabled on sign up page HOT 1
- Copy updates for Tutorial Callouts HOT 1
- Border on metrics drop down is missing HOT 1
- separate enterprise Docker Compose configurations in a separate repository HOT 1
- consolidate webvitals recording approaches HOT 1
- Required selects on sign up page HOT 1
- Change `gpt-3.5-turbo-16k` to `gpt-4o-mini` HOT 1
- Docs pages have large ISR payloads HOT 1
- Session alert graph HOT 1
- Add loading state when fetch keys/values in search HOT 1
- Use separate fields table for session metrics HOT 1
- User event search HOT 1
- HighlightInit component should automatically use the withHighlightConfig rewrite HOT 1
- render frontend spans (all traces) in the session dev tools HOT 1
- Refactor sign up/sign in flow HOT 1
- Splitting network resources HOT 1
- Consider tool for customer feedback and roadmap HOT 1
- ruby sdk emitting noisy logs related to silent logger HOT 1
- Can't exit drag mode when resizing related resource panel HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from highlight.